d2e9e56
Name:           python-svg
d2e9e56
Version:        0.2.2b
148b355
Release:        28%{?dist}
d2e9e56
Summary:        Python wrapper for svg
d2e9e56
d2e9e56
License:        BSD
d2e9e56
URL:            http://code.google.com/p/pysvg/
d2e9e56
Source0:        http://pysvg.googlecode.com/files/pysvg-0.2.2b.zip
a230751
Patch0:         pysvg-python3.patch
d2e9e56
d2e9e56
BuildArch:      noarch
a230751
BuildRequires:  python3-devel,python3-setuptools
d2e9e56
9d61899
%global _description\
9d61899
pySVG is a pure Python library to create/load and manipulate SVG documents.\
9d61899
\
31290ca
Its main use is to "code" svg images.
d2e9e56
9d61899
%description %_description
9d61899
31290ca
%package -n python3-svg
31290ca
Summary: %summary
31290ca
%{?python_provide:%python_provide python3-svg}
31290ca
31290ca
%description -n python3-svg %_description
31290ca
d2e9e56
%package doc
d2e9e56
Summary: Documentation for python-syg
9742d22
Requires: python3-svg = %{version}-%{release}
d2e9e56
77dfe26
%description doc %_description
d2e9e56
d2e9e56
These are the documentation files.
d2e9e56
d2e9e56
%prep
d2e9e56
%setup -qn pysvg-%{version}
d2e9e56
a230751
%patch0 -p1 -b .python3
a230751
d2e9e56
rm -f doc/html/.buildinfo
d2e9e56
d2e9e56
# Convert to utf-8
d2e9e56
for file in `find . -name '*.py'`; do
d2e9e56
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
d2e9e56
    touch -r $file $file.new && \
d2e9e56
    mv $file.new $file
d2e9e56
done
d2e9e56
d2e9e56
#Strip bad EOL encodings
d2e9e56
for file in `find . -name '*.txt'` doc/html/_static/pygments.css; do
d2e9e56
 sed -i "s|\r||g" $file
d2e9e56
done
d2e9e56
for file in `find . -name '*.py'`; do
d2e9e56
 sed -i "s|\r||g" $file
d2e9e56
done
d2e9e56
d2e9e56
#Remove shabangs.
d2e9e56
for lib in `find . -name '*.py'`; do
d2e9e56
 sed -i '/\/usr\/bin\/python/d' $lib
d2e9e56
done
d2e9e56
d2e9e56
%build
a230751
%py3_build
d2e9e56
d2e9e56
d2e9e56
%install
a230751
%py3_install
d2e9e56
d2e9e56
find $RPM_BUILD_ROOT -name '*.egg-info' | xargs rm -rf
d2e9e56
a230751
%check
a230751
%{__python3} setup.py test
a230751
d2e9e56
%files doc
d2e9e56
%doc doc/
d2e9e56
a230751
%files -n python3-svg
a230751
%doc doc/license.txt
a230751
%{python3_sitelib}/pysvg
a230751
a230751
d2e9e56
%changelog
148b355
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2b-28
148b355
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
148b355
7a22dac
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2.2b-27
7a22dac
- Rebuilt for Python 3.10
7a22dac
6b43ec4
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2b-26
6b43ec4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6b43ec4
6dba83e
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2b-25
6dba83e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6dba83e
f7fdd33
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.2b-24
f7fdd33
- Rebuilt for Python 3.9
f7fdd33
b805bbe
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2b-23
b805bbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b805bbe
c014a43
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.2b-22
c014a43
- Rebuilt for Python 3.8.0rc1 (#1748018)
c014a43
c11579b
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.2b-21
c11579b
- Rebuilt for Python 3.8
c11579b
9742d22
* Tue Aug 13 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.2.2b-20
9742d22
- Drop Python 2.
9742d22
79f7429
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2b-19
79f7429
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
79f7429
a5912e5
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2b-18
a5912e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a5912e5
dc88a16
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2b-17
dc88a16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
dc88a16
05b5c78
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.2b-16
05b5c78
- Rebuilt for Python 3.7
05b5c78
bcde245
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.2.2b-15
bcde245
- Update Python 2 dependency declarations to new packaging standards
bcde245
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
bcde245
1704da8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2b-14
1704da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1704da8
9d61899
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.2b-13
9d61899
- Python 2 binary package renamed to python2-svg
9d61899
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
9d61899
20dec98
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2b-12
20dec98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
20dec98
a4d09c5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2b-11
a4d09c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a4d09c5
3a71357
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.2b-10
3a71357
- Rebuild for Python 3.6
3a71357
9a81896
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2b-9
9a81896
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
9a81896
a230751
* Fri Jul 15 2016 Jon Ciesla <limburgher@gmail.com> - 0.2.2b-8
a230751
- Add python3 support.
a230751
d7f3adc
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2b-7
d7f3adc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d7f3adc
c84c5a9
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2b-6
c84c5a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c84c5a9
50b3ff3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2b-5
50b3ff3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
50b3ff3
088b6df
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2b-4
088b6df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
088b6df
dabe130
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2b-3
dabe130
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dabe130
d2e9e56
* Thu Nov 15 2012 Jon Ciesla <limburgher@gmail.com> - 0.2.2b-2
d2e9e56
- Remove egg-info, fix EOL encoding, add doc subpackage.
d2e9e56
d2e9e56
* Thu Nov 15 2012 Jon Ciesla <limburgher@gmail.com> - 0.2.2b-1
d2e9e56
- New version with clarified license.
d2e9e56
d2e9e56
* Thu Jun 07 2012 Jon Ciesla <limburgher@gmail.com> - 0.2.1-1
d2e9e56
- Initial package version
d2e9e56