2016-08-21 13:18:29 +00:00
|
|
|
#
|
|
|
|
# spec file for package cdogs-sdl
|
|
|
|
#
|
2017-06-12 15:41:45 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-08-21 13:18:29 +00:00
|
|
|
#
|
|
|
|
# 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: cdogs-sdl
|
2017-06-12 15:41:45 +00:00
|
|
|
Version: 0.6.5
|
2016-08-21 13:18:29 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Classic overhead run-and-gun game
|
|
|
|
License: GPL-2.0 and BSD-2-Clause and CC-BY-3.0 and CC-BY-SA-3.0
|
|
|
|
Group: Amusements/Games/Action/Shoot
|
|
|
|
Url: http://cxong.github.io/cdogs-sdl
|
|
|
|
Source: https://github.com/cxong/cdogs-sdl/archive/%{version}/%{name}-%{version}.tar.gz
|
2017-06-12 15:41:45 +00:00
|
|
|
# PATCH-FIX-UPSTREAM https://github.com/cxong/cdogs-sdl/pull/503
|
|
|
|
Patch1: system-enet.patch
|
2016-08-21 13:18:29 +00:00
|
|
|
BuildRequires: cmake >= 2.8.2
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(SDL2_image)
|
|
|
|
BuildRequires: pkgconfig(SDL2_mixer)
|
|
|
|
BuildRequires: pkgconfig(libenet)
|
|
|
|
BuildRequires: pkgconfig(physfs)
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
|
|
|
|
|
|
|
%description
|
|
|
|
C-Dogs SDL is a classic overhead run-and-gun game, supporting up to
|
|
|
|
4 players in co-op and deathmatch modes. Customize your player, choose
|
|
|
|
from up to 11 weapons, and try over 100 user-created campaigns. Have fun!
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
rm -rf src/cdogs/enet
|
|
|
|
|
|
|
|
dos2unix doc/original_readme.txt
|
|
|
|
|
2017-06-12 15:41:45 +00:00
|
|
|
# disable -Werror (aborts build on mere warnings)
|
|
|
|
sed 's| -Werror||' -i CMakeLists.txt
|
|
|
|
|
2016-08-21 13:18:29 +00:00
|
|
|
%build
|
2017-06-12 15:41:45 +00:00
|
|
|
%cmake -DCDOGS_DATA_DIR=%{_datadir}/%{name}/ -DUSE_SHARED_ENET=ON
|
2016-08-21 13:18:29 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
install -Dm0644 build/linux/cdogs-icon.16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/cdogs-sdl.png
|
|
|
|
install -Dm0644 build/linux/cdogs-icon.22.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/cdogs-sdl.png
|
|
|
|
install -Dm0644 build/linux/cdogs-icon.32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/cdogs-sdl.png
|
|
|
|
install -Dm0644 build/linux/cdogs-icon.48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/cdogs-sdl.png
|
|
|
|
|
|
|
|
install -Dm0644 build/linux/cdogs-sdl.appdata.xml %{buildroot}%{_datadir}/appdata/cdogs-sdl.appdata.xml
|
|
|
|
|
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_bindir}/%{name}*
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
|
|
|
%dir %{_datadir}/appdata/
|
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
|
|
|
|
%changelog
|