%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: pycryptopp Version: 0.5.25 Release: 1%{?dist} Summary: Python wrappers for the Crypto++ library Group: Development/Languages # we don't use the embedded cryptopp library # but link against the one in Fedora # # all the files we distribute in the binary rpm # are GPLv2+ or TGPPL # # see copyright for details License: GPLv2+ URL: http://allmydata.org/trac/pycryptopp Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz Patch0: pycryptopp-unbundle.patch BuildRequires: python-devel, cryptopp-devel, python-setuptools %description PyCryptopp is a set of Python wrappers for a few of the best crypto algorithms from the Crypto++ library (including SHA-256, AES, RSA signatures and Elliptic Curve DSA signatures). %prep %setup -q %patch0 -p1 rm -rf darcsver-*.egg rm -rf setuptools_darcs-*.egg %build CFLAGS="%{optflags}" %{__python} setup.py build --disable-embedded-cryptopp %install %{__python} setup.py install --skip-build --root %{buildroot} rm -rf %{buildroot}%{_docdir}/%{name}/ %check CFLAGS="%{optflags}" %{__python} setup.py test # tests are done, remove them rm -rf %{buildroot}%{python_sitearch}/%{name}/test/ rm -rf %{buildroot}%{python_sitearch}/%{name}/testvectors/ # This file isn't needed. It's used to mark the embedded crytopp as having # come from pycrypto. We're not installing the embedded version. rm -rf %{buildroot}/%{_prefix}/cryptopp/extraversion.h %files %defattr(-,root,root,-) %doc COPYING.GPL COPYING.TGPPL.html README.txt ChangeLog copyright %{python_sitearch}/%{name} %{python_sitearch}/%{name}-%{version}-*.egg-info %changelog * Tue Jul 27 2010 Toshio Kuratomi <toshio@fedoraproject.org> 0.5.25-1 - Update release at upstream's request. The source code looks reasonably safe * Tue Jul 27 2010 Toshio Kuratomi <toshio@fedoraproject.org> 0.5.19-4 - Bumping release so we can rebuild this in the py27 rebuild tag * Tue Jul 27 2010 Toshio Kuratomi <toshio@fedoraproject.org> 0.5.19-3 - Remove the bundled modules - Patch so we build without hte bundled modules * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.19-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Thu Jun 24 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.5.19-1 - Upstream released new version * Mon Dec 21 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.5.17-5 - Rebuild for new cryptopp * Mon Nov 16 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.5.17-4 - Initial import into devel * Wed Nov 11 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.5.17-2 - Review fixes (#521719) * Thu Sep 24 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.5.17-1 - Upstream released new version * Mon Sep 14 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.5.15-3 - Review cleanup (#521719) * Wed Sep 09 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.5.15-2 - Fix segfaults (upstream change #669) * Tue Sep 08 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.5.15-1 - Initial import