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

#
# spec file for package vdr-plugin-remote
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, 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/
#


%define pluginversion 0.7.0
%define pluginname remote
%define pluginurl http://www.escape-edv.de/endriss/vdr
#
%define plugindir %{pluginname}-%{pluginversion}
%define plugintarball vdr-%{pluginname}-%{pluginversion}.tgz
#
Name:           vdr-plugin-remote
Version:        %{pluginversion}
Release:        0
Summary:        VDR %{pluginname} plugin
License:        GPL-2.0-or-later
Group:          Hardware/TV
Url:            %{pluginurl}
Source:         %{plugintarball}
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  vdr-devel
# FIXME: use proper Requires(pre/post/preun/...)
PreReq:         %vdr_prereq
# only needed for packages that used the old naming scheme
Obsoletes:      vdr-%{pluginname} < %{pluginversion}
# used to be in vdr-plugins
Provides:       vdr-plugins:%{_docdir}/vdr/plugins/%{pluginname}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Conflicts:      vdr-plugins <= 0.5

%description
%{vdrname} %{pluginname} plugin

%prep
%setup -q -n %{plugindir}

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

%install
make DESTDIR=%{buildroot} install
%find_lang vdr-%{pluginname}

%files -f vdr-%{pluginname}.lang
%defattr(-,root,root)
%doc COPYING HISTORY README FAQ
%{vdr_libdir}/*

%changelog
openSUSE Build Service is sponsored by