summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchristophe.ravel.bugs%sun.com <devnull@localhost>2005-11-18 21:54:17 +0000
committerchristophe.ravel.bugs%sun.com <devnull@localhost>2005-11-18 21:54:17 +0000
commite4ea7e94bfb4ec881b534d3fc1d5cc5d6cd3c1e1 (patch)
tree01cc1fd75b601b45088e4e94e82a66d0f922d576
parent7f10885c7e8cad998dcddf5e4af3328b9c424604 (diff)
downloadnspr-hg-NSPR_4_6_1_RTM.tar.gz
238319: Sun packages changes.NSPR_4_6_1_RTMNSPR_4_6_1_RC1
RPM_RELEASE can be set from the command line.
-rw-r--r--pkg/linux/Makefile.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/linux/Makefile.in b/pkg/linux/Makefile.in
index c2ef7e89..ebf62ea6 100644
--- a/pkg/linux/Makefile.in
+++ b/pkg/linux/Makefile.in
@@ -47,7 +47,9 @@ 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/ .*//'`
@@ -76,7 +78,7 @@ publish:
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)