Blame python-svgwrite.spec

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