diff options
author | Gerald Carter <jerry@samba.org> | 2002-10-21 15:25:36 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-10-21 15:25:36 +0000 |
commit | e7f8c2e97eb48b622a5222f09f3d10ba59323751 (patch) | |
tree | 05efc8e5ee82139362df440eb4c04aa8d23b30f3 /packaging | |
parent | e275d14da3de27ab02fce061c44265c2ecefa6ea (diff) | |
download | samba-e7f8c2e97eb48b622a5222f09f3d10ba59323751.tar.gz samba-e7f8c2e97eb48b622a5222f09f3d10ba59323751.tar.xz samba-e7f8c2e97eb48b622a5222f09f3d10ba59323751.zip |
detect rpm v4.1 (RedHat 8.0)
(This used to be commit 67dfc8df154893fcd7ed3ea55e04e2cb350ff972)
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/RedHat/makerpms.sh.tmpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl index 0b20785129..aedf421882 100644 --- a/packaging/RedHat/makerpms.sh.tmpl +++ b/packaging/RedHat/makerpms.sh.tmpl @@ -30,6 +30,7 @@ GRPID=`id -g` VERSION='PVERSION' RPMVER=`rpm --version | awk '{print $3}'` +RPM="rpm" echo The RPM Version on this machine is: $RPMVER case $RPMVER in @@ -43,6 +44,12 @@ case $RPMVER in sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2.spec > samba.spec sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2-devel.spec > samba-devel.spec ;; + 4.1*) + echo Building for RPM v4.1 + RPM="rpmbuild" + sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba2.spec > samba.spec + sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba2-devel.spec > samba-devel.spec + ;; 4*) echo Building for RPM v4.x sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba2.spec > samba.spec |