]> git.pld-linux.org Git - packages/python-M2Crypto.git/blobdiff - python-M2Crypto.spec
BR: rpmbuild(macros) >= 1.710
[packages/python-M2Crypto.git] / python-M2Crypto.spec
index 557e5532d33db4290baefe1d86731d377d34ae57..b43c34645ca81915611f8613871f28fc4e56f4ce 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Python interface to OpenSSL
 Summary(pl.UTF-8):     Interfejs Pythona do OpenSSL
 Name:          python-M2Crypto
 Version:       0.22.3
-Release:       2
+Release:       3
 License:       BSD-like
 Group:         Libraries/Python
 Source0:       https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
@@ -14,7 +14,7 @@ BuildRequires:        openssl-devel >= 0.9.8
 BuildRequires: python-devel >= 1:2.6
 BuildRequires: python-modules
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: rpmbuild(macros) >= 1.710
 BuildRequires: swig-python >= 2.0
 BuildRequires: unzip
 %pyrequires_eq python
@@ -41,15 +41,13 @@ M2Crypto udostępnia z poziomu Pythona następujące funkcje:
 %patch1 -p1
 
 %build
-%{__python} setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
 
-%{__python} setup.py install \
-       --root=$RPM_BUILD_ROOT \
-       --optimize=2
+%py_install
 
 %py_postclean
 
This page took 0.061512 seconds and 4 git commands to generate.