File vdr-plugin-epgfixer.spec of Package vdr-plugin-epgfixer
#
# spec file for package vdr-plugin-epgfixer
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018-2025 B1 Systems GmbH, Vohburg, Germany.
# Copyright (c) 2012 Marcel Witte
#
# 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 https://bugs.opensuse.org/
#
%define pluginname epgfixer
Name: vdr-plugin-%{pluginname}
# last version part is actually "number of commits since tag v0.3.1"
Version: 0.3.1.23~e88b67b
Release: 0
Summary: Epgfixer is a VDR plugin for doing extra fixing of EPG data
License: GPL-2.0-only
Group: Hardware/TV
URL: https://github.com/vdr-projects/vdr-plugin-epgfixer
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: pcre2-devel
BuildRequires: pkg-config
BuildRequires: vdr-devel
# Requires(pre) is not enough, as it does not work on updates
Requires: vdr(abi) = %{vdr_apiversion}
%description
Epgfixer is a VDR plugin for doing extra fixing of EPG data.
Features:
- Modifying EPG data using regular expressions. Correctly named back references are placed to the named EPG field.
- Character set conversions for channel using incorrect encoding.
- Both regular expressions and character set conversions can be applied to either all channels or only to selected channels.
- Editing regular expressions and character set conversions through setup menu.
- EPG bug fixes included in VDR individually selectable from setup menu.
%prep
%autosetup -p 1
%build
# use msgmerge wrapper
export PATH=%{_datadir}/vdr:$PATH
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%{vdr_find_locale}
%files -f vdrlocale.files
%defattr(-,root,root)
%doc HISTORY README
%license COPYING
%{vdr_libdir}/libvdr*
%attr(-,vdr,root) %dir %{vdr_sysconfdir}/plugins/epgfixer
%attr(-,vdr,root) %config %{vdr_sysconfdir}/plugins/epgfixer/*.conf
%changelog