SHA256
1
0
forked from pool/domination

Accepting request 253977 from home:nemysis

- Change %fdupes
- Remove not needed mkdir -p
- Use %{name}.desktop instead of Desktop Entry in spec
- Initial package creation

OBS-URL: https://build.opensuse.org/request/show/253977
OBS-URL: https://build.opensuse.org/package/show/games/domination?expand=0&rev=1
This commit is contained in:
Matthias Mailänder 2014-10-05 09:35:45 +00:00 committed by Git OBS Bridge
commit 655258e970
10 changed files with 167 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
Domination_1.1.1.5.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6e0dd1c869679cc80c7904d6512cf9f6fc858a985b60c5a33f3f3291d716f740
size 6390032

4
domination-FlashGUI.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
cd /usr/share/domination && exec "/usr/bin/java" \
-cp Domination.jar net.yura.domination.ui.flashgui.MainMenu "${@}"

View File

@ -0,0 +1,4 @@
#!/bin/sh
cd /usr/share/domination && exec "/usr/bin/java" \
-cp Domination.jar net.yura.domination.ui.increment1gui.Increment1Frame "${@}"

4
domination-SimpleGUI.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
cd /usr/share/domination && exec "/usr/bin/java" \
-cp Domination.jar net.yura.domination.ui.simplegui.RiskGUI "${@}"

4
domination-SwingGUI.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
cd /usr/share/domination && exec "/usr/bin/java" \
-cp Domination.jar net.yura.domination.ui.swinggui.SwingGUIFrame "${@}"

16
domination.changes Normal file
View File

@ -0,0 +1,16 @@
-------------------------------------------------------------------
Sun Oct 5 06:39:05 UTC 2014 - nemysis@gmx.ch
- Change %fdupes
-------------------------------------------------------------------
Tue Sep 30 13:06:56 UTC 2014 - nemysis@gmx.ch
- Remove not needed mkdir -p
- Use %{name}.desktop instead of Desktop Entry in spec
-------------------------------------------------------------------
Wed Sep 17 18:54:15 UTC 2014 - nemysis@gmx.ch
- Initial package creation

9
domination.desktop Normal file
View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=Domination
GenericName=Strategy Game
Comment=Board game that is a bit like the well known game Risk
Icon=domination
Exec=domination-SwingGUI
Type=Application
Categories=Game;StrategyGame;
StartupNotify=false

99
domination.spec Normal file
View File

@ -0,0 +1,99 @@
#
# spec file for package domination
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: domination
Version: 1.1.1.5
Release: 0
Summary: Board game that is a bit like the well known game Risk
License: GPL-3.0
Group: Amusements/Games/StrategyGame
Url: http://domination.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/Domination/%{version}/Domination_%{version}.zip
Source1: %{name}-FlashGUI.sh
Source2: %{name}-Increment1GUI.sh
Source3: %{name}-SimpleGUI.sh
Source4: %{name}-SwingGUI.sh
Source5: %{name}.desktop
BuildRequires: unzip
Requires: jre >= 1.6.0
BuildRequires: java-devel >= 1.6.0
BuildRequires: dos2unix
BuildRequires: desktop-file-utils
BuildRequires: update-desktop-files
BuildRequires: fdupes
BuildArch: noarch
Requires: %{name}-data
%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
# 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
mkdir -p %{buildroot}%{_datadir}/%{name}/{help,lib,maps,maps/preview,resources,saves}
# install wrappers
install -Dm 0755 %{S:1} %{buildroot}%{_bindir}/%{name}-FlashGUI
install -Dm 0755 %{S:2} %{buildroot}%{_bindir}/%{name}-Increment1GUI
install -Dm 0755 %{S:3} %{buildroot}%{_bindir}/%{name}-SimpleGUI
install -Dm 0755 %{S:4} %{buildroot}%{_bindir}/%{name}-SwingGUI
# install directories
for d in help lib resources ; do
install -Dm 0644 "$d"/* %{buildroot}%{_datadir}/%{name}/"$d"
done
cp -r maps %{buildroot}%{_datadir}/%{name}/
# install files
for f in *.jar *.htm *.txt *.ini ; do
install -Dm 0644 "$f" %{buildroot}%{_datadir}/%{name}
done
# install icon
install -Dm 0644 resources/icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
# install Desktop file
install -Dm 0644 %{S:5} %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{name}
%fdupes -s %{buildroot}%{_prefix}
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}-*GUI
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}
%changelog