summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}