[nvidia-settings] Update to 415.18 release
by Leigh Scott
commit fd408314905030d9d1b908c711b1a03793f44914
Author: Leigh Scott <leigh123linux(a)googlemail.com>
Date: Wed Nov 21 09:27:49 2018 +0000
Update to 415.18 release
nvidia-settings.spec | 5 ++++-
sources | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/nvidia-settings.spec b/nvidia-settings.spec
index 6daec14..96405f8 100644
--- a/nvidia-settings.spec
+++ b/nvidia-settings.spec
@@ -1,6 +1,6 @@
Name: nvidia-settings
Epoch: 3
-Version: 410.78
+Version: 415.18
Release: 1%{?dist}
Summary: Configure the NVIDIA graphics driver
@@ -122,6 +122,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.ap
%changelog
+* Wed Nov 21 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3:415.18-1
+- Update to 415.18 release
+
* Fri Nov 16 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3:410.78-1
- Update to 410.78 release
diff --git a/sources b/sources
index 8267203..044e756 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-45be7ddf4e1a5a5c8655dac961331374 nvidia-settings-410.78.tar.bz2
+c6cf694dbf733072d9ec86acf0212429 nvidia-settings-415.18.tar.bz2
6 years
[nvidia-persistenced] Update to 415.18 release
by Leigh Scott
commit 5187186733d62913bb6c1c2af24113f6b6060320
Author: Leigh Scott <leigh123linux(a)googlemail.com>
Date: Wed Nov 21 09:26:12 2018 +0000
Update to 415.18 release
.gitignore | 1 +
nvidia-persistenced.spec | 5 ++++-
sources | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4b3a9a5..f25159d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@ nvidia-persistenced-*.tar.gz
/nvidia-persistenced-410.66.tar.bz2
/nvidia-persistenced-410.73.tar.bz2
/nvidia-persistenced-410.78.tar.bz2
+/nvidia-persistenced-415.18.tar.bz2
diff --git a/nvidia-persistenced.spec b/nvidia-persistenced.spec
index 96112b4..7b0d7ef 100644
--- a/nvidia-persistenced.spec
+++ b/nvidia-persistenced.spec
@@ -2,7 +2,7 @@
Name: nvidia-persistenced
Epoch: 3
-Version: 410.78
+Version: 415.18
Release: 1%{?dist}
Summary: Daemon for maintaining persistent driver state
@@ -74,6 +74,9 @@ chmod -x %{buildroot}%{_mandir}/man1/%{name}.1.*
%changelog
+* Wed Nov 21 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3:415.18-1
+- Update to 415.18 release
+
* Fri Nov 16 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3:410.78-1
- Update to 410.78 release
diff --git a/sources b/sources
index de7a481..fdd95d5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-49fe18bc49fce67002e3329b672fa59f nvidia-persistenced-410.78.tar.bz2
+d26514c66394183f67345df3811b40e0 nvidia-persistenced-415.18.tar.bz2
6 years
[nvidia-modprobe] Update to 415.18 release
by Leigh Scott
commit 7ff8d9faf4c9b262729a447f2773f0bd3dcf9710
Author: Leigh Scott <leigh123linux(a)googlemail.com>
Date: Wed Nov 21 09:24:15 2018 +0000
Update to 415.18 release
.gitignore | 1 +
nvidia-modprobe.spec | 5 ++++-
sources | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 38f9937..41ee5d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@ nvidia-modprobe-*.tar.gz
/nvidia-modprobe-410.66.tar.bz2
/nvidia-modprobe-410.73.tar.bz2
/nvidia-modprobe-410.78.tar.bz2
+/nvidia-modprobe-415.18.tar.bz2
diff --git a/nvidia-modprobe.spec b/nvidia-modprobe.spec
index 5f90a60..1401dcb 100644
--- a/nvidia-modprobe.spec
+++ b/nvidia-modprobe.spec
@@ -1,6 +1,6 @@
Name: nvidia-modprobe
Epoch: 3
-Version: 410.78
+Version: 415.18
Release: 1%{?dist}
Summary: Load the NVIDIA kernel module and create NVIDIA character device files
@@ -42,6 +42,9 @@ chmod -x %{buildroot}%{_mandir}/man1/nvidia-modprobe.1.*
%changelog
+* Wed Nov 21 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3:415.18-1
+- Update to 415.18 release
+
* Fri Nov 16 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3:410.78-1
- Update to 410.78 release
diff --git a/sources b/sources
index d3f34f7..7253ced 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2586f14244bcaa44fcd9b8f6d251f0ab nvidia-modprobe-410.78.tar.bz2
+85a10140137982022197910d3651b7bb nvidia-modprobe-415.18.tar.bz2
6 years
[tvheadend/f28] - Use system versions of rcssmin and rjsmin during build - Install Python bindings
by Mohamed ElMorabity
commit fbc46635afc68485334deaf40bb1df899b211d69
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Wed Nov 21 09:56:56 2018 +0100
- Use system versions of rcssmin and rjsmin during build
- Install Python bindings
tvheadend-4.2.7-python3.patch | 91 +++++++++++++++++++++++++
tvheadend.spec | 154 +++++++++++++++++++-----------------------
2 files changed, 160 insertions(+), 85 deletions(-)
---
diff --git a/tvheadend-4.2.7-python3.patch b/tvheadend-4.2.7-python3.patch
new file mode 100644
index 0000000..752b17b
--- /dev/null
+++ b/tvheadend-4.2.7-python3.patch
@@ -0,0 +1,91 @@
+diff -up ./lib/py/tvh/tsreader.py.orig ./lib/py/tvh/tsreader.py
+--- ./lib/py/tvh/tsreader.py.orig 2018-10-08 14:37:05.000000000 +0200
++++ ./lib/py/tvh/tsreader.py 2018-10-15 11:53:53.766850060 +0200
+@@ -31,7 +31,7 @@ def encode_utf8(c):
+
+ def conv_8859(tnum, data):
+ r = u''
+- print 'TBL %d' % tnum
++ print('TBL %d' % tnum)
+ tbl = conv_8859_table[tnum]
+ for c in data:
+ if ord(c) <= 0x7f:
+@@ -46,8 +46,8 @@ def conv_8859(tnum, data):
+
+
+ def dvb_convert_string(data, conv):
+- print 'convert(%d)' % conv
+- print repr(data)
++ print('convert(%d)' % conv)
++ print(repr(data))
+ if not conv:
+ return data
+ return conv_8859(conv, data)
+@@ -83,8 +83,8 @@ class TsSection(object):
+ # print self.tid, self.len, len(data)
+
+ def process(self):
+- print 'TS Section:'
+- print self.tid, self.len, len(self.data)
++ print('TS Section:')
++ print(self.tid, self.len, len(self.data))
+ # print str2hex(self.data, 16)
+ # print self.data
+
+@@ -112,7 +112,7 @@ class TsSection(object):
+ if l + 1 > dlen:
+ return (None, -1)
+ c = ord(data[1])
+- print c
++ print(c)
+ conv = None
+ if c == 0:
+ return (None, -1)
+@@ -162,14 +162,14 @@ class TsSection(object):
+ eid = (hdr[0] << 8) + hdr[1]
+ start = dvb_convert_date(hdr[2:])
+
+- print 'process event (%d):' % dllen
+- print ' EID : %d' % eid
+- print ' START : %d' % start
++ print('process event (%d):' % dllen)
++ print(' EID : %d' % eid)
++ print(' START : %d' % start)
+
+ while dllen > 2:
+ dtag = ord(data[0])
+ dlen = ord(data[1])
+- print 'dtag = 0x%02x, dlen = %d' % (dtag, dlen)
++ print('dtag = 0x%02x, dlen = %d' % (dtag, dlen))
+
+ dllen = dllen - 2
+ data = data[2:]
+@@ -178,8 +178,8 @@ class TsSection(object):
+
+ if dtag == 0x4d:
+ (title, summary) = self.short_event(data, dlen)
+- print ' TITLE : %s' % title
+- print ' SUMMARY : %s' % summary
++ print(' TITLE : %s' % title)
++ print(' SUMMARY : %s' % summary)
+
+ dllen = dllen - dlen
+ data = data[dlen:]
+@@ -216,7 +216,7 @@ if __name__ == '__main__':
+ # Complete?
+ if cur:
+ if len(cur.data) >= cur.len:
+- print 'Process Section:'
++ print('Process Section:')
+ # try:
+ cur.process()
+ # except: pass
+@@ -224,7 +224,7 @@ if __name__ == '__main__':
+ print
+ sys.exit(0)
+ else:
+- print 'waiting for %d bytes' % (cur.len - len(cur.data))
++ print('waiting for %d bytes' % (cur.len - len(cur.data)))
+
+ # Next
+ if nxt:
diff --git a/tvheadend.spec b/tvheadend.spec
index a3d87ea..326f644 100644
--- a/tvheadend.spec
+++ b/tvheadend.spec
@@ -3,7 +3,7 @@
Name: tvheadend
Version: 4.2.7
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: TV streaming server and digital video recorder
License: GPLv3+
@@ -22,6 +22,8 @@ Patch3: %{name}-4.2.2-dtv_scan_tables.patch
# Enforcing system crypto policies, see
# https://fedoraproject.org/wiki/Packaging:CryptoPolicies
Patch4: %{name}-4.2.1-crypto_policies.patch
+# Python 3 fixes for Python bindings
+Patch5: %{name}-4.2.7-python3.patch
BuildRequires: bzip2
BuildRequires: gcc
@@ -42,7 +44,12 @@ BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(liburiparser)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
+%if 0%{?fedora} < 30
+BuildRequires: python2-devel
+%endif
BuildRequires: python3-devel
+BuildRequires: python3-rcssmin
+BuildRequires: python3-rjsmin
BuildRequires: systemd
Requires: bzip2
Requires: dtv-scan-tables
@@ -65,17 +72,40 @@ version, the pipe:// source (in IPTV network) might be used to obtain the
MPEG-TS stream generated by ffmpeg/libav from a V4L device.
+%if 0%{?fedora} < 30
+%package -n python2-tvh
+Summary: HTSP client for Python
+BuildArch: noarch
+
+%description -n python2-tvh
+%{summary}.
+%endif
+
+
+%package -n python3-tvh
+Summary: HTSP client for Python
+BuildArch: noarch
+
+%description -n python3-tvh
+%{summary}.
+
+
%prep
-%autosetup -p 0
+%autosetup -p0
+
+# Delete bundled system headers and tools
+rm -r vendor/{dvb-api,include,rcssmin-*,rjsmin-*}/
-# Delete bundled system headers
-rm -r vendor/{dvb-api,include}/
+# Remove shebang
+for i in lib/py/tvh/*.py; do
+ sed '1{\@^#!/usr/bin/env python@d}' $i >$i.new && \
+ touch -r $i $i.new && \
+ mv $i.new $i
+done
%build
-# Use touch to be sure that configure, after being patched, is still older than
-# generated .config.mk file (otherwise the build fails)
-# touch -r Makefile configure
+echo "%{version}-%{release}" >rpm/version
# Note: --disable-lib* correspond to options to build bundled FFmpeg
%configure \
--disable-dvbscan \
@@ -95,8 +125,12 @@ rm -r vendor/{dvb-api,include}/
--disable-libx265_static \
--enable-dvbcsa \
--enable-hdhomerun_client \
- --enable-libsystemd_daemon
-%make_build V=1 PYTHON=%{__python3}
+ --enable-libsystemd_daemon \
+ --python=%{__python3}
+%make_build \
+ V=1 \
+ RUN_CSS="%{__python3} %{python3_sitearch}/rcssmin.py" \
+ RUN_JS="%{__python3} %{python3_sitearch}/rjsmin.py"
%install
@@ -107,20 +141,21 @@ install -Dpm 0644 rpm/%{name}.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/
install -dm 0755 $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}/
+# Install Python bindings
+%if 0%{?fedora} < 30
+install -dm 0755 $RPM_BUILD_ROOT%{python2_sitelib}/
+cp -a lib/py/tvh/ $RPM_BUILD_ROOT%{python2_sitelib}/
+%endif
+install -dm 0755 $RPM_BUILD_ROOT%{python3_sitelib}/
+cp -a lib/py/tvh/ $RPM_BUILD_ROOT%{python3_sitelib}/
+
# Fix permissions
chmod 0644 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
-# Drop bundled Ext JS resources not required by Tvheadend UI
-pushd $RPM_BUILD_ROOT%{_datadir}/%{name}/src/webui/static/extjs/
-mv examples/ux/images/ examples_ux_images
-rm -r *.js adapter/ examples/ resources/images/{vista,yourtheme}/
-install -dm 0755 examples/ux/
-mv examples_ux_images/ examples/ux/images
-popd
-
%pre
-getent passwd %{tvheadend_user} >/dev/null || useradd -r -g %{tvheadend_group} -d %{_sharedstatedir}/%{name}/ -s /sbin/nologin -c "%{name} daemon account" %{name}
+getent passwd %{tvheadend_user} >/dev/null || \
+ useradd -r -g %{tvheadend_group} -d %{_sharedstatedir}/%{name}/ -s /sbin/nologin -c "%{name} daemon account" %{name}
exit 0
@@ -147,75 +182,24 @@ exit 0
%{_mandir}/man1/*.1.*
-%changelog
-* Tue Oct 09 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.7-1
-- Update to 4.2.7
-- Remove patches merges upstream
-- Use Python 3 for build
-
-* Tue Mar 27 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.6-1
-- Update to 4.2.6
-
-* Sat Mar 17 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.5-7
-- Add explicite Requires on tar and bzip2 (required by Tvheadend for
- configuration backups)
-
-* Thu Mar 08 2018 RPM Fusion Release Engineering <leigh123linux(a)googlemail.com> - 4.2.5-6
-- Rebuilt for new ffmpeg snapshot
-
-* Thu Mar 08 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.5-5
-- Fix build with GCC >= 8
-- Call python2 instead of python during build
-
-* Thu Mar 01 2018 RPM Fusion Release Engineering <leigh123linux(a)googlemail.com> - 4.2.5-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Tue Jan 23 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.5-3
-- Fix build with FFmpeg 3.5
-
-* Thu Jan 18 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 4.2.5-2
-- Rebuilt for ffmpeg-3.5 git
-
-* Sun Jan 07 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.5-1
-- Update to 4.2.5
-
-* Thu Oct 19 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.4-1
-- Update to 4.2.4
-
-* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 4.2.3-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Mon Jul 03 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.3-1
-- Update to 4.2.3
-
-* Thu Jun 01 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.2-2
-- Fix system DTV scan tables path
-
-* Tue May 23 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.2-1
-- Update to 4.2.2
-- Drop patch for GCC7 (merged upstream)
-
-* Sun Apr 30 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 4.2.1-2
-- Rebuild for ffmpeg update
-
-* Sun Apr 23 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.1-1
-- Update to 4.2.1
-
-* Wed Apr 12 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.0.10-1
-- Update to 4.0.10
+%if 0%{?fedora} < 30
+%files -n python2-tvh
+%license LICENSE.md licenses/gpl-3.0.txt
+%{python2_sitelib}/tvh/
+%endif
-* Sat Mar 25 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.0.9-5
-- Fix build with GCC 7
-- Enable DVBCSA support
-* Mon Mar 20 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 4.0.9-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+%files -n python3-tvh
+%license LICENSE.md licenses/gpl-3.0.txt
+%{python3_sitelib}/tvh/
-* Tue Aug 09 2016 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.0.9-3
-- Merge all FFmpeg patches into a single one
-* Tue Aug 09 2016 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.0.9-2
-- Fix build with FFmpeg 3.1
+%changelog
+* Sat Nov 17 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.7-2
+- Use system versions of rcssmin and rjsmin during build
+- Install Python bindings
-* Thu Jul 28 2016 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.0.9-1
-- Initial RPM release
+* Tue Oct 09 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.7-1
+- Update to 4.2.7
+- Remove patches merges upstream
+- Use Python 3 for build
6 years
[nvidia-kmod] Update to 415.18 release
by Leigh Scott
commit f401afcca6079bd9fee9f68a06ff3bd341994c2e
Author: Leigh Scott <leigh123linux(a)googlemail.com>
Date: Wed Nov 21 09:22:14 2018 +0000
Update to 415.18 release
nvidia-kmod.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/nvidia-kmod.spec b/nvidia-kmod.spec
index c66be37..c1eb1bd 100644
--- a/nvidia-kmod.spec
+++ b/nvidia-kmod.spec
@@ -8,7 +8,7 @@
Name: nvidia-kmod
Epoch: 3
-Version: 410.78
+Version: 415.18
# Taken over by kmodtool
Release: 1%{?dist}
Summary: NVIDIA display driver kernel module
@@ -66,6 +66,9 @@ done
%changelog
+* Wed Nov 21 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3:415.18-1
+- Update to 415.18 release
+
* Fri Nov 16 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3:410.78-1
- Update to 410.78 release
6 years
[buildsys-build-rpmfusion/el8] rebuild for kernel 4.18.0-32.el8
by Nicolas Chauvet
commit 75cc54c4f7e5c6ccbdaa1576ddd899470e808d7b
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Nov 21 10:20:56 2018 +0100
rebuild for kernel 4.18.0-32.el8
buildsys-build-rpmfusion-kerneldevpkgs-current | 8 ++++----
buildsys-build-rpmfusion.spec | 8 +++++++-
2 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/buildsys-build-rpmfusion-kerneldevpkgs-current b/buildsys-build-rpmfusion-kerneldevpkgs-current
index aff4a83..b7174b4 100644
--- a/buildsys-build-rpmfusion-kerneldevpkgs-current
+++ b/buildsys-build-rpmfusion-kerneldevpkgs-current
@@ -1,4 +1,4 @@
-4.16.2-300.fc28
-4.16.2-300.fc28smp
-4.16.2-300.fc28PAE
-4.16.2-300.fc28lpae
+4.18.0-32.el8
+4.18.0-32.el8smp
+4.18.0-32.el8PAE
+4.18.0-32.el8lpae
diff --git a/buildsys-build-rpmfusion.spec b/buildsys-build-rpmfusion.spec
index 61a8b8e..fa0b700 100644
--- a/buildsys-build-rpmfusion.spec
+++ b/buildsys-build-rpmfusion.spec
@@ -3,7 +3,7 @@
Name: buildsys-build-%{repo}
Epoch: 10
Version: 30
-Release: 0.1
+Release: 0.3
Summary: Tools and files used by the %{repo} buildsys
License: MIT
@@ -77,6 +77,12 @@ sed -i 's|^default_prefix=.*|default_prefix=%{_datadir}/%{name}/|' \
%changelog
+* Wed Nov 21 2018 Nicolas Chauvet <kwizart(a)gmail.com> - 10:30-0.3
+- rebuild for kernel 4.18.0-32.el8
+
+* Wed Nov 21 2018 Nicolas Chauvet <kwizart(a)gmail.com> - 10:30-0.2
+- Switch for EL8
+
* Thu Aug 23 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 10:30-0.1
- Bump for 30
6 years
[xorg-x11-drv-nvidia] Update to 415.18 release
by Leigh Scott
commit ad4eb7965fbf86ef93c46b7e2e8e2fc1e88725c4
Author: Leigh Scott <leigh123linux(a)googlemail.com>
Date: Wed Nov 21 09:13:25 2018 +0000
Update to 415.18 release
sources | 2 +-
xorg-x11-drv-nvidia.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/sources b/sources
index 42b1d52..d0b562e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5486d21e82fe16b88f43363981dc09d4 NVIDIA-Linux-x86_64-410.78.run
+0928fa28b4805b95f41e6b74a463823c NVIDIA-Linux-x86_64-415.18.run
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index 7e1192e..f0bf32b 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -20,7 +20,7 @@
Name: xorg-x11-drv-nvidia
Epoch: 3
-Version: 410.78
+Version: 415.18
Release: 1%{?dist}
Summary: NVIDIA's proprietary display driver for NVIDIA graphic cards
@@ -214,7 +214,7 @@ cp -a \
%{buildroot}%{_libdir}/
cp -af \
- tls/libnvidia-tls.so* \
+ libnvidia-tls.so.%{version} \
libnvidia-compiler.so.%{version} \
libnvidia-opencl.so.%{version} \
%{buildroot}%{_libdir}/
@@ -480,6 +480,9 @@ fi ||:
%{_libdir}/libnvidia-encode.so
%changelog
+* Wed Nov 21 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3:415.18-1
+- Update to 415.18 release
+
* Fri Nov 16 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3:410.78-1
- Update to 410.78 release
6 years
[tvheadend/f29] - Use system versions of rcssmin and rjsmin during build - Install Python bindings
by Mohamed ElMorabity
commit f9563ecbda4fdf21a771e1ddf60d66596349cf20
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Wed Nov 21 09:54:50 2018 +0100
- Use system versions of rcssmin and rjsmin during build
- Install Python bindings
tvheadend-4.2.7-python3.patch | 91 ++++++++++++++++++++++++
tvheadend.spec | 160 ++++++++++++++++++------------------------
2 files changed, 160 insertions(+), 91 deletions(-)
---
diff --git a/tvheadend-4.2.7-python3.patch b/tvheadend-4.2.7-python3.patch
new file mode 100644
index 0000000..752b17b
--- /dev/null
+++ b/tvheadend-4.2.7-python3.patch
@@ -0,0 +1,91 @@
+diff -up ./lib/py/tvh/tsreader.py.orig ./lib/py/tvh/tsreader.py
+--- ./lib/py/tvh/tsreader.py.orig 2018-10-08 14:37:05.000000000 +0200
++++ ./lib/py/tvh/tsreader.py 2018-10-15 11:53:53.766850060 +0200
+@@ -31,7 +31,7 @@ def encode_utf8(c):
+
+ def conv_8859(tnum, data):
+ r = u''
+- print 'TBL %d' % tnum
++ print('TBL %d' % tnum)
+ tbl = conv_8859_table[tnum]
+ for c in data:
+ if ord(c) <= 0x7f:
+@@ -46,8 +46,8 @@ def conv_8859(tnum, data):
+
+
+ def dvb_convert_string(data, conv):
+- print 'convert(%d)' % conv
+- print repr(data)
++ print('convert(%d)' % conv)
++ print(repr(data))
+ if not conv:
+ return data
+ return conv_8859(conv, data)
+@@ -83,8 +83,8 @@ class TsSection(object):
+ # print self.tid, self.len, len(data)
+
+ def process(self):
+- print 'TS Section:'
+- print self.tid, self.len, len(self.data)
++ print('TS Section:')
++ print(self.tid, self.len, len(self.data))
+ # print str2hex(self.data, 16)
+ # print self.data
+
+@@ -112,7 +112,7 @@ class TsSection(object):
+ if l + 1 > dlen:
+ return (None, -1)
+ c = ord(data[1])
+- print c
++ print(c)
+ conv = None
+ if c == 0:
+ return (None, -1)
+@@ -162,14 +162,14 @@ class TsSection(object):
+ eid = (hdr[0] << 8) + hdr[1]
+ start = dvb_convert_date(hdr[2:])
+
+- print 'process event (%d):' % dllen
+- print ' EID : %d' % eid
+- print ' START : %d' % start
++ print('process event (%d):' % dllen)
++ print(' EID : %d' % eid)
++ print(' START : %d' % start)
+
+ while dllen > 2:
+ dtag = ord(data[0])
+ dlen = ord(data[1])
+- print 'dtag = 0x%02x, dlen = %d' % (dtag, dlen)
++ print('dtag = 0x%02x, dlen = %d' % (dtag, dlen))
+
+ dllen = dllen - 2
+ data = data[2:]
+@@ -178,8 +178,8 @@ class TsSection(object):
+
+ if dtag == 0x4d:
+ (title, summary) = self.short_event(data, dlen)
+- print ' TITLE : %s' % title
+- print ' SUMMARY : %s' % summary
++ print(' TITLE : %s' % title)
++ print(' SUMMARY : %s' % summary)
+
+ dllen = dllen - dlen
+ data = data[dlen:]
+@@ -216,7 +216,7 @@ if __name__ == '__main__':
+ # Complete?
+ if cur:
+ if len(cur.data) >= cur.len:
+- print 'Process Section:'
++ print('Process Section:')
+ # try:
+ cur.process()
+ # except: pass
+@@ -224,7 +224,7 @@ if __name__ == '__main__':
+ print
+ sys.exit(0)
+ else:
+- print 'waiting for %d bytes' % (cur.len - len(cur.data))
++ print('waiting for %d bytes' % (cur.len - len(cur.data)))
+
+ # Next
+ if nxt:
diff --git a/tvheadend.spec b/tvheadend.spec
index 7e4057b..326f644 100644
--- a/tvheadend.spec
+++ b/tvheadend.spec
@@ -3,7 +3,7 @@
Name: tvheadend
Version: 4.2.7
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: TV streaming server and digital video recorder
License: GPLv3+
@@ -22,6 +22,8 @@ Patch3: %{name}-4.2.2-dtv_scan_tables.patch
# Enforcing system crypto policies, see
# https://fedoraproject.org/wiki/Packaging:CryptoPolicies
Patch4: %{name}-4.2.1-crypto_policies.patch
+# Python 3 fixes for Python bindings
+Patch5: %{name}-4.2.7-python3.patch
BuildRequires: bzip2
BuildRequires: gcc
@@ -42,7 +44,12 @@ BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(liburiparser)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
+%if 0%{?fedora} < 30
+BuildRequires: python2-devel
+%endif
BuildRequires: python3-devel
+BuildRequires: python3-rcssmin
+BuildRequires: python3-rjsmin
BuildRequires: systemd
Requires: bzip2
Requires: dtv-scan-tables
@@ -65,17 +72,40 @@ version, the pipe:// source (in IPTV network) might be used to obtain the
MPEG-TS stream generated by ffmpeg/libav from a V4L device.
+%if 0%{?fedora} < 30
+%package -n python2-tvh
+Summary: HTSP client for Python
+BuildArch: noarch
+
+%description -n python2-tvh
+%{summary}.
+%endif
+
+
+%package -n python3-tvh
+Summary: HTSP client for Python
+BuildArch: noarch
+
+%description -n python3-tvh
+%{summary}.
+
+
%prep
-%autosetup -p 0
+%autosetup -p0
+
+# Delete bundled system headers and tools
+rm -r vendor/{dvb-api,include,rcssmin-*,rjsmin-*}/
-# Delete bundled system headers
-rm -r vendor/{dvb-api,include}/
+# Remove shebang
+for i in lib/py/tvh/*.py; do
+ sed '1{\@^#!/usr/bin/env python@d}' $i >$i.new && \
+ touch -r $i $i.new && \
+ mv $i.new $i
+done
%build
-# Use touch to be sure that configure, after being patched, is still older than
-# generated .config.mk file (otherwise the build fails)
-# touch -r Makefile configure
+echo "%{version}-%{release}" >rpm/version
# Note: --disable-lib* correspond to options to build bundled FFmpeg
%configure \
--disable-dvbscan \
@@ -95,8 +125,12 @@ rm -r vendor/{dvb-api,include}/
--disable-libx265_static \
--enable-dvbcsa \
--enable-hdhomerun_client \
- --enable-libsystemd_daemon
-%make_build V=1 PYTHON=%{__python3}
+ --enable-libsystemd_daemon \
+ --python=%{__python3}
+%make_build \
+ V=1 \
+ RUN_CSS="%{__python3} %{python3_sitearch}/rcssmin.py" \
+ RUN_JS="%{__python3} %{python3_sitearch}/rjsmin.py"
%install
@@ -107,20 +141,21 @@ install -Dpm 0644 rpm/%{name}.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/
install -dm 0755 $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}/
+# Install Python bindings
+%if 0%{?fedora} < 30
+install -dm 0755 $RPM_BUILD_ROOT%{python2_sitelib}/
+cp -a lib/py/tvh/ $RPM_BUILD_ROOT%{python2_sitelib}/
+%endif
+install -dm 0755 $RPM_BUILD_ROOT%{python3_sitelib}/
+cp -a lib/py/tvh/ $RPM_BUILD_ROOT%{python3_sitelib}/
+
# Fix permissions
chmod 0644 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
-# Drop bundled Ext JS resources not required by Tvheadend UI
-pushd $RPM_BUILD_ROOT%{_datadir}/%{name}/src/webui/static/extjs/
-mv examples/ux/images/ examples_ux_images
-rm -r *.js adapter/ examples/ resources/images/{vista,yourtheme}/
-install -dm 0755 examples/ux/
-mv examples_ux_images/ examples/ux/images
-popd
-
%pre
-getent passwd %{tvheadend_user} >/dev/null || useradd -r -g %{tvheadend_group} -d %{_sharedstatedir}/%{name}/ -s /sbin/nologin -c "%{name} daemon account" %{name}
+getent passwd %{tvheadend_user} >/dev/null || \
+ useradd -r -g %{tvheadend_group} -d %{_sharedstatedir}/%{name}/ -s /sbin/nologin -c "%{name} daemon account" %{name}
exit 0
@@ -147,81 +182,24 @@ exit 0
%{_mandir}/man1/*.1.*
-%changelog
-* Tue Oct 09 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.7-1
-- Update to 4.2.7
-- Remove patches merges upstream
-- Use Python 3 for build
-
-* Sun Aug 19 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 4.2.6-3
-- Rebuilt for Fedora 29 Mass Rebuild binutils issue
-
-* Fri Jul 27 2018 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> - 4.2.6-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Tue Mar 27 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.6-1
-- Update to 4.2.6
-
-* Sat Mar 17 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.5-7
-- Add explicite Requires on tar and bzip2 (required by Tvheadend for
- configuration backups)
-
-* Thu Mar 08 2018 RPM Fusion Release Engineering <leigh123linux(a)googlemail.com> - 4.2.5-6
-- Rebuilt for new ffmpeg snapshot
-
-* Thu Mar 08 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.5-5
-- Fix build with GCC >= 8
-- Call python2 instead of python during build
-
-* Thu Mar 01 2018 RPM Fusion Release Engineering <leigh123linux(a)googlemail.com> - 4.2.5-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Tue Jan 23 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.5-3
-- Fix build with FFmpeg 3.5
-
-* Thu Jan 18 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 4.2.5-2
-- Rebuilt for ffmpeg-3.5 git
-
-* Sun Jan 07 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.5-1
-- Update to 4.2.5
-
-* Thu Oct 19 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.4-1
-- Update to 4.2.4
-
-* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 4.2.3-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Mon Jul 03 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.3-1
-- Update to 4.2.3
-
-* Thu Jun 01 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.2-2
-- Fix system DTV scan tables path
-
-* Tue May 23 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.2-1
-- Update to 4.2.2
-- Drop patch for GCC7 (merged upstream)
-
-* Sun Apr 30 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 4.2.1-2
-- Rebuild for ffmpeg update
-
-* Sun Apr 23 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.1-1
-- Update to 4.2.1
-
-* Wed Apr 12 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.0.10-1
-- Update to 4.0.10
+%if 0%{?fedora} < 30
+%files -n python2-tvh
+%license LICENSE.md licenses/gpl-3.0.txt
+%{python2_sitelib}/tvh/
+%endif
-* Sat Mar 25 2017 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.0.9-5
-- Fix build with GCC 7
-- Enable DVBCSA support
-* Mon Mar 20 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 4.0.9-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+%files -n python3-tvh
+%license LICENSE.md licenses/gpl-3.0.txt
+%{python3_sitelib}/tvh/
-* Tue Aug 09 2016 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.0.9-3
-- Merge all FFmpeg patches into a single one
-* Tue Aug 09 2016 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.0.9-2
-- Fix build with FFmpeg 3.1
+%changelog
+* Sat Nov 17 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.7-2
+- Use system versions of rcssmin and rjsmin during build
+- Install Python bindings
-* Thu Jul 28 2016 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.0.9-1
-- Initial RPM release
+* Tue Oct 09 2018 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 4.2.7-1
+- Update to 4.2.7
+- Remove patches merges upstream
+- Use Python 3 for build
6 years