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