[nf3d/el6] Unversioned python macro on RHEL6
Christopher Meng
cicku at fedoraproject.org
Mon Mar 3 05:44:40 UTC 2014
commit c75717a76b7a562b9ad143ba958dcfa397c960c5
Author: Christopher Meng <i at cicku.me>
Date: Mon Mar 3 13:43:57 2014 +0800
Unversioned python macro on RHEL6
nf3d.spec | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/nf3d.spec b/nf3d.spec
index f5a3fef..7f9aafc 100644
--- a/nf3d.spec
+++ b/nf3d.spec
@@ -18,13 +18,13 @@ logged packets in a GANTT diagram fashion.
%prep
%setup -q
-sed -i 's|#!/usr/bin/env python|#!/usr/bin/python|' %{name}/%{name}
+sed -i 's|#!/usr/bin/env python|#!%{__python}|' %{name}/%{name}
%build
-%{__python2} setup.py build
+%{__python} setup.py build
%install
-%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
install -pDm644 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf
%files
More information about the scm-commits
mailing list