Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
rpm: another build improvements (add srpm target)
  • Loading branch information
perexg committed May 25, 2015
1 parent 40d34a7 commit 6adcf7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions rpm/Makefile
Expand Up @@ -27,6 +27,7 @@ VERSION ?= "0.0.0"
RELEASE ?= 1
ifeq ($(VERSION),$(RELEASE))
RELEASE = 1
COMMIT1 = $(COMMIT)
endif

tvheadend.spec: tvheadend.spec.in
Expand All @@ -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
2 changes: 1 addition & 1 deletion rpm/tvheadend.spec.in
Expand Up @@ -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
Expand Down

0 comments on commit 6adcf7c

Please sign in to comment.