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

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


%define pluginname games
Name:           vdr-plugin-%{pluginname}
Version:        0.6.3
Release:        0
Summary:        The VdrGames-Plugin is an OSD games collection
License:        GPL-2.0
Group:          Hardware/TV
Url:            http://1541.org/
Source0:        vdr-%{pluginname}-%{version}.tar.bz2
Patch0:         fpic.diff
Patch1:         gcc46.diff
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  vdr-devel
PreReq:         %vdr_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The VdrGames-Plugin  is an OSD games collection (formaly known as the tetris plugin).

This collection currently contains Tetris, Tron, TicTacToe, Snake and Minesweeper.

%prep
%setup -q -n %{pluginname}-%{version}
%patch0 -p 1
%patch1 -p 1

%build
%vdr_make

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

%files
%defattr(-,root,root)
%{_libdir}/vdr/*
%{vdr_dirs_no_locale}
%doc COPYING HISTORY README TODO

%changelog