[packages/supermin] - added rpm5 bcond - rel 2

baggins baggins at pld-linux.org
Mon Feb 22 13:35:01 CET 2021


commit 1cee4722ffd31d55901f52b3e05f0ab063167983
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Feb 22 13:34:46 2021 +0100

    - added rpm5 bcond
    - rel 2

 supermin.spec | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/supermin.spec b/supermin.spec
index b326366..ade30b0 100644
--- a/supermin.spec
+++ b/supermin.spec
@@ -1,8 +1,12 @@
+#
+# Conditional build:
+%bcond_with	rpm5	# build with rpm5
+
 Summary:	Tool for creating supermin appliances
 Summary(pl.UTF-8):	Narzędzie do tworzenia minimalistycznych instalacji
 Name:		supermin
 Version:	5.1.17
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		Applications/System
 Source0:	http://libguestfs.org/download/supermin/%{name}-%{version}.tar.gz
@@ -21,7 +25,7 @@ BuildRequires:	pkgconfig
 # not needed in releases (BTW: perldoc is checked, but pod2man is actually used)
 #BuildRequires:	perl-perldoc
 #BuildRequires:	perl-tools-pod
-BuildRequires:	rpm-devel >= 5
+BuildRequires:	rpm-devel
 BuildRequires:	xz-devel
 BuildRequires:	zlib-devel
 Requires:	cpio
@@ -52,7 +56,7 @@ uruchomienia takowej.
 
 %prep
 %setup -q
-%patch0 -p1
+%{?with_rpm5:%patch0 -p1}
 
 %build
 %{__aclocal} -I m4
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/supermin.git/commitdiff/1cee4722ffd31d55901f52b3e05f0ab063167983



More information about the pld-cvs-commit mailing list