From: Mauro Carvalho Chehab Date: Sun, 10 Aug 2014 15:47:21 +0000 (-0300) Subject: Add an option to build the srpm X-Git-Tag: v0.5.3~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=18a07abfb67c905a0979708c308d2527be24aefc;p=users%2Fmchehab%2Frasdaemon.git Add an option to build the srpm Signed-off-by: Mauro Carvalho Chehab --- diff --git a/Makefile.am b/Makefile.am index 117c970..6c47ae2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -50,6 +50,11 @@ dist-rpm: dist-bzip2 rpmbuild -ba misc/@PACKAGE@.spec cp `rpm --eval %{_topdir}`/SRPMS/@PACKAGE@-@PACKAGE_VERSION@*.src.rpm . +srpm: dist-bzip2 + if [ ! -d "`rpm --eval %{_topdir}`/SOURCES/" ]; then mkdir "`rpm --eval %{_topdir}`/SOURCES/"; fi + cp @PACKAGE@-@PACKAGE_VERSION@.tar.bz2 `rpm --eval %{_topdir}`/SOURCES/ + rpmbuild -bs misc/@PACKAGE@.spec + rpmlint: rpmlint misc/@PACKAGE@.spec `rpm --eval %{_topdir}`/SRPMS/@PACKAGE@-@PACKAGE_VERSION@*.src.rpm `rpm --eval %{_topdir}`/RPMS/*/@PACKAGE@-@PACKAGE_VERSION@*.rpm