[python-pyotp/el5: 2/2] Modify per EPEL5 policies.
Konstantin Ryabitsev
icon at fedoraproject.org
Tue Mar 6 20:29:00 UTC 2012
commit b7eaa59be86192a3366dd4108063e4833bbea085
Author: Konstantin Ryabitsev <mricon at kernel.org>
Date: Tue Mar 6 15:28:39 2012 -0500
Modify per EPEL5 policies.
python-pyotp.spec | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/python-pyotp.spec b/python-pyotp.spec
index f4cbeca..7acaca4 100644
--- a/python-pyotp.spec
+++ b/python-pyotp.spec
@@ -9,6 +9,7 @@ License: BSD
URL: http://pypi.python.org/pypi/pyotp
Source0: http://pypi.python.org/packages/source/p/pyotp/pyotp-%{version}.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
BuildRequires: python-devel
@@ -30,8 +31,12 @@ RFC 4226 and the HOTP RFC.
%install
-rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
%files
More information about the scm-commits
mailing list