File pinball-table-hurd.spec of Package pinball-table-hurd

#
# spec file for package pinball-table-hurd
#
# Copyright (c) 2021 Frank Kunz
#
# 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.

Name:           pinball-table-hurd
Version:        0.0.20201119
Release:        0
Summary:        HURD Pinball table for emilia pinball
License:        GPL-2.0-only
Group:          Amusements/Games/Action/Arcade
Url:            https://github.com/rzr/pinball-table-hurd/
Source0:        https://github.com/rzr/pinball-table-hurd/archive/%{version}.tar.gz
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(sdl)
BuildRequires:  libtool
BuildRequires:  gcc-c++
BuildRequires:  pinball-devel

%description
HURD Pinball table for emilia pinball

%prep
%setup -q

%build
./bootstrap
%configure --prefix=%{_prefix} --libdir=%{_libdir} --disable-static
%__make %{?_smp_mflags} VERBOSE=1 CXXFLAGS="%{optflags}"

%install
%make_install
# remove development file
rm %{buildroot}%{_libdir}/pinball/lib*.so

%files
%doc README.md
%license COPYING
%{_libdir}/pinball/
%{_datadir}/pinball/
%dir %attr(0775,games,games) %{_localstatedir}/games/pinball/hurd/
%ghost %attr(0664,games,games) %{_localstatedir}/games/pinball/hurd/highscores

%changelog
openSUSE Build Service is sponsored by