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

#
# spec file for package vdr-plugin-osdserver
#
# Copyright (c) 2014 SUSE LINUX Products 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 pluginname osdserver
Name:           vdr-plugin-%{pluginname}
Version:        0.1.3
Release:        0
Summary:        Provides VDR OSD access to external programs and scripts
License:        GPL-2.0
Group:          Hardware/TV
Url:            http://www.udo-richter.de/vdr/osdserver.en.html
Source0:        vdr-%{pluginname}-%{version}.tar.bz2
Patch0:         osdserver-gcc6.patch
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  vdr-devel
# Requires(pre) is not enough, as it does not work on updates
Requires:       vdr(abi) = %{vdr_apiversion}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
OSDServer provides VDR OSD access to external programs and scripts through a TCP/IP socket connection, just like an X server does. The connection protocol is designed for easy interpretation by script languages and shell scripts.

%prep
%autosetup -n %{pluginname}-%{version} -p 1
chmod -x examples/*

%build
%vdr_make

%install
install -d %{buildroot}%{_libdir}/vdr
install -m 0755 libvdr-osdserver.so.%{vdr_apiversion} %{buildroot}%{_libdir}/vdr/

%files
%defattr(-,root,root)
%{_libdir}/vdr/*
%doc COPYING HISTORY README README.PERL-MODULE examples

%changelog
openSUSE Build Service is sponsored by