[packages/rpm/rpm.org] - use recommends to whn building with rpm that supports them

baggins baggins at pld-linux.org
Sat Oct 24 16:12:40 CEST 2020


commit 8a4b67ac38e1f15ece9844df5aa3f9fd2eb6dbdf
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Oct 24 16:12:00 2020 +0200

    - use recommends to whn building with rpm that supports them

 rpm.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/rpm.spec b/rpm.spec
index d9dd581..341c15e 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -1,6 +1,5 @@
 #
 # TODO:
-# - rebuild database after upgrading from rpm5
 # - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
 #
 # Conditional build:
@@ -15,6 +14,10 @@
 %define		openssl_ver	1.1.1d
 %define		sover		9.1.0
 
+ %if %{_ver_ge '%{_rpmversion}' '4.12'} && %{_ver_lt '%{_rpmversion}' '5.0'}
+ %define	with_recommends_tags
+ %endif
+
 Summary:	RPM Package Manager
 Summary(de.UTF-8):	RPM Packet-Manager
 Summary(es.UTF-8):	Gestor de paquetes RPM
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/8a4b67ac38e1f15ece9844df5aa3f9fd2eb6dbdf



More information about the pld-cvs-commit mailing list