common Makefile.common,1.122,1.123

Dennis Gilmore ausil at fedoraproject.org
Thu Mar 19 19:16:51 UTC 2009


Author: ausil

Update of /cvs/extras/common
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19283

Modified Files:
	Makefile.common 
Log Message:
add defines so you can build srpms for older releases that those releases understand using F-11 and newer rpms with stronger hashes by default.



Index: Makefile.common
===================================================================
RCS file: /cvs/extras/common/Makefile.common,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -r1.122 -r1.123
--- Makefile.common	25 Feb 2009 15:52:07 -0000	1.122
+++ Makefile.common	19 Mar 2009 19:16:20 -0000	1.123
@@ -2,7 +2,7 @@
 #
 # Common Makefile for building RPMs
 # Licensed under the new-BSD license (http://www.opensource.org/licenses/bsd-license.php)
-# Copyright (C) 2004-2008 Red Hat, Inc.
+# Copyright (C) 2004-2009 Red Hat, Inc.
 # Copyright (C) 2005 Fedora Foundation
 #
 # $Id$
@@ -90,6 +90,20 @@
                 $(DIST_DEFINES)
 endif
 
+# to make srpms on F-11 and newer for older releases use old hashes
+# F-10's rpm supports both styles F-9 is the only current release 
+# outside of rhel that needs old hasnes
+ifeq ($(DISTVAR),rhel)
+RPM_DEFINES := $(RPM_DEFINES) \
+		--define "_source_filedigest_algorithm md5" \
+		--define "_binary_filedigest_algorithm md5"
+endif
+ifeq ($(DISTVAL),9)
+RPM_DEFINES := $(RPM_DEFINES) \
+		--define "_source_filedigest_algorithm md5" \
+		--define "_binary_filedigest_algorithm md5"
+endif
+
 # Initialize the variables that we need, but are not defined
 # the version of the package
 




More information about the fedora-extras-commits mailing list