Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
rpm: versioning fixes, added libdvbv5-devel to BuildRequires
  • Loading branch information
perexg committed May 21, 2015
1 parent f658c06 commit 7dc8113
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
10 changes: 9 additions & 1 deletion rpm/Makefile
Expand Up @@ -20,10 +20,18 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../.config.mk

COMMIT ?= $(shell git rev-parse HEAD)
COMMIT1 = $(shell git rev-parse $(COMMIT))
VERSION = $(shell cd .. && git describe --match "v*" $(COMMIT1) | sed -e 's/-/./g' -e 's/^v//g' )
FVERSION = $(shell cd .. && git describe --match "v*" $(COMMIT1) | sed "s/^v//")
VERSION = $(shell echo "$(FVERSION)" | cut -d '-' -f 1)
RELEASE = $(shell echo "$(FVERSION)" | cut -d '-' -f 2-10 | sed "s/-/~/g")
VERSION ?= "0.0.0"
RELEASE ?= 1
ifeq ($(VERSION),$(RELEASE))
RELEASE = 1
endif

tvheadend.spec: tvheadend.spec.in
@sed -e 's/@VERSION@/$(VERSION)/g' \
-e 's/@RELEASE@/$(RELEASE)/g' \
-e 's/@COMMIT@/$(COMMIT1)/g' \
$< > $@

Expand Down
9 changes: 7 additions & 2 deletions rpm/tvheadend.spec.in
Expand Up @@ -4,7 +4,7 @@
Summary: Tvheadend - a TV streaming server and DVR
Name: tvheadend
Version: @VERSION@
Release: 1
Release: @RELEASE@

License: GPLv3
Group: Applications/Multimedia
Expand All @@ -17,6 +17,7 @@ BuildRequires: systemd-units >= 1
BuildRequires: dbus-devel
BuildRequires: avahi-libs
BuildRequires: openssl-devel
BuildRequires: libdvbv5-devel
BuildRequires: git wget python

Requires: systemd-units >= 1
Expand All @@ -31,7 +32,7 @@ to Showtime, XBMC and various other clients.
#%patch999 -p1 -b .test

%build
echo %{version} > %{_builddir}/%{buildsubdir}/rpm/version
echo %{version}-%{release} > %{_builddir}/%{buildsubdir}/rpm/version
%ifarch %arm
%configure --disable-lockowner --enable-bundle --disable-libffmpeg_static
%else
Expand Down Expand Up @@ -76,6 +77,10 @@ exit 0
%{_unitdir}/*

%changelog
* Thu May 21 2015 Jaroslav Kysela <perex@perex.cz> v4.0.1
- add libdvbv5-devel to BuildRequires
- changed versioning system (put changes and git hash to revision)

* Thu May 14 2015 Jaroslav Kysela <perex@perex.cz> v3.9-2842
- add python to BuildRequires

Expand Down

0 comments on commit 7dc8113

Please sign in to comment.