commit cdb3985d20890677e79fbf63f807fde083b181dd
Author: Jan Rękorajski <[email protected]>
Date:   Mon Feb 22 13:36:18 2021 +0100

    - added rpm5 bcond
    - rel 6

 systemtap.spec | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/systemtap.spec b/systemtap.spec
index 1a806f5..a75d726 100644
--- a/systemtap.spec
+++ b/systemtap.spec
@@ -7,6 +7,7 @@
 %bcond_without java            # Java runtime support
 %bcond_without python2         # Python 2.x runtime support
 %bcond_without python3         # Python 3.x runtime support
+%bcond_with    rpm5    # build with rpm5
 
 %ifnarch %{ix86} %{x8664} x32 alpha arm ia64 ppc64 s390 s390x
 %undefine      with_crash
@@ -18,7 +19,7 @@ Summary:      Instrumentation System
 Summary(pl.UTF-8):     System oprzyrządowania
 Name:          systemtap
 Version:       3.3
-Release:       5
+Release:       6
 License:       GPL v2+
 Group:         Base
 Source0:       
http://sourceware.org/systemtap/ftp/releases/%{name}-%{version}.tar.gz
@@ -285,14 +286,11 @@ Przewodniki i dokumentacja wprowadzająca do SystemTap.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%{?with_rpm5:%patch2 -p1}
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
 
-%if "%{_rpmversion}" >= "5.0"
-%patch2 -p1
-%endif
-
 %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
       testsuite/systemtap.examples/general/pyexample.py
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/systemtap.git/commitdiff/cdb3985d20890677e79fbf63f807fde083b181dd

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to