From 921a7684571c5bb62d1c053d72c6a46bd2fd8c1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Tue, 2 Mar 2021 23:01:33 +0100 Subject: [PATCH] - 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 -- 2.44.0