summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacek Konieczny2015-11-28 17:06:41 (GMT)
committerJacek Konieczny2015-11-28 17:06:41 (GMT)
commit701693a8190426eb4ae8baa24b258d0e246e8358 (patch)
treed4bd1728320c565989a032ac48b2b9a70176789c
parent2a838ff8c1091580c70a5bc029b4a730723ff040 (diff)
downloadpython-GnuPGInterface-701693a8190426eb4ae8baa24b258d0e246e8358.zip
python-GnuPGInterface-701693a8190426eb4ae8baa24b258d0e246e8358.tar.gz
automatic change: use py_build/py_install macros
-rw-r--r--python-GnuPGInterface.spec7
1 files changed, 2 insertions, 5 deletions
diff --git a/python-GnuPGInterface.spec b/python-GnuPGInterface.spec
index 0a911e8..4aaa342 100644
--- a/python-GnuPGInterface.spec
+++ b/python-GnuPGInterface.spec
@@ -25,14 +25,11 @@ the Perl module GnuPG::Interface.
%setup -q -n GnuPGInterface-%{version}
%build
-export CFLAGS="%{rpmcflags}"
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
%py_comp $RPM_BUILD_ROOT%{py_sitedir}