cdogs-sdl/cdogs-sdl.spec
Dmitriy Perlow 17413bd83f Accepting request 758735 from home:mnhauke:games
- Update to version 0.7.2
  Fix editor
  * Remove broken second window option
  * Fix editor
  * Fix mission end scores infinite incrementing
  * Fix bullet hole rendering on doors
  * Add fullscreen switching via Alt+Enter shortcut
- Add patch:
  * cdogs-sdl-fix-desktop-and-appdata.patch

OBS-URL: https://build.opensuse.org/request/show/758735
OBS-URL: https://build.opensuse.org/package/show/games/cdogs-sdl?expand=0&rev=15
2019-12-22 13:49:44 +00:00

86 lines
2.4 KiB
RPMSpec

#
# spec file for package cdogs-sdl
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: cdogs-sdl
Version: 0.7.2
Release: 0
Summary: Classic overhead run-and-gun game
License: GPL-2.0-only 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
Patch0: cdogs-sdl-fix-desktop-and-appdata.patch
BuildRequires: cmake >= 2.8.2
BuildRequires: dos2unix
BuildRequires: enet-devel
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(SDL2_image)
BuildRequires: pkgconfig(SDL2_mixer)
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
%patch0 -p1
# use system enet
rm -rf src/cdogs/enet
dos2unix doc/original_readme.txt
# disable -Werror (aborts build on mere warnings)
sed 's| -Werror||' -i CMakeLists.txt
%build
%cmake -DCDOGS_DATA_DIR=%{_datadir}/%{name}/ -DUSE_SHARED_ENET=ON
make %{?_smp_mflags}
%install
%cmake_install
%fdupes %{buildroot}%{_datadir}
%if 0%{?suse_version} < 1330
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} < 1330
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%{_datadir}/applications/%{name}.desktop
%{_bindir}/%{name}*
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{name}.appdata.xml
%changelog