b849c8f
%global modname pypng
b849c8f
b849c8f
Name:               python-pypng
3908f37
Version:            0.0.18
3b823b0
Release:            20%{?dist}
b849c8f
Summary:            Pure Python PNG image encoder/decoder
b849c8f
b849c8f
License:            MIT
b849c8f
URL:                http://pypi.python.org/pypi/pypng
b849c8f
Source0:            https://github.com/drj11/%{modname}/archive/%{modname}-%{version}.tar.gz
b849c8f
b849c8f
BuildArch:          noarch
b849c8f
7e0f4c6
BuildRequires:      /usr/bin/2to3
b849c8f
BuildRequires:      python3-devel
b849c8f
BuildRequires:      python3-nose
b849c8f
c66d03a
%global _description\
c66d03a
PyPNG allows PNG image files to be read and written using pure Python.\
c66d03a
\
c66d03a
It's available from github.com https://github.com/drj11/pypng\
c66d03a
\
c66d03a
Documentation is kindly hosted by PyPI http://pythonhosted.org/pypng/
b849c8f
c66d03a
%description %_description
b849c8f
b849c8f
%package -n python3-pypng
b849c8f
Summary:            Pure Python PNG image encoder/decoder
ecb4f16
%{?python_provide:%python_provide python3-pypng}
b849c8f
b849c8f
%description -n python3-pypng
b849c8f
PyPNG allows PNG image files to be read and written using pure Python.
b849c8f
b849c8f
It's available from github.com https://github.com/drj11/pypng
b849c8f
b849c8f
Documentation is kindly hosted by PyPI http://pythonhosted.org/pypng/
b849c8f
b849c8f
%prep
b849c8f
%setup -q -n %{modname}-%{modname}-%{version}
b849c8f
b849c8f
# Remove bundled egg-info in case it exists
b849c8f
rm -rf %{modname}.egg-info
b849c8f
b849c8f
# Remove the shebang from the main lib
b849c8f
lib=code/png.py
b849c8f
sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
b849c8f
touch -r $lib $lib.new &&
b849c8f
mv $lib.new $lib
b849c8f
ecb4f16
2to3 --write --nobackups .
b849c8f
b849c8f
%build
ecb4f16
%py3_build
b849c8f
b849c8f
%install
ecb4f16
%py3_install
b849c8f
b849c8f
%check
ecb4f16
nosetests-3 code/png.py
b849c8f
b849c8f
%files -n python3-pypng
b849c8f
%doc README.txt LICENCE
b849c8f
%{python3_sitelib}/png.py*
b849c8f
%{python3_sitelib}/__pycache__/png*
b849c8f
%{python3_sitelib}/%{modname}-%{version}-*
b849c8f
b849c8f
%changelog
3b823b0
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.18-20
3b823b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3b823b0
88e0d13
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.0.18-19
88e0d13
- Rebuilt for Python 3.9
88e0d13
4457ed9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.18-18
4457ed9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4457ed9
24959a7
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.18-17
24959a7
- Rebuilt for Python 3.8.0rc1 (#1748018)
24959a7
fb1cf61
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.18-16
fb1cf61
- Rebuilt for Python 3.8
fb1cf61
23dad9e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.18-15
23dad9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
23dad9e
4d60f77
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.18-14
4d60f77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4d60f77
ecb4f16
* Thu Oct 11 2018 Miro Hrončok <mhroncok@redhat.com> - 0.0.18-13
ecb4f16
- Python2 binary package has been removed
ecb4f16
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
ecb4f16
21bf1d8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.18-12
21bf1d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
21bf1d8
faa1d23
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.0.18-11
faa1d23
- Rebuilt for Python 3.7
faa1d23
a5cbd41
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.0.18-10
a5cbd41
- Update Python 2 dependency declarations to new packaging standards
a5cbd41
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
a5cbd41
3fc2e0a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.18-9
3fc2e0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3fc2e0a
c66d03a
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.0.18-8
c66d03a
- Python 2 binary package renamed to python2-pypng
c66d03a
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
c66d03a
53410c9
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.18-7
53410c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
53410c9
5380970
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.18-6
5380970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5380970
03421f4
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.0.18-5
03421f4
- Rebuild for Python 3.6
03421f4
d33bc52
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.18-4
d33bc52
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
d33bc52
42e658e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.18-3
42e658e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
42e658e
9576617
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.18-2
9576617
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
9576617
3908f37
* Sat Aug 01 2015 Ralph Bean <rbean@redhat.com> - 0.0.18-1
3908f37
- new version
3908f37
b6358da
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.17-2
b6358da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b6358da
e8a135a
* Tue May 12 2015 Ralph Bean <rbean@redhat.com> - 0.0.17-1
e8a135a
- new version
e8a135a
124be56
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.16-3
124be56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
124be56
c2492ea
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.0.16-2
c2492ea
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
c2492ea
b849c8f
* Fri May 09 2014 Ralph Bean <rbean@redhat.com> - 0.0.16-1
b849c8f
- initial package for Fedora