SHA256
1
0
forked from pool/tvheadend

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
This commit is contained in:
Marcus Meissner 2015-12-07 07:40:04 +00:00 committed by Git OBS Bridge
commit 001124b902
6 changed files with 162 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
tvheadend-4.0.7.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5c8dce6b680eef6869e4b367798af7d058b9787800b17603977911fae626126e
size 15826790

View File

@ -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"

6
tvheadend.changes Normal file
View File

@ -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

105
tvheadend.spec Normal file
View File

@ -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