File syndwarsfx.spec of Package syndwarsfx
#
# spec file for package syndwarsfx (formerly known as swars)
#
# Copyright (c) 2024 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/
#
# The 32bit package (syndwarsfx-32bit) can be obtained using the following command:
# osc build --baselibs --disable-debuginfo openSUSE_Tumbleweed i586 syndwarsfx.spec
Name: syndwarsfx
Version: 0.3.8.3283
Release: 0
Summary: Syndicate Wars port
License: GPL-3.0-or-later
Group: Amusements/Games/Strategy/Real Time
URL: https://github.com/swfans/syndwarsfx
Source: https://github.com/swfans/syndwarsfx/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source98: baselibs.conf
Source99: %{name}-rpmlintrc
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: python3
BuildRequires: python3-polib
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(vorbisfile) >= 1.2.0
BuildRequires: pkgconfig(wildmidi)
# really ?
BuildRequires: pkgconfig(x11)
#
ExclusiveArch: %{ix86}
%description
Reimplementation of the classic Bullfrog game Syndicate Wars.
NOTE:
To play Syndicate Wars with this game engine you need the original
game files.
%prep
%autosetup -p1
%build
# disable optimization: "-O0"; "-02" results in weired compilation errors
export CFLAGS="-O0 -Wno-implicit-function-declaration"
autoreconf -fiv
# don't use distro provided CFLAGS (%%configure macro)
./configure \
--with-data-path=%{_datadir}/swars
%make_build
%check
#make check V=1
%install
make install prefix=%{buildroot}%{_datadir}
install -Dm 0755 src/swars %{buildroot}/%{_bindir}/swars
%files
%license COPYING GPL3
%doc AUTHORS README.md
%{_bindir}/swars
%dir %{_datadir}/swars
%exclude %{_datadir}/swars/AUTHORS
%exclude %{_datadir}/swars/COPYING
%exclude %{_datadir}/swars/GPL3
%{_datadir}/swars/install
%{_datadir}/swars/swars.icns
%{_datadir}/swars/swars_icon.png
%{_datadir}/swars/conf
%{_datadir}/swars/language
%exclude %{_datadir}/swars/swars
%changelog