]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
rpm: another build improvements (add srpm target)
authorJaroslav Kysela <perex@perex.cz>
Mon, 25 May 2015 14:30:21 +0000 (16:30 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 May 2015 14:30:59 +0000 (16:30 +0200)
rpm/Makefile
rpm/tvheadend.spec.in

index 86fa2a24a09a76a878e8415f8387bfda0e509cd4..aa3b25a73bf7c24cc3c22116f38eee1c889eff45 100644 (file)
@@ -27,6 +27,7 @@ VERSION  ?= "0.0.0"
 RELEASE  ?= 1
 ifeq ($(VERSION),$(RELEASE))
 RELEASE   = 1
+COMMIT1   = $(COMMIT)
 endif
 
 tvheadend.spec: tvheadend.spec.in
@@ -38,6 +39,10 @@ tvheadend.spec: tvheadend.spec.in
 ~/rpmbuild/SOURCES:
        mkdir -p $(foreach f,BUILD RPMS SOURCES SPECS SRPMS,~/rpmbuild/$(f))
 
+srpm: ~/rpmbuild/SOURCES tvheadend.spec
+       spectool --get-files --sourcedir tvheadend.spec
+       rpmbuild -bs tvheadend.spec
+
 build: ~/rpmbuild/SOURCES tvheadend.spec
        spectool --get-files --sourcedir tvheadend.spec
        rpmbuild -ba tvheadend.spec
index d508f7fdf44a22b06e1fd27e2685781746a4ff60..043d9c1543216267bb70c4fac188903697950a78 100644 (file)
@@ -81,7 +81,7 @@ exit 0
 %{_unitdir}/*
 
 %changelog
-* Thu May 25 2015 Jaroslav Kysela <perex@perex.cz> v4.0.2
+* Mon May 25 2015 Jaroslav Kysela <perex@perex.cz> v4.0.2
 - fix requires (libs) and improve description
 
 * Thu May 21 2015 Jaroslav Kysela <perex@perex.cz> v4.0.1