From: Jaroslav Kysela Date: Mon, 25 May 2015 14:30:21 +0000 (+0200) Subject: rpm: another build improvements (add srpm target) X-Git-Tag: v4.2.1~2468 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6adcf7cf9d37c846b4a8e444e4e620de0fbc8855;p=thirdparty%2Ftvheadend.git rpm: another build improvements (add srpm target) --- diff --git a/rpm/Makefile b/rpm/Makefile index 86fa2a24a..aa3b25a73 100644 --- a/rpm/Makefile +++ b/rpm/Makefile @@ -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 diff --git a/rpm/tvheadend.spec.in b/rpm/tvheadend.spec.in index d508f7fdf..043d9c154 100644 --- a/rpm/tvheadend.spec.in +++ b/rpm/tvheadend.spec.in @@ -81,7 +81,7 @@ exit 0 %{_unitdir}/* %changelog -* Thu May 25 2015 Jaroslav Kysela v4.0.2 +* Mon May 25 2015 Jaroslav Kysela v4.0.2 - fix requires (libs) and improve description * Thu May 21 2015 Jaroslav Kysela v4.0.1