03012db
Name:           python-rencode
7511ee8
Version:        1.0.5
c13827a
Release:        5%{?dist}
03012db
Summary:        Web safe object pickling/unpickling
03012db
License:        GPLv3+ and BSD
530a6bc
URL:            https://github.com/aresch/rencode
03012db
9b762e6
Source0:        https://github.com/aresch/rencode/archive/v%{version}.tar.gz
03012db
      
Orion Poplawski a10ecea
BuildRequires:  python2-devel python%{python3_pkgversion}-devel
Orion Poplawski a10ecea
BuildRequires:  Cython python%{python3_pkgversion}-Cython
03012db
7511ee8
03012db
%description
03012db
The rencode module is a modified version of bencode from the
03012db
BitTorrent project.  For complex, heterogeneous data structures with
03012db
many small elements, r-encodings take up significantly less space than
03012db
b-encodings.
03012db
aa345f6
f73e03c
%package -n python2-rencode
f73e03c
Summary:    Web safe object pickling/unpickling
f73e03c
%{?python_provide:%python_provide python2-rencode}
f73e03c
7511ee8
f73e03c
%description -n python2-rencode
f73e03c
The rencode module is a modified version of bencode from the
f73e03c
BitTorrent project.  For complex, heterogeneous data structures with
f73e03c
many small elements, r-encodings take up significantly less space than
f73e03c
b-encodings.
f73e03c
aa345f6
Orion Poplawski a10ecea
%package -n python%{python3_pkgversion}-rencode
03012db
Summary:    Web safe object pickling/unpickling
Orion Poplawski a10ecea
%{?python_provide:%python_provide python%{python3_pkgversion}-rencode}
03012db
7511ee8
Orion Poplawski a10ecea
%description -n python%{python3_pkgversion}-rencode
03012db
The rencode module is a modified version of bencode from the
03012db
BitTorrent project.  For complex, heterogeneous data structures with
03012db
many small elements, r-encodings take up significantly less space than
03012db
b-encodings.
03012db
7511ee8
03012db
%prep
f73e03c
%autosetup -n rencode-%{version}
03012db
03012db
03012db
%build
aa345f6
%py2_build
aa345f6
%py3_build
03012db
03012db
03012db
%install
aa345f6
%py2_install
aa345f6
%py3_install
03012db
03012db
03012db
%check
03012db
pushd tests
03012db
ln -sf %{buildroot}%{python_sitearch}/rencode rencode
Orion Poplawski a10ecea
%{__python2} test_rencode.py
Orion Poplawski a10ecea
%{__python2} timetest.py
03012db
aa345f6
rm rencode
aa345f6
03012db
ln -sf %{buildroot}%{python3_sitearch}/rencode rencode
03012db
%{__python3} test_rencode.py
03012db
%{__python3} timetest.py
03012db
popd
03012db
aa345f6
f73e03c
%files -n python2-rencode
03012db
%{python_sitearch}/rencode
03012db
%{python_sitearch}/rencode*.egg-info
Orion Poplawski a10ecea
%doc README.md
Orion Poplawski a10ecea
%license COPYING
03012db
aa345f6
Orion Poplawski a10ecea
%files -n python%{python3_pkgversion}-rencode
03012db
%{python3_sitearch}/rencode
03012db
%{python3_sitearch}/rencode*.egg-info
Orion Poplawski a10ecea
%doc README.md
Orion Poplawski a10ecea
%license COPYING
03012db
aa345f6
03012db
%changelog
c13827a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-5
c13827a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c13827a
b6e3621
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.0.5-4
b6e3621
- Rebuild for Python 3.6
b6e3621
Orion Poplawski a10ecea
* Tue Nov 8 2016 Orion Poplawski <orion@cora.nwra.com> - 1.0.5-3
Orion Poplawski a10ecea
- Enable builds on EPEL7
Orion Poplawski a10ecea
9b762e6
* Sat Oct  1 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 1.0.5-2
9b762e6
- Revert to using github tarballs as PyPi tarballs omit tests
9b762e6
7511ee8
* Sat Oct  1 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 1.0.5-1
7511ee8
- Update to 1.0.5
7511ee8
- Update source URL
7511ee8
19cc78f
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-1
19cc78f
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
19cc78f
d0c5fa7
* Sat Feb 27 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 1.0.4-0
d0c5fa7
- Update to 1.0.4
f73e03c
- Split out python2-rencode subpackage, and leave main package empty
f73e03c
- Add use of python_provide macros according to guidelines
aa345f6
- Clean up spec file, remove redundant code
aa345f6
- Use python build and install macros
aa345f6
- Build and test both python2 and python3 packages in same directory
d0c5fa7
b1067b7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
b1067b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b1067b7
fd0c489
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-3
fd0c489
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
fd0c489
1a97576
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
1a97576
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1a97576
530a6bc
* Sun Jun 14 2015 Jonathan Underwood <jonathan.underwood@gmail.com> - 1.0.3-1
530a6bc
- Update to version 1.0.3
530a6bc
- Update upstream location (now on github)
530a6bc
c6b3e11
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-6.20121209svn33
c6b3e11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c6b3e11
324669d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-5.20121209svn33
324669d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
324669d
d5a9a00
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.0.2-4.20121209svn33
d5a9a00
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
d5a9a00
d092395
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3.20121209svn33
d092395
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d092395
03012db
* Mon May 06 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.2-2.20121209svn33
03012db
- use macros consistently
03012db
- fix permissions on shared objects
03012db
- drop useless setuptools copypasta
03012db
- fix License tag
03012db
03012db
* Thu Apr 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.2-1.20121209svn33
03012db
- initial package