summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rw-r--r--packaging/RedHat/makerpms.sh.tmpl20
-rw-r--r--packaging/RedHat/samba2.spec.tmpl3
2 files changed, 6 insertions, 17 deletions
diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl
index 3c4ff40ddc..ee5ebd5040 100644
--- a/packaging/RedHat/makerpms.sh.tmpl
+++ b/packaging/RedHat/makerpms.sh.tmpl
@@ -60,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.
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index 408ea16a9f..a3c603c12a 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -47,6 +47,9 @@ autoconf
EXTRA="-D_LARGEFILE64_SOURCE"
%endif
NUMCPU=`grep processor /proc/cpuinfo | wc -l`
+if [ ! -f "configure" ]; then
+ ./autogen.sh
+fi
CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \
--prefix=%{prefix} \
--localstatedir=/var \