[521] | 1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
| 2 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 3 | |
---|
| 4 | Summary: Cryptography library for Python |
---|
| 5 | Summary(ja): Python 用 Cryptography ライブラリ |
---|
| 6 | Name: python-crypto |
---|
[1691] | 7 | Version: 2.3 |
---|
[1980] | 8 | Release: 2%{?_dist_release} |
---|
[521] | 9 | License: Python License (CNRI Python License) |
---|
| 10 | Group: Development/Libraries |
---|
[1287] | 11 | URL: http://www.dlitz.net/software/pycrypto/ |
---|
| 12 | Source: http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-%{version}.tar.gz |
---|
[521] | 13 | |
---|
[1287] | 14 | #Patch0: arc2-buffer-overflow.patch |
---|
[521] | 15 | Patch1: no-usr-local.patch |
---|
[1287] | 16 | #Patch2: run-tests.patch |
---|
| 17 | Patch3: doc.patch |
---|
[521] | 18 | |
---|
| 19 | BuildRequires: python >= 2.2 |
---|
| 20 | BuildRequires: python-devel >= 2.2 |
---|
| 21 | BuildRequires: gmp-devel >= 4.1 |
---|
| 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | Python-crypto is a collection of both secure hash functions |
---|
| 26 | (such as MD5 and SHA), and various encryption algorithms |
---|
| 27 | (AES, DES, IDEA, RSA, ElGamal, etc.). |
---|
| 28 | |
---|
| 29 | %prep |
---|
| 30 | %setup -n pycrypto-%{version} -q |
---|
[1287] | 31 | #%patch0 -p1 |
---|
[521] | 32 | %patch1 -p1 |
---|
[1287] | 33 | #%patch2 -p1 |
---|
| 34 | %patch3 -p1 |
---|
[521] | 35 | |
---|
[1287] | 36 | # Remove spurious shellbangs |
---|
| 37 | %{__sed} -i -e '\|^#!/usr/local/bin/python| d' lib/Crypto/Util/RFC1751.py |
---|
[521] | 38 | |
---|
| 39 | %build |
---|
| 40 | CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build |
---|
| 41 | |
---|
| 42 | %install |
---|
[1287] | 43 | %{__rm} -rf %{buildroot} |
---|
| 44 | %{__python} setup.py install -O1 --skip-build --root %{buildroot} |
---|
[521] | 45 | |
---|
[1287] | 46 | # Remove group write permissions on shared objects |
---|
| 47 | /usr/bin/find %{buildroot}%{python_sitearch} -name '*.so' \ |
---|
| 48 | -exec %{__chmod} g-w {} \; |
---|
[521] | 49 | |
---|
| 50 | %clean |
---|
| 51 | rm -rf $RPM_BUILD_ROOT |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | %files |
---|
| 55 | %defattr(-,root,root,-) |
---|
[1287] | 56 | %doc README TODO ACKS ChangeLog LEGAL/ COPYRIGHT Doc/ |
---|
[1691] | 57 | #%{python_sitearch}/pycrypto-2.2-py2.6.egg-info |
---|
| 58 | %{python_sitearch}/ |
---|
[521] | 59 | |
---|
| 60 | %changelog |
---|
[1980] | 61 | * Sun Oct 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.3-2 |
---|
| 62 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 63 | |
---|
[1691] | 64 | * Sat Aug 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.3-1 |
---|
| 65 | - new upstream release |
---|
| 66 | - changed %%files |
---|
| 67 | |
---|
[1638] | 68 | * Sun Aug 22 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2-2 |
---|
| 69 | - fix %files (change directory from %{python_sitelib} to %{python_sitearch}) |
---|
| 70 | |
---|
[1633] | 71 | * Sun Aug 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.2-1 |
---|
| 72 | - new upstream release |
---|
| 73 | |
---|
[1287] | 74 | * Wed Jul 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.1.0-1 |
---|
| 75 | - new upstream release |
---|
| 76 | - changed URL and SOURCE to new upstream |
---|
| 77 | - dropt patch0,2 |
---|
| 78 | - replaced patch1 from Debian newer |
---|
| 79 | - added pacth3 from Debian |
---|
| 80 | - changed document files dir in %%files |
---|
| 81 | |
---|
[521] | 82 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 2.0.1-3 |
---|
| 83 | - rebuild with python-2.6 |
---|
| 84 | |
---|
| 85 | * Fri Oct 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-2 |
---|
| 86 | - added Patch0,1,2 from Debian to fix some problem |
---|
| 87 | |
---|
| 88 | * Wed Jul 29 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-1 |
---|
| 89 | - initial build for VineSeed |
---|
| 90 | |
---|
| 91 | * Mon Jun 04 2007 David Woodhouse <dwmw2@infradead.org> - 2.0.1-7.1 |
---|
| 92 | - Fix libdir handling so it works on more arches than x86_64 |
---|
| 93 | |
---|
| 94 | * Wed Apr 18 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-7 |
---|
| 95 | - Fix typo |
---|
| 96 | |
---|
| 97 | * Wed Apr 18 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-6 |
---|
| 98 | - Remove dist |
---|
| 99 | - rebuild, because the older version was much bigger, as it was build when |
---|
| 100 | distutils was doing static links of libpython |
---|
| 101 | |
---|
| 102 | * Sat Dec 09 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-5 |
---|
| 103 | - Rebuild for python 2.5 |
---|
| 104 | |
---|
| 105 | * Thu Sep 07 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-4 |
---|
| 106 | - Don't ghost pyo files (#205408) |
---|
| 107 | |
---|
| 108 | * Tue Aug 29 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-3 |
---|
| 109 | - Rebuild for Fedora Extras 6 |
---|
| 110 | |
---|
| 111 | * Mon Feb 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-2 |
---|
| 112 | - Rebuild for Fedora Extras 5 |
---|
| 113 | |
---|
| 114 | * Wed Aug 17 2005 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0.1-1 |
---|
| 115 | - Update to 2.0.1 |
---|
| 116 | - Use Dist |
---|
| 117 | - Drop python-crypto-64bit-unclean.patch, similar patch was applied |
---|
| 118 | upstream |
---|
| 119 | |
---|
| 120 | * Thu May 05 2005 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-4 |
---|
| 121 | - add python-crypto-64bit-unclean.patch (#156173) |
---|
| 122 | |
---|
| 123 | * Mon Mar 21 2005 Seth Vidal <skvidal at phy.duke.edu> - 0:2.0-3 |
---|
| 124 | - iterate release for build on python 2.4 based systems |
---|
| 125 | |
---|
| 126 | * Sat Dec 18 2004 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-2 |
---|
| 127 | - Fix build on x86_64: use python_sitearch for files and patch source |
---|
| 128 | to find gmp |
---|
| 129 | |
---|
| 130 | * Thu Aug 26 2004 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-0.fdr.1 |
---|
| 131 | - Update to 2.00 |
---|
| 132 | |
---|
| 133 | * Fri Aug 13 2004 Ville Skytta <ville.skytta at iki.fi> - 0:1.9-0.fdr.6.a6 |
---|
| 134 | - Don't use get_python_version(), it's available in Python >= 2.3 only. |
---|
| 135 | |
---|
| 136 | * Thu Aug 12 2004 Thorsten Leemhuis <fedora at leemhuis dot info> 0:1.9-0.fdr.5.a6 |
---|
| 137 | - Own dir python_sitearch/Crypto/ |
---|
| 138 | |
---|
| 139 | * Wed Aug 11 2004 Thorsten Leemhuis <fedora at leemhuis dot info> 0:1.9-0.fdr.4.a6 |
---|
| 140 | - Match python spec template more |
---|
| 141 | |
---|
| 142 | * Sat Jul 17 2004 Thorsten Leemhuis <fedora at leemhuis dot info> 0:1.9-0.fdr.3.a6 |
---|
| 143 | - Own _libdir/python/site-packages/Crypto/ |
---|
| 144 | |
---|
| 145 | * Wed Mar 24 2004 Panu Matilainen <pmatilai@welho.com> 0.3.2-0.fdr.2.a6 |
---|
| 146 | - generate .pyo files during install |
---|
| 147 | - require exact version of python used to build the package |
---|
| 148 | - include more docs + demos |
---|
| 149 | - fix dependency on /usr/local/bin/python |
---|
| 150 | - use fedora.us style buildroot |
---|
| 151 | - buildrequires gmp-devel |
---|
| 152 | - use description from README |
---|
| 153 | |
---|
| 154 | * Sun Jan 11 2004 Ryan Boder <icanoop@bitwiser.org> 0.3.2-0.fdr.1.a6 |
---|
| 155 | - Initial build. |
---|
| 156 | |
---|