diff options
Diffstat (limited to 'packaging/RedHat/makerpms.sh.tmpl')
-rw-r--r-- | packaging/RedHat/makerpms.sh.tmpl | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl index 9d71452db8..ee5ebd5040 100644 --- a/packaging/RedHat/makerpms.sh.tmpl +++ b/packaging/RedHat/makerpms.sh.tmpl @@ -37,23 +37,19 @@ case $RPMVER in 2*) echo Building for RPM v2.x 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 ;; 3*) echo Building for RPM v3.x 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 - sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba2-devel.spec > samba-devel.spec ;; *) echo "Unknown RPM version: `rpm --version`" @@ -64,27 +60,13 @@ esac ( cd ../../source; if [ -f Makefile ]; then make distclean; fi ) ( cd ../../.. ; chown -R ${USERID}.${GRPID} samba-${VERSION} ) -# We do this to make sure that the package always has the current version in it''s name -if [ z$1 = z"devel" ]; then - (cd ../../.. ; mv samba samba-${VERSION} ) -fi - ( cd ../../.. ; tar --exclude=CVS -cf - samba-${VERSION}/. | bzip2 > ${SRCDIR}/samba-${VERSION}.tar.bz2 ) cp -av samba.spec ${SPECDIR} -cp -av samba-devel.spec ${SPECDIR} -if [ z$1 = "zdevel" ]; then - echo Restoring source samba directory name - ( cd ../../.. ; mv samba-${VERSION} samba ) - echo Getting Ready to build Developmental Build - cd ${SPECDIR} - ${RPM} -ba -v samba-devel.spec -else - echo Getting Ready to build release package - cd ${SPECDIR} - ${RPM} -ba -v --clean --rmsource samba.spec -fi +echo Getting Ready to build release package +cd ${SPECDIR} +${RPM} -ba -v --clean --rmsource samba.spec echo Done. |