]> git.pld-linux.org Git - packages/tvheadend.git/blobdiff - tvheadend.spec
up to 20230719 snap
[packages/tvheadend.git] / tvheadend.spec
index a6adf6f61e69936ae19d41c62b328907c8c91495..f2f66587840fb417cf522cf9c75ca624f312845e 100644 (file)
@@ -2,29 +2,33 @@
 # Conditional build:
 %bcond_without systemd         # without systemd support
 
+%define                gitref  c531383ca6654639dc112db67fd8dc893c1f5272
+%define                snap    20230719
+%define                rel     1
+
 Summary:       TV streaming server
 Name:          tvheadend
 # https://tvheadend.org/projects/tvheadend/wiki/Releases
-Version:       4.2.8
-Release:       1
+Version:       4.3.0
+Release:       0.%{snap}.%{rel}
 License:       GPL v3
 Group:         Applications/Multimedia
-Source0:       https://github.com/tvheadend/tvheadend/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: b9571efa46dd489f9fe87acdb391d591
+Source0:       https://github.com/tvheadend/tvheadend/archive/%{gitref}/%{name}-%{snap}.tar.gz
+# Source0-md5: 145d05de790f785f8f1d8f2166d4ce41
 Source1:       %{name}.service
 Source2:       %{name}.sysconfig
 Source3:       %{name}.init
-Patch0:                format-security.patch
-Patch1:                strncpy.patch
-Patch2:                gcc10.patch
-Patch3:                x32.patch
+Patch0:                x32.patch
 URL:           https://tvheadend.org/projects/tvheadend
 BuildRequires: avahi-devel
 BuildRequires: dbus-devel
 BuildRequires: ffmpeg-devel >= 3.0
 BuildRequires: gettext-tools
 BuildRequires: libdvbcsa-devel
+BuildRequires: libx264-devel
+BuildRequires: libx265-devel
 BuildRequires: openssl-devel
+BuildRequires: pcre2-8-devel
 BuildRequires: pkgconfig
 BuildRequires: python3-modules
 BuildRequires: rpmbuild(macros) >= 1.647
@@ -47,14 +51,13 @@ Tvheadend is a TV streaming server for Linux supporting DVB-S, DVB-S2,
 DVB-C, DVB-T, ATSC, IPTV, and Analog video (V4L) as input sources.
 
 %prep
-%setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+%setup -q -n %{name}-%{gitref}
 %ifarch x32
-%patch3 -p1
+%patch0 -p1
 %endif
 
+%{__sed} -i -e '1s,/usr/bin/env python3$,%{__python3},' lib/py/tvh/tv_meta_{tm,tv}db.py support/tvhmeta
+
 %build
 export CFLAGS="%{rpmcflags}"
 export LDFLAGS="%{rpmldflags}"
@@ -71,13 +74,6 @@ export LDFLAGS="%{rpmldflags}"
        --disable-dvbscan \
        --disable-ffmpeg_static \
        --disable-hdhomerun_static \
-       --disable-libfdkaac_static \
-       --disable-libmfx_static \
-       --disable-libtheora_static \
-       --disable-libvorbis_static \
-       --disable-libvpx_static \
-       --disable-libx264_static \
-       --disable-libx265_static \
        %{!?with_systemd:--disable-libsystemd_daemon}
 
 %{__make} V=1
This page took 0.036593 seconds and 4 git commands to generate.