2014-10-05 11:35:45 +02:00
|
|
|
#
|
|
|
|
# spec file for package domination
|
|
|
|
#
|
2020-03-31 09:32:50 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-10-05 11:35:45 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-03-31 09:32:50 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-10-05 11:35:45 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: domination
|
2020-03-31 09:32:50 +02:00
|
|
|
Version: 1.2.1
|
2014-10-05 11:35:45 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Board game that is a bit like the well known game Risk
|
2020-03-31 09:32:50 +02:00
|
|
|
License: GPL-3.0-only
|
|
|
|
Group: Amusements/Games/Strategy/Turn Based
|
|
|
|
URL: http://domination.sourceforge.net/
|
2014-11-14 22:14:25 +01:00
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/Domination/%{version}/Domination_%{version}.zip
|
2014-10-05 11:35:45 +02:00
|
|
|
Source1: %{name}-FlashGUI.sh
|
|
|
|
Source2: %{name}-Increment1GUI.sh
|
|
|
|
Source3: %{name}-SimpleGUI.sh
|
|
|
|
Source4: %{name}-SwingGUI.sh
|
|
|
|
Source5: %{name}.desktop
|
2015-04-01 15:46:28 +02:00
|
|
|
Source6: %{name}.png
|
2014-11-14 06:26:07 +01:00
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: java-devel >= 1.6.0
|
2014-10-05 11:35:45 +02:00
|
|
|
BuildRequires: unzip
|
2014-11-14 06:26:07 +01:00
|
|
|
Requires: %{name}-data
|
2014-10-05 11:35:45 +02:00
|
|
|
Requires: jre >= 1.6.0
|
|
|
|
BuildArch: noarch
|
2020-03-31 09:32:50 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
%endif
|
2014-10-05 11:35:45 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Domination is a board game that is a bit like the well known game Risk.
|
|
|
|
|
|
|
|
Domination is a game that is a bit like the well known board game of Risk
|
|
|
|
or RisiKo. It has many game options and includes many maps.
|
|
|
|
|
|
|
|
Written in java it includes a map editor, a simple map format, multiplayer
|
|
|
|
network play, single player, hotseat, 5 user interfaces and many more features,
|
|
|
|
it works in all OSs that run java.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Domination
|
2014-11-14 06:26:07 +01:00
|
|
|
|
2014-10-05 11:35:45 +02:00
|
|
|
# Convert to unix line end
|
|
|
|
find -name "*.txt" -print0 -or -name "*.ini" -print0 -or -name "*.cmd" -print0 \
|
|
|
|
-or -name "*.htm" -print0 -or -name "*.cards" -print0 -or -name "*.map" -print0 \
|
|
|
|
-or -name "*.properties" -print0 | xargs -0 dos2unix
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
# install wrappers
|
2020-03-31 09:32:50 +02:00
|
|
|
install -Dm 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}-FlashGUI
|
|
|
|
install -Dm 0755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}-Increment1GUI
|
|
|
|
install -Dm 0755 %{SOURCE3} %{buildroot}%{_bindir}/%{name}-SimpleGUI
|
|
|
|
install -Dm 0755 %{SOURCE4} %{buildroot}%{_bindir}/%{name}-SwingGUI
|
2014-10-05 11:35:45 +02:00
|
|
|
|
|
|
|
# install directories
|
2014-11-14 06:26:07 +01:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/{help,lib,maps,maps/preview,resources}
|
2014-10-05 11:35:45 +02:00
|
|
|
for d in help lib resources ; do
|
2014-11-14 06:26:07 +01:00
|
|
|
install -Dm 0644 $d/* %{buildroot}%{_datadir}/%{name}/$d
|
2014-10-05 11:35:45 +02:00
|
|
|
done
|
|
|
|
|
2014-11-14 06:26:07 +01:00
|
|
|
cp -a maps %{buildroot}%{_datadir}/%{name}/
|
2014-10-05 11:35:45 +02:00
|
|
|
|
|
|
|
# install files
|
|
|
|
for f in *.jar *.htm *.txt *.ini ; do
|
|
|
|
install -Dm 0644 "$f" %{buildroot}%{_datadir}/%{name}
|
|
|
|
done
|
|
|
|
|
|
|
|
# install icon
|
2020-03-31 09:32:50 +02:00
|
|
|
install -Dm 0644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
2014-10-05 11:35:45 +02:00
|
|
|
|
|
|
|
# install Desktop file
|
2020-03-31 09:32:50 +02:00
|
|
|
install -Dm 0644 %{SOURCE5} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
2014-10-05 11:35:45 +02:00
|
|
|
|
2014-11-14 06:26:07 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%suse_update_desktop_file %{name}
|
|
|
|
%fdupes -s %{buildroot}%{_prefix}
|
|
|
|
%endif
|
2014-10-05 11:35:45 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/%{name}-*GUI
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|