b72e15e
%global pypi_name svgwrite
b72e15e
b72e15e
Name:           python-%{pypi_name}
f617133
Version:        1.4.1
7908487
Release:        3%{?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
7908487
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.4.1-3
7908487
- Rebuilt for Python 3.10
7908487
0efc037
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
0efc037
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0efc037
f617133
* Mon Jan 18 2021 Vojtech Trefny <vtrefny@redhat.com> - 1.4.1-1
f617133
- Update to 1.4.1
f617133
3a7da7a
* Fri Aug 21 2020 Vojtech Trefny <vtrefny@redhat.com> - 1.4-1
3a7da7a
- Update to 1.4
3a7da7a
7a49229
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-8
7a49229
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7a49229
e9d005c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-7
e9d005c
- Rebuilt for Python 3.9
e9d005c
c40defe
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-6
c40defe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c40defe
e90ae79
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-5
e90ae79
- Rebuilt for Python 3.8.0rc1 (#1748018)
e90ae79
c52e23d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-4
c52e23d
- Rebuilt for Python 3.8
c52e23d
f7bb6e2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
f7bb6e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f7bb6e2
57e39a7
* Mon Jul 15 2019 Vojtech Trefny <vtrefny@redhat.com> - 1.3.1-2
57e39a7
- Skip 'test_pretty_print' test case due to Python 3.8 changes
57e39a7
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