|
|
b72e15e |
%global pypi_name svgwrite
|
|
|
b72e15e |
|
|
|
b72e15e |
Name: python-%{pypi_name}
|
|
|
c9918ce |
Version: 1.3.1
|
|
|
2aeead5 |
Release: 1%{?dist}
|
|
|
2aeead5 |
Summary: Python library to create SVG drawings
|
|
|
b72e15e |
|
|
|
b72e15e |
License: MIT
|
|
|
2aeead5 |
URL: https://github.com/mozman/svgwrite
|
|
|
2aeead5 |
Source0: %{pypi_name}-%{version}.tar.gz
|
|
|
582a611 |
Patch0: 0001-Skip-test-that-needs-internet-connection.patch
|
|
|
b72e15e |
|
|
|
2aeead5 |
BuildArch: noarch
|
|
|
b72e15e |
|
|
|
b72e15e |
%description
|
|
|
2aeead5 |
Python library to create SVG drawings.
|
|
|
b72e15e |
|
|
|
b72e15e |
%package -n python3-%{pypi_name}
|
|
|
b72e15e |
Summary: Python 3 library to create SVG drawings
|
|
|
b72e15e |
BuildRequires: python3-devel
|
|
|
b72e15e |
BuildRequires: python3-setuptools
|
|
|
b72e15e |
BuildRequires: python3-pyparsing
|
|
|
2aeead5 |
BuildRequires: python3-pytest
|
|
|
b72e15e |
Requires: python3-setuptools
|
|
|
b72e15e |
Requires: python3-pyparsing
|
|
|
b72e15e |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
b72e15e |
|
|
|
b72e15e |
%description -n python3-%{pypi_name}
|
|
|
b72e15e |
Python 3 library to create SVG drawings.
|
|
|
b72e15e |
|
|
|
b72e15e |
%prep
|
|
|
582a611 |
%autosetup -n %{pypi_name}-%{version} -p1
|
|
|
b72e15e |
|
|
|
b72e15e |
%build
|
|
|
b72e15e |
%py3_build
|
|
|
b72e15e |
|
|
|
b72e15e |
|
|
|
b72e15e |
%install
|
|
|
b72e15e |
%py3_install
|
|
|
b72e15e |
# Remove shebang
|
|
|
b72e15e |
for lib in %{buildroot}%{python3_sitelib}/%{pypi_name}/{,*/}/*.py; do
|
|
|
b72e15e |
sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
|
|
|
b72e15e |
touch -r $lib $lib.new &&
|
|
|
b72e15e |
mv $lib.new $lib
|
|
|
b72e15e |
done
|
|
|
b72e15e |
|
|
|
b72e15e |
%check
|
|
|
b72e15e |
%{__python3} -m unittest discover -s tests
|
|
|
b72e15e |
|
|
|
b72e15e |
%files -n python3-%{pypi_name}
|
|
|
b72e15e |
%license LICENSE.TXT
|
|
|
b72e15e |
%doc NEWS.rst README.rst
|
|
|
b72e15e |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
b72e15e |
%{python3_sitelib}/%{pypi_name}/
|
|
|
b72e15e |
|
|
|
b72e15e |
|
|
|
b72e15e |
%changelog
|
|
|
c9918ce |
* Thu Jul 04 2019 Vojtech Trefny <vtrefny@redhat.com> - 1.3.1-1
|
|
|
c9918ce |
- Update to 1.3.1
|
|
|
c9918ce |
|
|
|
582a611 |
* Mon Jun 24 2019 Vojtech Trefny <vtrefny@redhat.com> - 1.3.0-1
|
|
|
582a611 |
- Update to 1.3.0
|
|
|
582a611 |
|
|
|
2aeead5 |
* Mon Feb 25 2019 Vojtech Trefny <vtrefny@redhat.com> - 1.2.1-1
|
|
|
2aeead5 |
- Update to 1.2.1
|
|
|
2aeead5 |
|
|
|
b72e15e |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.12-5
|
|
|
b72e15e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
b72e15e |
|
|
|
b72e15e |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.12-4
|
|
|
b72e15e |
- Rebuilt for Python 3.7
|
|
|
b72e15e |
|
|
|
b72e15e |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.12-3
|
|
|
b72e15e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b72e15e |
|
|
|
b72e15e |
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.12-2
|
|
|
b72e15e |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
b72e15e |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
b72e15e |
|
|
|
b72e15e |
* Wed Dec 27 2017 Julien Enselme <jujens@jujens.eu> - 1.1.12-1
|
|
|
b72e15e |
- Update to 1.1.12
|
|
|
b72e15e |
|
|
|
b72e15e |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.11-2
|
|
|
b72e15e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
b72e15e |
|
|
|
b72e15e |
* Sat Jun 03 2017 Julien Enselme <jujens@jujens.eu> - 1.1.11-1
|
|
|
b72e15e |
- Update to 1.1.11
|
|
|
b72e15e |
|
|
|
b72e15e |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-3
|
|
|
b72e15e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
b72e15e |
|
|
|
b72e15e |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1.8-2
|
|
|
b72e15e |
- Rebuild for Python 3.6
|
|
|
b72e15e |
|
|
|
b72e15e |
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 1.1.8
|
|
|
b72e15e |
- Update to 1.1.8
|
|
|
b72e15e |
|
|
|
b72e15e |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-7
|
|
|
b72e15e |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
b72e15e |
|
|
|
b72e15e |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-6
|
|
|
b72e15e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
b72e15e |
|
|
|
b72e15e |
* Thu Nov 12 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-5
|
|
|
b72e15e |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
b72e15e |
|
|
|
b72e15e |
* Fri Nov 6 2015 Julien Enselme <jujens@jujens.eu> - 1.1.6-4
|
|
|
b72e15e |
- Correct provides for python2 package
|
|
|
b72e15e |
|
|
|
b72e15e |
* Thu Nov 5 2015 Julien Enselme <jujens@jujens.eu> - 1.1.6-3
|
|
|
b72e15e |
- Rebuilt for python 3.5
|
|
|
b72e15e |
|
|
|
b72e15e |
* Thu Nov 5 2015 Julien Enselme <jujens@jujens.eu> - 1.1.6-2
|
|
|
b72e15e |
- Update package with new python guidelines
|
|
|
b72e15e |
|
|
|
b72e15e |
* Fri Jun 19 2015 Julien Enselme <jujens@jujens.eu> - 1.1.6-1
|
|
|
b72e15e |
- Update to 1.1.6
|
|
|
b72e15e |
- Reformat Requires and BuildRequires
|
|
|
b72e15e |
|
|
|
b72e15e |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-4
|
|
|
b72e15e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
b72e15e |
|
|
|
b72e15e |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3
|
|
|
b72e15e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
b72e15e |
|
|
|
b72e15e |
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.1.5-2
|
|
|
b72e15e |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
b72e15e |
|
|
|
b72e15e |
* Tue Apr 15 2014 Julien Enselme <jujens@jujens.eu> - 1.1.5-1
|
|
|
b72e15e |
- Update to 1.1.5 from upstream
|
|
|
b72e15e |
|
|
|
b72e15e |
* Tue Mar 25 2014 Julien Enselme <jujens@jujens.eu> - 1.1.4-2
|
|
|
b72e15e |
- Add python-setuptools as a dependancy
|
|
|
b72e15e |
|
|
|
b72e15e |
* Tue Mar 25 2014 Julien Enselme <jujens@jujens.eu> - 1.1.4-1
|
|
|
b72e15e |
- Update to 1.1.4 from upstream
|
|
|
b72e15e |
- The bundled library was removed upstream
|
|
|
b72e15e |
|
|
|
b72e15e |
* Fri Mar 14 2014 Julien Enselme <jujens@jujens.eu> - 1.1.3-4
|
|
|
b72e15e |
- Add pyparsing and python3-pyparsing as requires
|
|
|
b72e15e |
- Patch sources so that this bundled library is not used
|
|
|
b72e15e |
|
|
|
b72e15e |
* Wed Mar 12 2014 Julien Enselme <jujens@jujens.eu> - 1.1.3-3
|
|
|
b72e15e |
- Add check macro for unitests
|
|
|
b72e15e |
|
|
|
b72e15e |
* Fri Feb 28 2014 Julien Enselme <jujens@jujens.eu> - 1.1.3-2
|
|
|
b72e15e |
- Add python3 support
|
|
|
b72e15e |
- Improve packaging
|
|
|
b72e15e |
|
|
|
b72e15e |
* Sun Feb 09 2014 Julien Enselme <jujens@jujens.eu> - 1.1.3-1
|
|
|
b72e15e |
- Initial packaging
|