diff options
Diffstat (limited to 'packaging/RedHat')
-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 |