File vdr-plugin-live.spec of Package vdr-plugin-live

#
# spec file for package vdr-plugin-live
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014-2016 B1 Systems GmbH, Vohburg, 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/
#


Name:           vdr-plugin-live
Version:        3.4.2
Release:        0
Summary:        LIVE Plugin for the Video Disc Recorder VDR
License:        GPL-2.0+
Group:          Productivity/Multimedia/Other
Url:            https://github.com/MarkusEh/vdr-plugin-live
# old https://projects.vdr-developer.org/git/vdr-plugin-live.git/snapshot/release_2-3-1.tar.bz2
Source0:        https://github.com/MarkusEh/vdr-plugin-live/archive/refs/tags/v%{version}.tar.gz

BuildRequires:  cxxtools-devel >= 1.4.7
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  libtntnet-devel >= 1.6.1
BuildRequires:  pkgconfig(libpcre2-8)
## >= 10.38
BuildRequires:  pkgconfig
BuildRequires:  tntnet >= 1.6.1
BuildRequires:  vdr-devel >= 1.6.0
# Requires(pre) is not enough, as it does not work on updates
Requires:       vdr(abi) = %{vdr_apiversion}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains the LIVE plugin for the video disc recorder VDR.

LIVE, the LIVE Interactive VDR Environment, allows a comfortable operation of VDR and some of its plugins trough a web interface.

Unlike external programs, which communicate with VDR and its plugins through the SVDRP interface, LIVE has direct access to the internal data structures of VDR. This makes LIVE very fast.

Additionally LIVE introduces an interface which allows the direct integration of user interfaces for VDR plugins.

Currently this interface was implemented for the EPGSearch plugin. A substantial part of the LIVE web interface is based on this implementation. There exist plans to extend other plugins (like taste, burn, femon and others) with this interface too.

LIVE works even when these plugins are missing. LIVE detects the available plugins and adapts its user interface accordingly. Therefor it can happen, that certain functions appear and can be used only when the appropriate plugin is activated in VDR.

%prep
%autosetup -p1

%build
# use msgmerge wrapper
export PATH=%{_datadir}/vdr:$PATH
make %{?_smp_mflags} VERBOSE=1

%install
make install DESTDIR=%{buildroot}
install -d -m 755 %{buildroot}%{_datadir}/vdr/plugins/live
cp -r live/* %{buildroot}%{_datadir}/vdr/plugins/live

%fdupes %{buildroot}
# locale files
%vdr_find_locale

%files -f vdrlocale.files
%defattr(-,root,root)
%doc COPYING HISTORY README
%{vdr_dirs}
%{vdr_libdir}/libvdr*
%{_datadir}/vdr/plugins
%dir /etc/vdr/plugins/live
%config(noreplace) /etc/vdr/plugins/live/ffmpeg.conf

%changelog
openSUSE Build Service is sponsored by