No longer require to be root to run rpmbuild.

Allow RPMOPT variable to pass parameters to rpmbuild.


git-svn-id: http://voip.null.ro/svn/yate@3267 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-05-02 21:08:49 +00:00
parent c1d6df815e
commit 53c7b31ba3
1 changed files with 5 additions and 4 deletions

View File

@ -15,6 +15,7 @@ INCLUDES := -I. -I@srcdir@
CFLAGS := @CFLAGS@ @MODULE_CPPFLAGS@ @INLINE_FLAGS@
LDFLAGS:= @LDFLAGS@
LDCONFIG:=true
RPMOPT :=
MKDEPS := ./config.status
PROGS:= yate
@ -293,11 +294,11 @@ snapshot tarball: check-topdir revision clean tables windows apidocs
$$wd; \
rm $$wd/tar-exclude
rpm: check-root tarball
rpmbuild -tb packing/tarballs/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-@PACKAGE_STATUS@@PACKAGE_RELEASE@.tar.gz
rpm: tarball
rpmbuild -tb $(RPMOPT) packing/tarballs/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-@PACKAGE_STATUS@@PACKAGE_RELEASE@.tar.gz
srpm: check-root tarball
rpmbuild -ta packing/tarballs/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-@PACKAGE_STATUS@@PACKAGE_RELEASE@.tar.gz
srpm: tarball
rpmbuild -ta $(RPMOPT) packing/tarballs/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-@PACKAGE_STATUS@@PACKAGE_RELEASE@.tar.gz
revision: check-topdir
@-rev=`svn info 2>/dev/null | sed -n 's,^Revision: *,,p'`; \