File chromium-bsu.spec of Package chromium-bsu
#
# spec file for package chromium-bsu
#
# Copyright (c) 2016 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/
#
Name: chromium-bsu
Version: 0.9.15.1
Release: 0
Summary: Vertical Scrolling Space Shooter Game
License: ClArtistic and MIT
Group: Amusements/Games/Action/Shoot
Url: http://sourceforge.net/projects/chromium-bsu/
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# hiscore patch
Patch: %{name}-%{version}-src_HiScore.cpp.patch
#PATCH-FIX-UPSTREAM marguerite@opensuse.org - gcc6: call of overloaded 'abs(float&)' is ambiguous
Patch1: %{name}-%{version}-gcc6.patch
BuildRequires: dejavu-fonts
BuildRequires: gcc-c++
BuildRequires: libGLC-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL_image)
BuildRequires: pkgconfig(freealut)
BuildRequires: pkgconfig(sdl)
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
%endif
%description
Chromium B.S.U. is a fast paced, arcade-style, top-scrolling space shooter.
You are captain of the cargo ship Chromium B.S.U., responsible for
delivering supplies to our troops on the front line. Your ship has
a small fleet of robotic fighters which you control from the relative
safety of the Chromium vessel.
%prep
%setup -q
%patch
%patch1 -p1
%build
%configure --docdir=%{_docdir}/%{name}
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
rm -f %{buildroot}/%{name}-%{version}/data/doc/Makefile*
rm -f %{buildroot}/%{name}-%{version}/data/doc/images/Makefile*
mkdir -p %{buildroot}%{_localstatedir}/games/
touch %{buildroot}%{_localstatedir}/games/%{name}.highscore
%if 0%{?suse_version}
%suse_update_desktop_file %{name}
%fdupes -s %{buildroot}%{_prefix}
%endif
%find_lang %{name}
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README data/doc/*.htm data/wav/license.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man6/%{name}.6%{ext_man}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/
%config(noreplace) %attr(664,games,games) %{_localstatedir}/games/%{name}.highscore
%changelog