2016-08-21 13:18:29 +00:00
|
|
|
#
|
|
|
|
# spec file for package cdogs-sdl
|
|
|
|
#
|
2020-05-25 20:18:14 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2019-11-06 10:27:06 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-08-21 13:18:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: cdogs-sdl
|
2020-12-02 10:20:36 +00:00
|
|
|
Version: 0.10.1
|
2016-08-21 13:18:29 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Classic overhead run-and-gun game
|
2018-07-05 17:16:51 +00:00
|
|
|
License: GPL-2.0-only AND BSD-2-Clause AND CC-BY-3.0 AND CC-BY-SA-3.0
|
2016-08-21 13:18:29 +00:00
|
|
|
Group: Amusements/Games/Action/Shoot
|
2020-10-01 16:05:06 +00:00
|
|
|
URL: https://cxong.github.io/cdogs-sdl
|
2016-08-21 13:18:29 +00:00
|
|
|
Source: https://github.com/cxong/cdogs-sdl/archive/%{version}/%{name}-%{version}.tar.gz
|
2020-01-09 12:55:03 +00:00
|
|
|
# PATCH-FIX-OPENSUSE cdogs-sdl-fix-desktop-and-appdata.patch mardnh@gmx.de -- Fix desktop/appdata filenames.
|
2019-12-22 13:49:44 +00:00
|
|
|
Patch0: cdogs-sdl-fix-desktop-and-appdata.patch
|
2020-10-01 16:05:06 +00:00
|
|
|
# PATCH-FIX-UPSTREAM nanopb.patch -- https://github.com/nanopb/nanopb/issues/521
|
|
|
|
Patch1: nanopb.patch
|
2020-05-25 20:19:01 +00:00
|
|
|
BuildRequires: cmake >= 3.12
|
2016-08-21 13:18:29 +00:00
|
|
|
BuildRequires: dos2unix
|
2019-11-06 10:27:06 +00:00
|
|
|
BuildRequires: enet-devel
|
2016-08-21 13:18:29 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: hicolor-icon-theme
|
2018-07-05 17:16:51 +00:00
|
|
|
BuildRequires: pkgconfig
|
2020-10-01 16:05:06 +00:00
|
|
|
BuildRequires: python3-protobuf
|
|
|
|
BuildRequires: python3-setuptools
|
2016-08-21 13:18:29 +00:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(SDL2_image)
|
|
|
|
BuildRequires: pkgconfig(SDL2_mixer)
|
2020-05-25 20:18:14 +00:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
2016-08-21 13:18:29 +00:00
|
|
|
BuildRequires: pkgconfig(physfs)
|
2020-10-01 16:05:06 +00:00
|
|
|
BuildRequires: pkgconfig(protobuf)
|
2016-08-21 13:18:29 +00:00
|
|
|
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
|
2019-12-22 13:49:44 +00:00
|
|
|
%patch0 -p1
|
2020-10-01 16:05:06 +00:00
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
sed -i 's|env python|python3|' src/proto/nanopb/generator/{protoc,nanopb_generator.py}
|
2016-08-21 13:18:29 +00:00
|
|
|
|
2017-11-06 10:23:43 +00:00
|
|
|
# use system enet
|
2016-08-21 13:18:29 +00:00
|
|
|
rm -rf src/cdogs/enet
|
|
|
|
|
2020-10-01 16:05:06 +00:00
|
|
|
#dos2unix doc/original_readme.txt
|
2016-08-21 13:18:29 +00:00
|
|
|
|
2017-06-12 15:41:45 +00:00
|
|
|
# disable -Werror (aborts build on mere warnings)
|
2020-10-01 16:05:06 +00:00
|
|
|
#sed 's| -Werror||' -i CMakeLists.txt
|
2017-06-12 15:41:45 +00:00
|
|
|
|
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
|
2020-10-01 16:05:06 +00:00
|
|
|
%cmake_build
|
2016-08-21 13:18:29 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_bindir}/%{name}*
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
2020-10-01 16:05:06 +00:00
|
|
|
%{_datadir}/metainfo/%{name}.appdata.xml
|
2016-08-21 13:18:29 +00:00
|
|
|
|
|
|
|
%changelog
|