File ufoai-maps.spec of Package ufoai
#
# spec file for package ufoai-maps
#
# Copyright (c) 2025 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 need_build 1
%define game ufoai
Name: %{game}-maps
Version: 2.5+git20250324.763173ed03
Release: 0
Summary: UFO:AI - maps pack
License: GPL-2.0-or-later
Group: Amusements/Games/Strategy/Turn Based
URL: https://ufoai.org/
BuildRequires: %{game}-devel
BuildRequires: zip
BuildArch: noarch
Source0: %{game}-%{version}.tar.bz2
%if !%{need_build}
BuildRequires: do_not_build
%endif
%description
UFO: ALIEN INVASION is a strategy game featuring tactical combat
against hostile alien forces which are about to infiltrate earth at
this very moment.
This is the maps for UFO:AI. It is mandatory to local play or server
installation.
%prep
%setup -q -n %{game}-%{version}
%build
# not an autoconf-style configure
./configure
%make_build maps
%make_build pk3 PAK_FILES="0maps.pk3"
%install
install -D -m 0664 -t %{buildroot}%{_datadir}/%{game}/base base/0maps.pk3
%files
%dir %{_datadir}/%{game}
%dir %{_datadir}/%{game}/base
%{_datadir}/%{game}/base/0maps.pk3
%changelog