[packages/python-gflags] - don't hide python dependency behind /usr/bin/env; release 3
qboosh
qboosh at pld-linux.org
Mon Aug 3 17:14:45 CEST 2015
commit 405ba6631e562a8b2bbcb3967247312126022699
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Aug 3 17:14:43 2015 +0200
- don't hide python dependency behind /usr/bin/env; release 3
python-gflags.spec | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/python-gflags.spec b/python-gflags.spec
index c01d269..703d79f 100644
--- a/python-gflags.spec
+++ b/python-gflags.spec
@@ -3,7 +3,7 @@ Summary: Commandline flags module for Python
Summary(pl.UTF-8): Moduł flag linii poleceń dla Pythona
Name: python-%{module}
Version: 2.0
-Release: 2
+Release: 3
License: BSD
Group: Development/Languages/Python
#Source0Download: https://github.com/gflags/python-gflags
@@ -51,6 +51,8 @@ ostatnie to główna różnica względem OptParse).
# Fix non-executable-script error
%{__sed} -i '/^#!\%{_prefix}\/bin\/env python$/,+1 d' %{module}.py
+%{__sed} -i '1s,/usr/bin/env python,/usr/bin/python,' gflags2man.py
+
%build
%{__python} setup.py build
@@ -73,6 +75,6 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog COPYING README
%attr(755,root,root) %{_bindir}/gflags2man
-%{py_sitescriptdir}/%{module}.py[co]
-%{py_sitescriptdir}/%{module}_validators.py[co]
+%{py_sitescriptdir}/gflags.py[co]
+%{py_sitescriptdir}/gflags_validators.py[co]
%{py_sitescriptdir}/python_gflags-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-gflags.git/commitdiff/405ba6631e562a8b2bbcb3967247312126022699
More information about the pld-cvs-commit
mailing list