diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dbdfac3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/*.gz +/ttxtsubs-pts-sync-v3.diff diff --git a/0001-Fix-build-with-std-c-11.patch b/0001-Fix-build-with-std-c-11.patch new file mode 100644 index 0000000..70e5e1f --- /dev/null +++ b/0001-Fix-build-with-std-c-11.patch @@ -0,0 +1,49 @@ +From ac89f6a027bf2cecafe376dd9deef7cfd80c0ac3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ville=20Skytt=C3=A4?= +Date: Sun, 7 Feb 2016 13:16:59 +0200 +Subject: [PATCH] Fix build with -std=c++11 + +--- + teletext-chars.h | 26 +++++++++++++------------- + 1 file changed, 13 insertions(+), 13 deletions(-) + +diff --git a/teletext-chars.h b/teletext-chars.h +index baa885e..bf7bff1 100644 +--- a/teletext-chars.h ++++ b/teletext-chars.h +@@ -68,19 +68,19 @@ uint8_t laG0_nat_replace_map[128] = { + */ + + uint8_t laG0_nat_opts[13][14] = { +-{0, '#', 'u', 'c', 't', 'z', 'ý', 'í', 'r', 'é', 'á', 'e', 'ú', 's'}, // 0 - Czech/Slovak +-{0, '£', '$', '@', '-', '½', '-', '|', '#', '-', '¼', '#', '¾', '÷'}, // 1 - English +-{0, '#', 'õ', 'S', 'Ä', 'Ö', 'Z', 'Ü', 'Õ', 's', 'ä', 'ö', 'z', 'ü'}, // 2 - Estonian +-{0, 'é', 'ï', 'à', 'ë', 'ê', 'ù', 'î', '#', 'è', 'â', 'ô', 'û', 'ç'}, // 3 - French +-{0, '#', '$', '§', 'Ä', 'Ö', 'Ü', '^', '_', 'º', 'ä', 'ö', 'ü', 'ß'}, // 4 - German +-{0, '£', '$', 'é', 'º', 'ç', '-', '|', '#', 'ù', 'à', 'ò', 'è', 'ì'}, // 5 - Italian +-{0, '#', '$', 'S', 'e', 'e', 'Z', 'c', 'u', 's', 'a', 'u', 'z', 'i'}, // 6 - Lettish/Lithuanian +-{0, '#', 'n', 'a', 'Z', 'S', 'L', 'c', 'ó', 'e', 'z', 's', 'l', 'z'}, // 7 - Polish +-{0, 'ç', '$', 'i', 'á', 'é', 'í', 'ó', 'ú', '¿', 'ü', 'ñ', 'è', 'à'}, // 8 - Portuguese/Spanish +-{0, '#', '¤', 'T', 'Â', 'S', 'A', 'Î', 'i', 't', 'â', 's', 'a', 'î'}, // 9 - Rumanian +-{0, '#', 'Ë', 'C', 'C', 'Z', 'D', 'S', 'ë', 'c', 'c', 'z', 'd', 's'}, // 10 - Serbian/Croation/Slovenian +-{0, '#', '¤', 'É', 'Ä', 'Ö', 'Å', 'Ü', '_', 'é', 'ä', 'ö', 'å', 'ü'}, // 11 - Swedish/Finnish/Hungarian +-{0, 'T', 'g', 'I', 'S', 'Ö', 'Ç', 'Ü', 'G', 'i', 's', 'ö', 'ç', 'ü'} // 12 - Turkish ++{0, '#', 'u', 'c', 't', 'z', 0xfd, 0xed, 'r', 0xe9, 0xe1, 'e', 0xfa, 's' }, // 0 - Czech/Slovak ++{0, 0xa3, '$', '@', '-', 0xbd, '-', '|', '#', '-', 0xbc, '#', 0xbe, 0xf7}, // 1 - English ++{0, '#', 0xf5, 'S', 0xc4, 0xd6, 'Z', 0xdc, 0xd5, 's', 0xe4, 0xf6, 'z', 0xfc}, // 2 - Estonian ++{0, 0xe9, 0xef, 0xe0, 0xeb, 0xea, 0xf9, 0xee, '#', 0xe8, 0xe2, 0xf4, 0xfb, 0xe7}, // 3 - French ++{0, '#', '$', 0xa7, 0xc4, 0xd6, 0xdc, '^', '_', 0xba, 0xe4, 0xf6, 0xfc, 0xdf}, // 4 - German ++{0, 0xa3, '$', 0xe9, 0xba, 0xe7, '-', '|', '#', 0xf9, 0xe0, 0xf2, 0xe8, 0xec}, // 5 - Italian ++{0, '#', '$', 'S', 'e', 'e', 'Z', 'c', 'u', 's', 'a', 'u', 'z', 'i' }, // 6 - Lettish/Lithuanian ++{0, '#', 'n', 'a', 'Z', 'S', 'L', 'c', 0xf3, 'e', 'z', 's', 'l', 'z' }, // 7 - Polish ++{0, 0xe7, '$', 'i', 0xe1, 0xe9, 0xed, 0xf3, 0xfa, 0xbf, 0xfc, 0xf1, 0xe8, 0xe0}, // 8 - Portuguese/Spanish ++{0, '#', 0xa4, 'T', 0xc2, 'S', 'A', 0xce, 'i', 't', 0xe2, 's', 'a', 0xee}, // 9 - Rumanian ++{0, '#', 0xcb, 'C', 'C', 'Z', 'D', 'S', 0xeb, 'c', 'c', 'z', 'd', 's' }, // 10 - Serbian/Croation/Slovenian ++{0, '#', 0xa4, 0xc9, 0xc4, 0xd6, 0xc5, 0xdc, '_', 0xe9, 0xe4, 0xf6, 0xe5, 0xfc}, // 11 - Swedish/Finnish/Hungarian ++{0, 'T', 'g', 'I', 'S', 0xd6, 0xc7, 0xdc, 'G', 'i', 's', 0xf6, 0xe7, 0xfc} // 12 - Turkish + }; + + uint16_t laG0_nat_opts16[13][14] = { +-- +2.5.0 + diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..3e858b7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +0189abfbb8bd41d1591883d4c00fdb5a vdr-ttxtsubs-0.3.0.tar.gz diff --git a/vdr-ttxtsubs.conf b/vdr-ttxtsubs.conf new file mode 100644 index 0000000..d77e106 --- /dev/null +++ b/vdr-ttxtsubs.conf @@ -0,0 +1,5 @@ +# Configuration snippet for vdr-ttxtsubs -*- sh -*- +# +# Add command line options to pass to the ttxtsubs plugin to PLUGIN_OPTIONS. + +PLUGIN_OPTIONS="" diff --git a/vdr-ttxtsubs.spec b/vdr-ttxtsubs.spec new file mode 100644 index 0000000..0ac5d88 --- /dev/null +++ b/vdr-ttxtsubs.spec @@ -0,0 +1,226 @@ +%global pname ttxtsubs +%global __provides_exclude_from ^%{vdr_plugindir}/.*\\.so.*$ + +Name: vdr-%{pname} +Version: 0.3.0 +Release: 14%{?dist} +Summary: Teletext subtitles plugin for VDR + +License: GPLv2+ +URL: https://projects.vdr-developer.org/projects/show/plg-ttxtsubs +Source0: https://projects.vdr-developer.org/attachments/download/1281/%{name}-%{version}.tar.gz +Source1: %{name}.conf +# https://projects.vdr-developer.org/git/vdr-plugin-ttxtsubs.git/commit/?id=ac89f6a027bf2cecafe376dd9deef7cfd80c0ac3 +Patch0: 0001-Fix-build-with-std-c-11.patch + +BuildRequires: vdr-devel >= 1.7.6 +Requires: vdr(abi)%{?_isa} = %{vdr_apiversion} + +%description +This VDR plugin implements displaying, recording and replaying +teletext based subtitles using the on screen display. + + +%prep +%autosetup -n %{pname}-%{version} +sed -i -e 's|ConfigDirectory("ttxtsubs")|"%{vdr_vardir}/%{pname}"|' \ + ttxtsubs.c + + +%build +make %{?_smp_mflags} + + +%install +%make_install +install -Dpm 644 %{SOURCE1} \ + $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf +install -dm 755 $RPM_BUILD_ROOT%{vdr_vardir}/%{pname} +cat /dev/null >$RPM_BUILD_ROOT%{vdr_vardir}/%{pname}/channelsettings.dat +%find_lang %{name} + + +%files -f %{name}.lang +%defattr(-,%{vdr_user},root,-) +%dir %{vdr_vardir}/%{pname}/ +%ghost %config(noreplace) %{vdr_vardir}/%{pname}/channelsettings.dat +%defattr(-,root,root,-) +%license COPYING +%doc HISTORY README TROUBLESHOOTING +%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf +%{vdr_plugindir}/libvdr-%{pname}.so.%{vdr_apiversion} + + +%changelog +* Sun Feb 7 2016 Ville Skyttä - 0.3.0-14 +- Patch to fix build with -std=c++11 + +* Fri Feb 05 2016 Fedora Release Engineering - 0.3.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 0.3.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 0.3.0-11 +- Rebuilt for GCC 5 C++11 ABI change + +* Thu Feb 19 2015 Ville Skyttä - 0.3.0-10 +- Rebuild + +* Sat Jan 31 2015 Ville Skyttä - 0.3.0-9 +- Ship COPYING as %%license + +* Mon Aug 18 2014 Fedora Release Engineering - 0.3.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 0.3.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Apr 24 2014 Ville Skyttä - 0.3.0-6 +- Rebuild + +* Sun Mar 23 2014 Ville Skyttä - 0.3.0-5 +- Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sun Mar 31 2013 Ville Skyttä - 0.3.0-3 +- Rebuild. + +* Sat Mar 16 2013 Ville Skyttä - 0.3.0-2 +- Rebuild. + +* Wed Mar 13 2013 Ville Skyttä - 0.3.0-1 +- Update to 0.3.0. + +* Sun Mar 03 2013 Ville Skyttä - 0.2.4-16.20120718git +- Rebuild. + +* Mon Feb 18 2013 Ville Skyttä - 0.2.4-15.20120718git +- Update PTS sync patch to v3. + +* Fri Feb 15 2013 Fedora Release Engineering - 0.2.4-14.20120718git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Oct 02 2012 Ville Skyttä - 0.2.4-13.20120718git +- Rebuild. + +* Thu Sep 13 2012 Ville Skyttä - 0.2.4-12.20120718git +- Rebuild. + +* Thu Jul 19 2012 Ville Skyttä - 0.2.4-11.20120718git +- Rebuild. + +* Wed Jul 18 2012 Ville Skyttä - 0.2.4-10.20120718git +- Update to current upstream git + PTS sync patch from upstream BTS. + +* Fri Jun 29 2012 Ville Skyttä - 0.2.4-10 +- Rebuild. + +* Tue Mar 27 2012 Ville Skyttä - 0.2.4-9 +- Rebuild. + +* Sun Mar 11 2012 Ville Skyttä - 0.2.4-8 +- Adapt to VDR 1.7.26. + +* Sun Mar 11 2012 Ville Skyttä - 0.2.4-7 +- Rebuild. + +* Tue Mar 06 2012 Ville Skyttä - 0.2.4-6 +- Rebuild. + +* Mon Feb 20 2012 Ville Skyttä - 0.2.4-5 +- Rebuild. + +* Sun Jan 15 2012 Ville Skyttä - 0.2.4-4 +- Rebuild. + +* Sat Jan 14 2012 Fedora Release Engineering - 0.2.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sun Dec 4 2011 Ville Skyttä - 0.2.4-2 +- Rebuild. + +* Sun Nov 6 2011 Ville Skyttä - 0.2.4-1 +- Update to 0.2.4. +- Clean up specfile constructs no longer needed with Fedora or EL6+. + +* Mon Feb 07 2011 Fedora Release Engineering - 0.0.9-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Sep 3 2009 Ville Skyttä - 0.0.9-4 +- Filter out autoprovided libvdr-*.so.* (if %%filter_setup is available). + +* Mon Aug 10 2009 Ville Skyttä - 0.0.9-3 +- Use ISA qualified dependency to vdr(abi). +- Use %%global instead of %%define. + +* Sun Jul 26 2009 Fedora Release Engineering - 0.0.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Apr 7 2009 Ville Skyttä - 0.0.9-1 +- 0.0.9. + +* Wed Feb 25 2009 Fedora Release Engineering - 0.0.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Jan 6 2009 Ville Skyttä - 0.0.8-1 +- 0.0.8. +- License: GPLv2+ (already since 0.0.6). + +* Fri Dec 19 2008 Ville Skyttä - 0.0.7-1 +- 0.0.7. + +* Mon Dec 15 2008 Ville Skyttä - 0.0.6-1 +- 0.0.6 (new community upstream), patches applied upstream. + +* Mon Nov 24 2008 Ville Skyttä - 0.0.5-6 +- Rebuild. + +* Mon Apr 7 2008 Ville Skyttä - 0.0.5-5 +- Rebuild for VDR 1.6.0. + +* Sat Feb 16 2008 Ville Skyttä - 0.0.5-4 +- Rebuild. + +* Wed Jan 23 2008 Ville Skyttä - 0.0.5-3 +- Update raastinrauta patch to 2008-01-22. + +* Mon Oct 15 2007 Ville Skyttä - 0.0.5-2 +- Rebuild. + +* Sun Sep 30 2007 Ville Skyttä - 0.0.5-1 +- License: GPL+ +- Raastinrauta patch re-re-re-re-re-released. + +* Tue Aug 28 2007 Ville Skyttä - 0.0.5-0.10 +- Raastinrauta patch re-re-re-released. + +* Fri Aug 24 2007 Ville Skyttä - 0.0.5-0.9 +- Raastinrauta patch re-re-released. + +* Thu Aug 2 2007 Ville Skyttä - 0.0.5-0.8 +- Raastinrauta patch re-released. + +* Wed Jul 25 2007 Ville Skyttä - 0.0.5-0.7 +- Update Rofa's patch to raastinrauta edition. + +* Tue Apr 10 2007 Ville Skyttä - 0.0.5-0.6 +- Update Rofa's patch to kermanekka edition, changes from 0.0.5-0.5 applied. + +* Mon Apr 9 2007 Ville Skyttä - 0.0.5-0.5 +- Fix plugin init/shutdown with newish VDR; avoids crashes at shutdown. +- Clean up logging. + +* Sat Jan 20 2007 Ville Skyttä - 0.0.5-0.4 +- Update Rofa's patch to pippurimylly edition. + +* Sun Nov 12 2006 Ville Skyttä - 0.0.5-0.3 +- Move channel settings to /var/lib/vdr. + +* Sat Nov 11 2006 Ville Skyttä - 0.0.5-0.2 +- Own /etc/vdr/plugins/ttxtsubs. + +* Sat Nov 11 2006 Ville Skyttä - 0.0.5-0.1 +- First build.