|
cvsextras |
aa0934e |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
cvsextras |
aa0934e |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
aa0934e |
Summary: A cryptography library for Python.
|
|
cvsextras |
aa0934e |
Name: python-crypto
|
|
cvsextras |
04247e3 |
Version: 2.0
|
|
cvsextras |
aa0934e |
Epoch: 0
|
|
|
7563796 |
Release: 2
|
|
cvsextras |
aa0934e |
License: Python License (CNRI Python License)
|
|
cvsextras |
aa0934e |
Group: Development/Libraries
|
|
cvsextras |
aa0934e |
URL: http://www.amk.ca/python/code/crypto.html
|
|
cvsextras |
04247e3 |
Source: http://www.amk.ca/files/python/crypto/pycrypto-2.0.tar.gz
|
|
|
7563796 |
Patch0: %{name}-x86_64-buildfix.patch
|
|
cvsextras |
aa0934e |
BuildRequires: python >= 0:2.2
|
|
cvsextras |
aa0934e |
BuildRequires: python-devel >= 0:2.2
|
|
cvsextras |
aa0934e |
BuildRequires: gmp-devel >= 0:4.1
|
|
cvsextras |
aa0934e |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot-%(%{__id_u} -n)
|
|
cvsextras |
04247e3 |
Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
aa0934e |
%description
|
|
cvsextras |
aa0934e |
Python-crypto is a collection of both secure hash functions (such as MD5 and
|
|
cvsextras |
aa0934e |
SHA), and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal,
|
|
cvsextras |
aa0934e |
etc.).
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
aa0934e |
# The pre section.
|
|
cvsextras |
aa0934e |
%prep
|
|
cvsextras |
04247e3 |
%setup -n pycrypto-2.0 -q
|
|
|
7563796 |
%ifarch x86_64
|
|
|
7563796 |
%patch0 -b .patch0
|
|
|
7563796 |
%endif
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
aa0934e |
# The build section.
|
|
cvsextras |
aa0934e |
%build
|
|
cvsextras |
aa0934e |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
aa0934e |
# The install section.
|
|
cvsextras |
aa0934e |
%install
|
|
cvsextras |
aa0934e |
rm -rf $RPM_BUILD_ROOT
|
|
cvsextras |
aa0934e |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
aa0934e |
find -name "*.py"|xargs %{__perl} -pi -e "s:/usr/local/bin/python:%{__python}:"
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
aa0934e |
# The clean section.
|
|
cvsextras |
aa0934e |
%clean
|
|
cvsextras |
aa0934e |
rm -rf $RPM_BUILD_ROOT
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
aa0934e |
# The files section.
|
|
cvsextras |
aa0934e |
%files
|
|
cvsextras |
aa0934e |
%defattr(-,root,root,-)
|
|
cvsextras |
aa0934e |
%doc README TODO ACKS ChangeLog LICENSE Doc Demo
|
|
|
7563796 |
%{python_sitearch}/Crypto/*.py
|
|
|
7563796 |
%{python_sitearch}/Crypto/*.pyc
|
|
|
7563796 |
%ghost %{python_sitearch}/Crypto/*.pyo
|
|
cvsextras |
aa0934e |
%{python_sitearch}/Crypto/Cipher/*.so
|
|
|
7563796 |
%{python_sitearch}/Crypto/Cipher/*.py
|
|
|
7563796 |
%{python_sitearch}/Crypto/Cipher/*.pyc
|
|
|
7563796 |
%ghost %{python_sitearch}/Crypto/Cipher/*.pyo
|
|
cvsextras |
aa0934e |
%{python_sitearch}/Crypto/Hash/*.so
|
|
|
7563796 |
%{python_sitearch}/Crypto/Hash/*.py
|
|
|
7563796 |
%{python_sitearch}/Crypto/Hash/*.pyc
|
|
|
7563796 |
%ghost %{python_sitearch}/Crypto/Hash/*.pyo
|
|
|
7563796 |
%{python_sitearch}/Crypto/Protocol/*.py
|
|
|
7563796 |
%{python_sitearch}/Crypto/Protocol/*.pyc
|
|
|
7563796 |
%ghost %{python_sitearch}/Crypto/Protocol/*.pyo
|
|
cvsextras |
aa0934e |
%{python_sitearch}/Crypto/PublicKey/*.so
|
|
|
7563796 |
%{python_sitearch}/Crypto/PublicKey/*.py
|
|
|
7563796 |
%{python_sitearch}/Crypto/PublicKey/*.pyc
|
|
|
7563796 |
%ghost %{python_sitearch}/Crypto/PublicKey/*.pyo
|
|
|
7563796 |
%{python_sitearch}/Crypto/Util/*.py
|
|
|
7563796 |
%{python_sitearch}/Crypto/Util/*.pyc
|
|
|
7563796 |
%ghost %{python_sitearch}/Crypto/Util/*.pyo
|
|
|
7563796 |
%dir %{python_sitearch}/Crypto
|
|
|
7563796 |
%dir %{python_sitearch}/Crypto/Cipher/
|
|
|
7563796 |
%dir %{python_sitearch}/Crypto/Hash/
|
|
|
7563796 |
%dir %{python_sitearch}/Crypto/Protocol/
|
|
|
7563796 |
%dir %{python_sitearch}/Crypto/PublicKey/
|
|
|
7563796 |
%dir %{python_sitearch}/Crypto/Util/
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
aa0934e |
%changelog
|
|
|
7563796 |
* Sat Dec 18 2004 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-2
|
|
|
7563796 |
- Fix build on x86_64: use python_sitearch for files and patch source
|
|
|
7563796 |
to find gmp
|
|
|
7563796 |
|
|
cvsextras |
04247e3 |
* Thu Aug 26 2004 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-0.fdr.1
|
|
cvsextras |
04247e3 |
- Update to 2.00
|
|
cvsextras |
04247e3 |
|
|
cvsextras |
04247e3 |
* Fri Aug 13 2004 Ville Skytta <ville.skytta at iki.fi> - 0:1.9-0.fdr.6.a6
|
|
cvsextras |
aa0934e |
- Don't use get_python_version(), it's available in Python >= 2.3 only.
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
04247e3 |
* Thu Aug 12 2004 Thorsten Leemhuis <fedora at leemhuis dot info> 0:1.9-0.fdr.5.a6
|
|
cvsextras |
aa0934e |
- Own dir python_sitearch/Crypto/
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
04247e3 |
* Wed Aug 11 2004 Thorsten Leemhuis <fedora at leemhuis dot info> 0:1.9-0.fdr.4.a6
|
|
cvsextras |
aa0934e |
- Match python spec template more
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
04247e3 |
* Sat Jul 17 2004 Thorsten Leemhuis <fedora at leemhuis dot info> 0:1.9-0.fdr.3.a6
|
|
cvsextras |
aa0934e |
- Own _libdir/python/site-packages/Crypto/
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
aa0934e |
* Wed Mar 24 2004 Panu Matilainen <pmatilai@welho.com> 0.3.2-0.fdr.2.a6
|
|
cvsextras |
aa0934e |
- generate .pyo files during install
|
|
cvsextras |
aa0934e |
- require exact version of python used to build the package
|
|
cvsextras |
aa0934e |
- include more docs + demos
|
|
cvsextras |
aa0934e |
- fix dependency on /usr/local/bin/python
|
|
cvsextras |
aa0934e |
- use fedora.us style buildroot
|
|
cvsextras |
aa0934e |
- buildrequires gmp-devel
|
|
cvsextras |
aa0934e |
- use description from README
|
|
cvsextras |
aa0934e |
|
|
cvsextras |
aa0934e |
* Sun Jan 11 2004 Ryan Boder <icanoop@bitwiser.org> 0.3.2-0.fdr.1.a6
|
|
cvsextras |
aa0934e |
- Initial build.
|
|
cvsextras |
aa0934e |
|