File netrek-client-cow.spec of Package netrek-client-cow

#
# spec file for package netrek-client-cow
#
# Copyright (c) 2020 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:           netrek-client-cow
Version:        3.3.2
Release:        0
Summary:        Netrek Client (C and X11)
License:        MIT
Group:          Amusements/Games/Strategy/Real Time
URL:            https://www.netrek.org/
Source:         http://netrek.org/files/COW/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/quozl/netrek-client-cow/pull/7
Patch0:         bindir-desktop.patch
Patch1:         https://github.com/quozl/netrek-client-cow/commit/3fb7f1407ae463e53ab5056029616cb5a52df9e1.patch#/reproducible.patch
BuildRequires:  fdupes
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  gmp-devel
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xt)
BuildRequires:  pkgconfig(xxf86vm)
BuildRequires:  pkgconfig(imlib2)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(libxmp)

%description
Netrek is a multi-player battle simulation with a Star Trek theme.
As a player, you captain starships to engage enemy vessels, bomb
armies and invade planets in order to expand your team's space empire.

It's a team-oriented game with realtime dogfighting
but involving a lot of ongoing strategy.

%prep
%autosetup -p1

%build
# Disable preprocessor line numbers to fix gmp detection.
%configure CPPFLAGS=-P --bindir=%{_bindir} --datadir=%{_datadir} --mandir=%{_mandir}

# Doesn't support concurrent build yet.
make

%install
%make_install BINDIR=%{_bindir}

%fdupes %{buildroot}%{_datadir}

%files
%doc ChangeLog COPYING README.html README.3.01 TODO *.DOC XTREKRC.example
%license copyright.h copyright2.h
%doc cow.html newbie.html cow.css stars.gif netrekrc.example
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}/
%{_datadir}/applications/%{name}.desktop

%changelog

openSUSE Build Service is sponsored by