summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-08-29 18:55:30 +0000
committerGerald Carter <jerry@samba.org>2003-08-29 18:55:30 +0000
commite1231a249380d35833c3181fcd19e302df89d0f7 (patch)
tree74fe1d361ad975ae1cc7c3341b10094680fe040d
parent2ce05b7a3f8c0c88639b309e97928fb5b55c9642 (diff)
downloadsamba-e1231a249380d35833c3181fcd19e302df89d0f7.tar.gz
samba-e1231a249380d35833c3181fcd19e302df89d0f7.tar.bz2
samba-e1231a249380d35833c3181fcd19e302df89d0f7.zip
make changes in the template, not the generated files... :-(
(This used to be commit 9e404772811ab0c88afbface2252df2e75c5e1ba)
-rw-r--r--packaging/RedHat/makerpms.sh.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl
index 92037c75c1..7e927907ae 100644
--- a/packaging/RedHat/makerpms.sh.tmpl
+++ b/packaging/RedHat/makerpms.sh.tmpl
@@ -50,6 +50,10 @@ case $RPMVER in
;;
4.*)
echo Building for RPM v4.1 or later
+ ## we can do a little better here on the spec and
+ ## source directories
+ SPECDIR=`rpm -E %_specdir`
+ SOURCEDIR=`rpm -E %_sourcedir`
RPM="rpmbuild"
sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba.spec > $SPECFILE
;;