Mass letter "o" and "p" update, one or more apply :

- Drop epoch: 0
- Remove %{epoch} requirements in sub-packages
- Remove trailing white spaces
- Keep consistent between spaces and tabs
f38
Matthias Saou 20 years ago
parent 756379658a
commit 52aa704c69

@ -1,20 +1,19 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Summary: A cryptography library for Python. Summary: Cryptography library for Python
Name: python-crypto Name: python-crypto
Version: 2.0 Version: 2.0
Epoch: 0 Release: 2
Release: 2 License: Python License (CNRI Python License)
License: Python License (CNRI Python License) Group: Development/Libraries
Group: Development/Libraries URL: http://www.amk.ca/python/code/crypto.html
URL: http://www.amk.ca/python/code/crypto.html
Source: http://www.amk.ca/files/python/crypto/pycrypto-2.0.tar.gz Source: http://www.amk.ca/files/python/crypto/pycrypto-2.0.tar.gz
Patch0: %{name}-x86_64-buildfix.patch Patch0: %{name}-x86_64-buildfix.patch
BuildRequires: python >= 0:2.2 BuildRequires: python >= 2.2
BuildRequires: python-devel >= 0:2.2 BuildRequires: python-devel >= 2.2
BuildRequires: gmp-devel >= 0:4.1 BuildRequires: gmp-devel >= 4.1
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot-%(%{__id_u} -n)
Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]") Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
%description %description
@ -24,10 +23,10 @@ etc.).
# The pre section. # The pre section.
%prep %prep
%setup -n pycrypto-2.0 -q %setup -n pycrypto-2.0 -q
%ifarch x86_64 %ifarch x86_64
%patch0 -b .patch0 %patch0 -b .patch0
%endif %endif
# The build section. # The build section.
%build %build
@ -45,7 +44,7 @@ find -name "*.py"|xargs %{__perl} -pi -e "s:/usr/local/bin/python:%{__python}:"
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
# The files section. # The files section.
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README TODO ACKS ChangeLog LICENSE Doc Demo %doc README TODO ACKS ChangeLog LICENSE Doc Demo
%{python_sitearch}/Crypto/*.py %{python_sitearch}/Crypto/*.py
@ -79,7 +78,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Sat Dec 18 2004 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-2 * Sat Dec 18 2004 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-2
- Fix build on x86_64: use python_sitearch for files and patch source - Fix build on x86_64: use python_sitearch for files and patch source
to find gmp to find gmp
* Thu Aug 26 2004 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-0.fdr.1 * Thu Aug 26 2004 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-0.fdr.1
- Update to 2.00 - Update to 2.00

Loading…
Cancel
Save