File crossfire-client.spec of Package crossfire-client
#
# spec file for package crossfire-client
#
# 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/
#
%define _basename crossfire
Name: %{_basename}-client
Version: 1.75.0
Release: 0
Summary: Client for connecting to crossfire servers
License: GPL-2.0-only
Group: Amusements/Games/RPG
URL: http://crossfire.real-time.com/
Source: http://downloads.sourceforge.net/project/crossfire/crossfire-client/%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM static-helper-library.patch -- Helper library should be static linked (not installed)
Patch0: static-helper-library.patch
BuildRequires: cmake >= 3.1
BuildRequires: perl
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(SDL_mixer)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libpng16)
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(vapigen)
BuildRequires: pkgconfig(x11)
%description
Crossfire is a highly graphical role-playing adventure game with
characteristics reminiscent of rogue, nethack, omega, and gauntlet.
It has multiplayer capability.
Client for playing the new client/server based version of Crossfire.
This package allows you to connect to Crossfire servers around the world.
You do not need install the Crossfire server in order to use this
package.
%prep
%setup -q
%patch -P 0 -p1
%build
%cmake
%make_build
%install
%cmake_install
ln -s %{name}-gtk2 %{buildroot}%{_bindir}/%{name}
%files
%{_bindir}/%{name}
%{_bindir}/%{name}-gtk2
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%changelog