[packages/crmsh] - fix shebangs - disable debug packages - rel 2
baggins
baggins at pld-linux.org
Tue Mar 2 23:02:06 CET 2021
commit 921a7684571c5bb62d1c053d72c6a46bd2fd8c1e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Mar 2 23:01:33 2021 +0100
- fix shebangs
- disable debug packages
- rel 2
crmsh.spec | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/crmsh.spec b/crmsh.spec
index b93e7e7..8ac75b4 100644
--- a/crmsh.spec
+++ b/crmsh.spec
@@ -1,11 +1,12 @@
#
# Note: This is not noarch, as it has %{_libdir} etc. hardcoded in *.py files
+%define _enable_debug_packages 0
#
Summary: Pacemaker command line interface for management and configuration
Summary(pl.UTF-8): Interfejs linii poleceń do zarządzania i konfiguracji Pacemakera
Name: crmsh
Version: 3.0.0
-Release: 1
+Release: 2
License: GPL v2+
Group: Applications/System
#Source0Download: https://github.com/ClusterLabs/crmsh/releases
@@ -40,16 +41,20 @@ Zawiera polecenie "crm", które było częścią Pacemakera < 1.1.8.
%setup -q
%patch0 -p1
-%{__sed} -i -e '1s,/usr/bin/env python,%{__python},' \
- utils/crm_clean.py \
- scripts/check-uptime/*.py \
- scripts/health/*.py
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
+ utils/crm_clean.py \
+ utils/crm_pkg.py \
+ utils/crm_rpmcheck.py \
+ scripts/check-uptime/*.py \
+ scripts/health/*.py \
+ bin/crm
%build
%{__aclocal}
%{__autoconf}
%{__automake}
-%configure
+%configure \
+ PYTHON=%{__python}
%{__make}
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crmsh.git/commitdiff/921a7684571c5bb62d1c053d72c6a46bd2fd8c1e
More information about the pld-cvs-commit
mailing list