File crossfire-maps.spec of Package crossfire-maps

#
# spec file for package crossfire-maps
#
# 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}-maps
Version:        1.75.0
Release:        0
Summary:        Maps for Crossfire
License:        GPL-2.0-only
Group:          Amusements/Games/RPG
URL:            http://crossfire.real-time.com/server/index.html
Source:         https://sourceforge.net/projects/crossfire/files/crossfire-maps/%{version}/crossfire-maps-%{version}.tar.gz
BuildRequires:  fdupes
BuildArch:      noarch

%description
Maps for Crossfire.

Crossfire is a highly graphical role-playing adventure game with
characteristics reminiscent of rogue, nethack, omega, and gauntlet.
It has multiplayer capability and presently runs under X11.

%prep
%setup -q -n maps
# remove utils
rm -rfv ./Info

%build
#noop

%install
install -d -D -m 755 %{buildroot}/%{_datadir}/%{_basename}/maps/
find -type f -exec chmod 644 \{\} +
cp -R * %{buildroot}/%{_datadir}/%{_basename}/maps/
find %{buildroot}/%{_datadir}/%{_basename} -name "*.pyc" -o -name "__pycache__" -exec rm -rfv \{\} +
rm %{buildroot}/%{_datadir}/%{_basename}/maps/{ChangeLog,COPYING}

%fdupes "%{buildroot}/%{_datadir}/%{_basename}/maps"

%files
%license COPYING
%doc ChangeLog
%dir %{_datadir}/%{_basename}/
%{_datadir}/%{_basename}/maps/

%changelog
openSUSE Build Service is sponsored by