[ansible-lint/el6] Fix spec for EPEL6 packaging

Parag Nemade pnemade at fedoraproject.org
Wed Oct 29 06:13:36 UTC 2014


commit 3511544c5f0aff80197c3f22b14e8e44fa09fee4
Author: Parag Nemade <pnemade at redhat.com>
Date:   Wed Oct 29 11:43:37 2014 +0530

    Fix spec for EPEL6 packaging

 ansible-lint.spec |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/ansible-lint.spec b/ansible-lint.spec
index c5341f9..09cf2fd 100644
--- a/ansible-lint.spec
+++ b/ansible-lint.spec
@@ -23,22 +23,17 @@ Checks playbooks for practices and behavior that could potentially be improved
 %setup -q -n %{archive_name}-%{version}
 rm -rf *.egg-info
 
-find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
-
 %build
-%{__python2} setup.py build
+%{__python} setup.py build
 
 %install
-%{__python2} setup.py install --skip-build --root=%{buildroot}
-
-%check
-%{__python2} setup.py test
+%{__python} setup.py install --skip-build --root=%{buildroot}
 
 %files
 %doc PKG-INFO LICENSE
 %{_bindir}/%{name}
-%{python2_sitelib}/%{lib_name}
-%{python2_sitelib}/ansible_lint-%{version}-py2.*.egg-info
+%{python_sitelib}/%{lib_name}
+%{python_sitelib}/ansible_lint-%{version}-py2.?.egg-info
 
 %changelog
 * Mon Oct 27 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0.4-1


More information about the scm-commits mailing list