]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
rpm: more rpmfusion updates
authorJaroslav Kysela <perex@perex.cz>
Thu, 28 May 2015 13:05:56 +0000 (15:05 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 29 May 2015 11:33:06 +0000 (13:33 +0200)
rpm/Makefile
rpm/rpmfusion.spec.in [new file with mode: 0644]
rpm/tvheadend.spec.in

index 1d5a8f14e72c3d6e85ffccd3efe6eaecbe30b122..b187d2a139c490bd9a558c5e36478c84d6cf2c34 100644 (file)
@@ -18,6 +18,8 @@
 
 include $(dir $(lastword $(MAKEFILE_LIST)))../.config.mk
 
+SPEC     ?= tvheadend.spec.in
+
 COMMIT   ?= $(shell git rev-parse HEAD)
 COMMIT1   = $(shell git rev-parse $(COMMIT))
 FVERSION  = $(shell cd .. && git describe --match "v*" $(COMMIT1) | sed "s/^v//")
@@ -34,7 +36,7 @@ REF       = $(COMMIT1)
 COMMITR   = $(COMMIT1)
 endif
 
-tvheadend.spec: tvheadend.spec.in
+tvheadend.spec: $(SPEC)
        @sed -e 's/@VERSION@/$(VERSION)/g' \
             -e 's/@RELEASE@/$(RELEASE)/g' \
             -e 's/@REF@/$(REF)/g' \
diff --git a/rpm/rpmfusion.spec.in b/rpm/rpmfusion.spec.in
new file mode 100644 (file)
index 0000000..1425809
--- /dev/null
@@ -0,0 +1,106 @@
+%global ref @REF@
+%global commit @COMMIT@
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:           tvheadend
+Summary:        TV streaming server and Digital Video Recorder
+Version:        @VERSION@
+Release:        @RELEASE@%{?dist}
+
+License:        GPLv3
+Group:          Applications/Multimedia
+URL:            http://tvheadend.org
+
+Source:         https://github.com/tvheadend/tvheadend/archive/%{ref}/tvheadend-%{commit}.tar.gz
+#Patch999:      test.patch
+
+BuildRequires:  systemd-units
+BuildRequires:  dbus-devel
+BuildRequires:  avahi-devel
+BuildRequires:  avahi-libs
+BuildRequires:  openssl-devel
+BuildRequires:  uriparser-devel
+BuildRequires:  ffmpeg-devel
+BuildRequires:  python
+
+Requires:       systemd-units
+
+%description
+Tvheadend is a TV streaming server with Digital Video Recorder functionality
+for Linux supporting DVB, ATSC, IPTV, SAT>IP, HDHomeRun as input sources.
+
+It can be used as a back-end to HTTP (VLC, MPlayer), HTSP (Movian, Kodi),
+SAT>IP and various other clients using these protocols.
+
+%prep
+%setup -q -n tvheadend-%{commit}
+#%patch999 -p1 -b .test
+
+%build
+echo %{version}-%{release} > %{_builddir}/%{buildsubdir}/rpm/version
+%configure --disable-lockowner --enable-bundle --disable-libffmpeg_static
+%{__make} %{?_smp_mflags}
+
+%install
+# binary
+mkdir -p -m755 %{buildroot}%{_bindir}
+install -p -m 755 build.linux/tvheadend %{buildroot}%{_bindir}
+# systemd
+mkdir -p -m755 %{buildroot}%{_sysconfdir}/sysconfig
+install -p -m 644 rpm/tvheadend.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/tvheadend
+mkdir -p -m755 %{buildroot}%{_unitdir}
+install -p -m 644 rpm/tvheadend.service %{buildroot}%{_unitdir}
+
+%pre
+getent group tvheadend >/dev/null || groupadd -f -g 283 -r tvheadend
+if ! getent passwd tvheadend > /dev/null ; then
+  if ! getent passwd 283 > /dev/null ; then
+    useradd -r -l -u 283 -g tvheadend -d /home/tvheadend -s /sbin/nologin -c "Tvheadend TV server" tvheadend
+  else
+    useradd -r -l -g tvheadend -d /home/tvheadend -s /sbin/nologin -c "Tvheadend TV server" tvheadend
+  fi
+fi
+if ! test -d /home/tvheadend ; then
+  mkdir -m 0755 /home/tvheadend || exit 1
+  chown tvheadend.tvheadend /home/tvheadend || exit 1
+fi
+exit 0
+
+%post
+%systemd_post tvheadend.service
+
+%postun
+%systemd_postun_with_restart tvheadend.service
+
+%files
+%{_bindir}/*
+%{_sysconfdir}/sysconfig/*
+%{_unitdir}/*
+
+%changelog
+* Wed May 27 2015 Jaroslav Kysela <perex@perex.cz> 4.0.3-1
+- rpmlint fixes
+
+* Mon May 25 2015 Jaroslav Kysela <perex@perex.cz> 4.0.2-1
+- fix requires (libs) and improve description
+- add support for final version to Source
+
+* Thu May 21 2015 Jaroslav Kysela <perex@perex.cz> 4.0.1-1
+- changed versioning system (put changes and git hash to revision)
+
+* Thu May 14 2015 Jaroslav Kysela <perex@perex.cz> 3.9-2842
+- add python to BuildRequires
+
+* Wed Mar 25 2015 Bob Lightfoot <boblfoot@gmail.com> 3.9-2658-gb427d7e
+- Patching rpm spec file so the arm architecture builds properly
+
+* Mon Oct 13 2014 Jaroslav Kysela <perex@perex.cz> 3.9-1806-g6f3324e
+- RPM: Typo fixes
+
+* Mon Oct 13 2014 Jaroslav Kysela <perex@perex.cz> 3.9-1805-g14a7de8
+- RPM build - config fixes
+
+* Mon Oct 13 2014 Jaroslav Kysela <perex@perex.cz> 3.9-1803-g392dec0
+- Add basic RPM build support
+
+~   
index aa81bfe9e77f1ad66f1e59bc7626cb22d9e0b0a1..a37220a70e8d7010f763a6d8c341e0be3de1c499 100644 (file)
@@ -14,13 +14,14 @@ URL:            http://tvheadend.org
 Source:         https://github.com/tvheadend/tvheadend/archive/%{ref}/tvheadend-%{commit}.tar.gz
 #Patch999:      test.patch
 
-BuildRequires:  systemd-units >= 1
+BuildRequires:  systemd-units
 BuildRequires:  dbus-devel
+BuildRequires:  avahi-devel
 BuildRequires:  avahi-libs
 BuildRequires:  openssl-devel
-BuildRequires:  git wget python
+BuildRequires:  wget python
 
-Requires:       systemd-units >= 1
+Requires:       systemd-units
 
 %description
 Tvheadend is a TV streaming server with Digital Video Recorder functionality
@@ -40,7 +41,7 @@ echo %{version}-%{release} > %{_builddir}/%{buildsubdir}/rpm/version
 %else
       %configure --disable-lockowner --enable-bundle --enable-libffmpeg_static
 %endif
-%{__make}
+%{__make} %{?_smp_mflags}
 
 %install
 # binary