238319: Sun packages changes. MOZILLA_1_8_BRANCH
authorwtchang%redhat.com
Tue, 07 Feb 2006 19:33:12 +0000
branchMOZILLA_1_8_BRANCH
changeset 3574 58be3ed17de9f86c07387df59e7266588281ac77
parent 3573 60f37caf929257134bf2f0a70d32778a00e6658d
child 3575 098d75ff46bd5c98358b34ab767fde0fa1792d8f
push idunknown
push userunknown
push dateunknown
bugs238319
238319: Sun packages changes. RPM_RELEASE can be set from the command line. (To sync up with NSPR_4_6_BRANCH. This file is not used by Mozilla.) Tag: MOZILLA_1_8_BRANCH
pkg/linux/Makefile.in
--- a/pkg/linux/Makefile.in
+++ b/pkg/linux/Makefile.in
@@ -42,17 +42,19 @@
 #
 
 MOD_DEPTH = ../..
 topsrcdir   = @top_srcdir@
 srcdir	    = @srcdir@
 VPATH	    = @srcdir@
 
 NAME        = sun-nspr
-RELEASE     = 1
+ifndef RPM_RELEASE
+RPM_RELEASE = 1
+endif
 TOPDIR      = /usr/src/redhat
 VERSION     = `grep PR_VERSION $(dist_includedir)/prinit.h \
                   | sed -e 's/"$$//' -e 's/.*"//' -e 's/ .*//'`
 
 SPECFILE    = $(NAME).spec
 
 include $(MOD_DEPTH)/config/autoconf.mk
 
@@ -71,17 +73,17 @@ publish:
 	| (mkdir -p opt/sun/private/$(RPMLIBDIR) && cd opt/sun/private/$(RPMLIBDIR) && tar xvfBp -)
 	(cd $(dist_includedir) && tar cphf - .) \
 	| (mkdir -p opt/sun/private/include/nspr && cd opt/sun/private/include/nspr && tar xvfBp -)
 	(cd opt/sun/private/include/nspr && \
 		rm -rf md private obsolete/pralarm.h obsolete/probslet.h obsolete/prsem.h)
 	tar czvf SOURCES/$(NAME)-$(VERSION).tar.gz opt
 	echo "%define name $(NAME)" >$(SPECFILE)
 	echo "%define version $(VERSION)" >>$(SPECFILE)
-	echo "%define release $(RELEASE)" >>$(SPECFILE)
+	echo "%define release $(RPM_RELEASE)" >>$(SPECFILE)
 	echo "%define buildroot `pwd`/$(NAME)-root" >>$(SPECFILE)
 	echo "%define _topdir `pwd`" >>$(SPECFILE)
 	echo "%define _unpackaged_files_terminate_build 0" >>$(SPECFILE)
 	cat $(srcdir)/$(NAME).spec >>$(SPECFILE)
 	echo "" >>$(SPECFILE)
 	echo "%files" >>$(SPECFILE)
 	echo "%defattr(-,root,root)" >>$(SPECFILE)
 	echo "%dir /opt" >>$(SPECFILE)