]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
Add an option to build the srpm
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 10 Aug 2014 15:47:21 +0000 (12:47 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 10 Aug 2014 15:56:08 +0000 (12:56 -0300)
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Makefile.am

index 117c970a390280b403035cb3b264c37f2f3caa35..6c47ae20101625d05cde48ba18bfd17d95671577 100644 (file)
@@ -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