commit 001124b9021a5e2d0044d54d62119f17a8420c9565100b19bf425c5fdeab223a Author: Marcus Meissner Date: Mon Dec 7 07:40:04 2015 +0000 Accepting request 347651 from home:posophe:branches:multimedia:apps Tvheadend pvr OBS-URL: https://build.opensuse.org/request/show/347651 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/tvheadend?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/tvheadend-4.0.7.tar.gz b/tvheadend-4.0.7.tar.gz new file mode 100644 index 0000000..2138ff1 --- /dev/null +++ b/tvheadend-4.0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c8dce6b680eef6869e4b367798af7d058b9787800b17603977911fae626126e +size 15826790 diff --git a/tvheadend-fix-daemon-user-group.patch b/tvheadend-fix-daemon-user-group.patch new file mode 100644 index 0000000..431b1f3 --- /dev/null +++ b/tvheadend-fix-daemon-user-group.patch @@ -0,0 +1,24 @@ +--- a/rpm/tvheadend.service 2015-10-22 21:13:23.000000000 +0200 ++++ b/rpm/tvheadend.service 2015-12-06 12:12:50.803031083 +0100 +@@ -1,11 +1,11 @@ + [Unit] + Description=Tvheadend - a TV streaming server and DVR +-After=syslog.target network.target auditd.service ++After=network.target auditd.service + + [Service] + EnvironmentFile=/etc/sysconfig/tvheadend +-ExecStart=/usr/bin/tvheadend -f -p /var/run/tvheadend.pid $OPTIONS +-PIDFile=/var/run/tvheadend.pid ++ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid $OPTIONS ++PIDFile=/run/tvheadend.pid + Type=forking + Restart=on-failure + RestartSec=54s +--- a/rpm/tvheadend.sysconfig 2015-10-22 21:13:23.000000000 +0200 ++++ b/rpm/tvheadend.sysconfig 2015-12-06 12:12:43.323348301 +0100 +@@ -1,3 +1,3 @@ + # Configuration file for the tvheadend service. + +-OPTIONS="-c /home/tvheadend/config -u tvheadend -g tvheadend -6 --http_port 9981 --htsp_port 9982" ++OPTIONS="-c /home/tvheadend/config -u hts -g video -6 --http_port 9981 --htsp_port 9982" diff --git a/tvheadend.changes b/tvheadend.changes new file mode 100644 index 0000000..4c8051f --- /dev/null +++ b/tvheadend.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Sun Dec 6 12:44:48 UTC 2015 - p.drouand@gmail.com + +- Initial release (version 4.0.7) +- Add tvheadend-fix-daemon-user-group.patch + diff --git a/tvheadend.spec b/tvheadend.spec new file mode 100644 index 0000000..34b236e --- /dev/null +++ b/tvheadend.spec @@ -0,0 +1,105 @@ +# +# spec file for package tvheadend +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define htsgroup video +%define htsuser hts +Name: tvheadend +Version: 4.0.7 +Release: 1.3 +Summary: A TV Streaming Server +License: GPL-3.0 +Group: Productivity/Multimedia/Other +Url: https://tvheadend.org/ +Source0: http://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch: tvheadend-fix-daemon-user-group.patch +BuildRequires: fdupes +BuildRequires: pkgconfig(avahi-client) +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(libavcodec) +BuildRequires: pkgconfig(libavformat) +BuildRequires: pkgconfig(libavresample) +BuildRequires: pkgconfig(libavutil) +BuildRequires: pkgconfig(libssl) +BuildRequires: pkgconfig(libswscale) +BuildRequires: pkgconfig(liburiparser) +BuildRequires: pkgconfig(zlib) +BuildRequires: pkg-config +BuildRequires: python-devel +%{?systemd_requires} + +%description +A TV streaming server supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, +and Analog video (V4L) as input sources. + +It also comes with a powerful and easy to use web interface both used for +configuration and day-to-day operations, such as searching the EPG and +scheduling recordings. + +%prep +%setup -q +%patch -p1 +sed -e '/^TVH_ARGS/cTVH_ARGS="-C"' -i debian/%{name}.default +echo %{version} > rpm/version + +%build +%configure --disable-dvbscan --disable-libffmpeg_static --disable-libffmpeg_static_x264 +make V=1 %{?_smp_mflags} + +%install +%make_install +mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates/ +mkdir -p %{buildroot}%{_sbindir} +install -D -m 644 rpm/%{name}.service %{buildroot}/%{_unitdir}/%{name}.service +install -m 644 rpm/%{name}.sysconfig %{buildroot}/%{_localstatedir}/adm/fillup-templates/sysconfig.%{name} +ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} +%fdupes -s %{buildroot}%{_datadir} +chmod -x %{buildroot}%{_mandir}/man1/tvheadend.1 + +%post +%fillup_only %{name} +%service_add_post %{name}.service +cat << 'EOM' + ==> All configuration is maintained through the web interface: + ==> + ==> http://localhost:9981/ + ==> + ==> Default login without username/password. +EOM + +%pre +%service_add_pre %{name}.service +%{_sbindir}/useradd -u 1337 -g %{htsgroup} -m -s /bin/false %{htsuser} -c "Tvheadend TV server" &> /dev/null || : +%{_sbindir}/passwd -l %{htsuser} &> /dev/null || : + +%preun +%service_del_preun %{name}.service + +%postun +%service_del_postun %{name}.service + +%files +%defattr(-,root,root) +%{_bindir}/tvheadend +%{_datadir}/tvheadend +%{_mandir}/man1/tvheadend.1.gz +%{_unitdir}/%{name}.service +%{_localstatedir}/adm/fillup-templates/sysconfig.%{name} +%{_sbindir}/rc%{name} + +%changelog +