Changed Makefile.am to use rpmbuild

This commit is contained in:
syed.amer@gilani.eu 2009-04-11 08:46:14 +00:00
parent df0fd3d916
commit 88bcfba3ca
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ dist-rpm: dist
mkdir $(RPMTOPDIR) mkdir $(RPMTOPDIR)
(cd $(RPMTOPDIR); mkdir BUILD SOURCES SPECS SRPMS RPMS) (cd $(RPMTOPDIR); mkdir BUILD SOURCES SPECS SRPMS RPMS)
cp @PACKAGE@-@VERSION@.tar.gz $(RPMTOPDIR)/SOURCES cp @PACKAGE@-@VERSION@.tar.gz $(RPMTOPDIR)/SOURCES
rpm --define '_topdir $(RPMTOPDIR)' -ba dist/rpm/synergy.spec && \ rpmbuild --define '_topdir $(RPMTOPDIR)' -ba dist/rpm/synergy.spec && \
mv -f $(RPMTOPDIR)/SRPMS/*.rpm . && \ mv -f $(RPMTOPDIR)/SRPMS/*.rpm . && \
mv -f $(RPMTOPDIR)/RPMS/*/*.rpm . && \ mv -f $(RPMTOPDIR)/RPMS/*/*.rpm . && \
rm -rf $(RPMTOPDIR) rm -rf $(RPMTOPDIR)