File liquidwar6.spec of Package liquidwar6
#
# spec file for package liquidwar6
#
# Copyright (c) 2021 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: liquidwar6
Version: 0.6.3902
Release: 0
Summary: A unique multiplayer wargame
License: GPL-2.0-or-later
Group: Amusements/Games/Strategy/Other
URL: http://www.gnu.org/software/liquidwar6
Source0: https://ftp.gnu.org/gnu/liquidwar6/liquidwar6-%{version}.tar.gz
Source1: https://download.savannah.gnu.org/releases/liquidwar6/%{version}/liquidwar6-extra-maps-%{version}.tar.gz
Patch0: fix-guile3.patch
Patch1: fix-link.patch
BuildRequires: Mesa-devel
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gperftools-devel
BuildRequires: graphviz
BuildRequires: graphviz-gd
BuildRequires: graphviz-gnome
BuildRequires: guile-devel
BuildRequires: libSDL-devel
BuildRequires: libSDL_image-devel
BuildRequires: libSDL_mixer-devel
BuildRequires: libSDL_ttf-devel
BuildRequires: libcurl-devel
BuildRequires: libexpat-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtool
BuildRequires: sqlite3-devel
BuildRequires: texinfo
BuildRequires: texlive
BuildRequires: unzip
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(caca)
Requires: guile
Requires(pre): %install_info_prereq
%define extramaps %{_datadir}/%{name}-%{version}beta/map/extra
%description
Liquid War 6 is a unique multiplayer wargame. Your army is a blob of
liquid and you have to try and eat your opponents. Rules are very
simple yet original, they have been invented by Thomas Colcombet. It
is possible to play alone against the computer but the game is really
designed to be played with friends, on a single computer, on a LAN, or
on Internet.
%package extramaps
Summary: Extra maps for Liquid War 6
Group: Amusements/Games/Strategy/Other
Requires: %{name} = %{version}
%description extramaps
Additional maps for Liquid War 6 package
%prep
%setup -q -a 1
%patch0 -p1
%patch1 -p1
%build
autoreconf -fi
export CFLAGS="%{optflags} -Wno-deprecated-declarations -Wno-stringop-overflow"
export LDFLAGS=""
%configure --enable-allinone \
--enable-optimize \
--disable-rpath \
--disable-mod-csound
make %{?_smp_mflags}
cd doc
make liquidwar6.html liquidwar6.pdf
%install
make DESTDIR=%{buildroot} install
mv %{buildroot}%{_bindir}/%{name}-%{version}beta %{buildroot}%{_bindir}/%{name}
%suse_update_desktop_file %{name} Game StrategyGame
# No devel stuff or tests in this RPM
rm -rf %{buildroot}%{_includedir}/%{name}
%if 0%{?suse_version} < 1120
rm -rf %{buildroot}%{_libdir}/%{name}*test
%else
rm -rf %{buildroot}%{_prefix}/lib/%{name}*test
%endif
mkdir %{buildroot}/%{extramaps}
cp -r *maps*/* %{buildroot}/%{extramaps}
%if 0%{?suse_version} >= 1120
%fdupes -s %{buildroot}%{_datadir}
%endif
%find_lang %{name}
%post
%install_info --info-dir=%{_infodir} %{_infodir}/liquidwar6.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/liquidwar6.info.gz
%files -f %{name}.lang
%defattr(-,root,root)
%doc ChangeLog README NEWS COPYING AUTHORS
%{_datadir}/doc/%{name}
%docdir %{_datadir}/doc/%{name}
%{_infodir}/%{name}.info.gz
%{_bindir}/%{name}
%exclude %{extramaps}
%{_datadir}/%{name}-%{version}beta
%{_mandir}/man6/%{name}.6.gz
%{_datadir}/applications/liquidwar6.desktop
%{_infodir}/liquidwar6.info-*.gz
%{_datadir}/pixmaps/liquidwar6.png
%{_datadir}/pixmaps/liquidwar6.xpm
%files extramaps
%defattr(-,root,root)
%doc %{extramaps}/*.txt
%{extramaps}
%exclude %{extramaps}/*.txt
%changelog