From 655258e970d76d866c6d34eee260d1e5c6d45779c589f437c487858d7dddc9a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 5 Oct 2014 09:35:45 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++++++ .gitignore | 1 + Domination_1.1.1.5.zip | 3 ++ domination-FlashGUI.sh | 4 ++ domination-Increment1GUI.sh | 4 ++ domination-SimpleGUI.sh | 4 ++ domination-SwingGUI.sh | 4 ++ domination.changes | 16 ++++++ domination.desktop | 9 ++++ domination.spec | 99 +++++++++++++++++++++++++++++++++++++ 10 files changed, 167 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Domination_1.1.1.5.zip create mode 100644 domination-FlashGUI.sh create mode 100644 domination-Increment1GUI.sh create mode 100644 domination-SimpleGUI.sh create mode 100644 domination-SwingGUI.sh create mode 100644 domination.changes create mode 100644 domination.desktop create mode 100644 domination.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Domination_1.1.1.5.zip b/Domination_1.1.1.5.zip new file mode 100644 index 0000000..b2afdc0 --- /dev/null +++ b/Domination_1.1.1.5.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e0dd1c869679cc80c7904d6512cf9f6fc858a985b60c5a33f3f3291d716f740 +size 6390032 diff --git a/domination-FlashGUI.sh b/domination-FlashGUI.sh new file mode 100644 index 0000000..8f92db8 --- /dev/null +++ b/domination-FlashGUI.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/share/domination && exec "/usr/bin/java" \ +-cp Domination.jar net.yura.domination.ui.flashgui.MainMenu "${@}" diff --git a/domination-Increment1GUI.sh b/domination-Increment1GUI.sh new file mode 100644 index 0000000..45e56ae --- /dev/null +++ b/domination-Increment1GUI.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/share/domination && exec "/usr/bin/java" \ +-cp Domination.jar net.yura.domination.ui.increment1gui.Increment1Frame "${@}" diff --git a/domination-SimpleGUI.sh b/domination-SimpleGUI.sh new file mode 100644 index 0000000..67ba52f --- /dev/null +++ b/domination-SimpleGUI.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/share/domination && exec "/usr/bin/java" \ +-cp Domination.jar net.yura.domination.ui.simplegui.RiskGUI "${@}" diff --git a/domination-SwingGUI.sh b/domination-SwingGUI.sh new file mode 100644 index 0000000..4592877 --- /dev/null +++ b/domination-SwingGUI.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/share/domination && exec "/usr/bin/java" \ +-cp Domination.jar net.yura.domination.ui.swinggui.SwingGUIFrame "${@}" diff --git a/domination.changes b/domination.changes new file mode 100644 index 0000000..6fb5cd9 --- /dev/null +++ b/domination.changes @@ -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 + diff --git a/domination.desktop b/domination.desktop new file mode 100644 index 0000000..e3e3623 --- /dev/null +++ b/domination.desktop @@ -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 diff --git a/domination.spec b/domination.spec new file mode 100644 index 0000000..eebc0c3 --- /dev/null +++ b/domination.spec @@ -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