File acm.spec of Package acm
#
# spec file for package ACM
#
# 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: acm
Version: 6.0_20200416
Release: 0
Summary: Lightweight flight simulator
License: GPL-2.0-only
Group: Amusements/Games/3D/Simulation
URL: https://www.icosaedro.it/acm
Source0: https://www.icosaedro.it/acm/acm-%{version}.tar.gz
Source1: %{name}.xpm
Source2: %{name}.desktop
# PATCH-FIX-DEBIAN
Patch0: fix_inventory.patch
Patch1: fix_mouse_stick_mode_enum.patch
Patch2: set_default_object_dir.patch
Patch3: fix_paths_in_acm_tcl.patch
Patch4: hardening1.patch
BuildRequires: gcc
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(tcl)
BuildRequires: pkgconfig(alsa)
BuildRequires: fdupes
%description
A multiplayer aerial combat simulation. Players engage in air to air combat
against one another using heat seeking missiles and cannons. It communicates
information via the IEEE Distributed Interactive
%prep
%autosetup -p1
# remove non-free bits
rm -rf src/gedit
%build
%make_build
%install
install -D src/acm/acm.exe %{buildroot}%{_bindir}/acm
install acm.tcl %{buildroot}%{_bindir}/acm.tcl
install src/dis/server/dis_relay.exe %{buildroot}%{_bindir}/dis_relay
install -Dm0644 -t %{buildroot}%{_datadir}/acm/objects objects/*.txt objects/*.COF objects/*.obv
for d in features zones/usa zones/middleeast zones/europe missiles sounds aircraft; do install -Dm0644 -t %{buildroot}%{_datadir}/acm/objects/"${d}" objects/"${d}"/*.*; done
install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/acm.xpm
install -Dm0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/acm.desktop
%fdupes %{buildroot}%{_datadir}/acm
%files
%license COPYING.txt
%doc README.txt
%{_bindir}/acm
%{_bindir}/acm.tcl
%{_bindir}/dis_relay
%{_datadir}/acm/
%{_datadir}/pixmaps/acm.xpm
%{_datadir}/applications/acm.desktop
%changelog