Prepare for RPM 4.20 OBS-URL: https://build.opensuse.org/request/show/1151631 OBS-URL: https://build.opensuse.org/package/show/games/starfighter?expand=0&rev=21
97 lines
3.0 KiB
RPMSpec
97 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package starfighter
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: starfighter
|
|
Version: 2.4
|
|
Release: 0
|
|
Summary: Liberate the universe from the evil company WEAPCO
|
|
License: GPL-3.0-or-later
|
|
Group: Amusements/Games/Action/Arcade
|
|
URL: https://pr-starfighter.github.io/
|
|
Source0: https://github.com/pr-starfighter/%{name}/releases/download/v%{version}/starfighter-%{version}-src.tar.gz
|
|
Source1: %{name}-icons.tar
|
|
# PATCH-FEATURE-UPSTREAM https://github.com/pr-starfighter/starfighter/pull/24
|
|
Patch0: appdata.patch
|
|
BuildRequires: automake
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: pkgconfig(SDL2_image)
|
|
BuildRequires: pkgconfig(SDL2_mixer)
|
|
BuildRequires: pkgconfig(SDL2_ttf)
|
|
BuildRequires: pkgconfig(pango)
|
|
BuildRequires: pkgconfig(sdl)
|
|
|
|
%description
|
|
Project: Starfighter is an old school 2D shoot 'em up. In the game you take on
|
|
the role of a rebel pilot called Chris, who is attempting to overthrow a
|
|
military corporation called Weapco. Weapco has seized control of the known
|
|
universe and currently rules it with an iron fist. Chris can no longer stand
|
|
back and watch as millions of people suffer and die. He steals an experimental
|
|
craft known as "Firefly" and begins his mission to fight his way to Sol,
|
|
freeing key systems along the way. The game opens with Chris attempting to
|
|
escape a Weapco patrol that has intercepted him.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%autosetup -p1 -a 1 -n %{name}-%{version}-src
|
|
|
|
sed -i 's/\r$//' README.txt
|
|
|
|
%build
|
|
./autogen.sh
|
|
%configure
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
|
|
# install icons
|
|
for i in 16 32 48 64 72 96 128 ; do
|
|
install -Dm 0644 icons/%{name}_${i}x${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
|
|
done
|
|
|
|
# remove duplicate docs
|
|
rm -fr %{buildroot}%{_datadir}/doc/%{name}
|
|
|
|
%suse_update_desktop_file %{name}
|
|
%fdupes -s %{buildroot}%{_prefix}
|
|
%find_lang pr-starfighter
|
|
|
|
%files
|
|
%license COPYING LICENSES
|
|
%doc README.txt
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/icons/hicolor/
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
%{_datadir}/%{name}
|
|
%exclude %{_datadir}/%{name}/locale/*
|
|
%{_mandir}/man6/starfighter.6%{?ext_man}
|
|
%{_datadir}/metainfo/%{name}.appdata.xml
|
|
|
|
%files lang -f pr-starfighter.lang
|
|
%dir %{_datadir}/%{name}/locale/*
|
|
%dir %{_datadir}/%{name}/locale/*/LC_MESSAGES
|
|
|
|
|
|
%changelog
|