Accepting request 261479 from home:nemysis:branches:games
Please accept these changes. OBS-URL: https://build.opensuse.org/request/show/261479 OBS-URL: https://build.opensuse.org/package/show/games/domination?expand=0&rev=2
This commit is contained in:
parent
655258e970
commit
d6db6f9450
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 13 18:57:26 UTC 2014 - nemysis@gmx.ch
|
||||||
|
|
||||||
|
- Use Group Amusements/Games/Arcade/Strategy instead of
|
||||||
|
Amusements/Games/Arcade/StrategyGame
|
||||||
|
- Use check for openSUSE %if 0%{?suse_version}
|
||||||
|
- Remove BuildRequires for desktop-file-utils
|
||||||
|
- Fix typo
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Oct 5 06:39:05 UTC 2014 - nemysis@gmx.ch
|
Sun Oct 5 06:39:05 UTC 2014 - nemysis@gmx.ch
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ Version: 1.1.1.5
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Board game that is a bit like the well known game Risk
|
Summary: Board game that is a bit like the well known game Risk
|
||||||
License: GPL-3.0
|
License: GPL-3.0
|
||||||
Group: Amusements/Games/StrategyGame
|
Group: Amusements/Games/Strategy
|
||||||
Url: http://domination.sourceforge.net/
|
Url: http://domination.sourceforge.net/
|
||||||
Source0: http://downloads.sourceforge.net/project/Domination/%{version}/Domination_%{version}.zip
|
Source0: http://downloads.sourceforge.net/project/Domination/%{version}/Domination_%{version}.zip
|
||||||
Source1: %{name}-FlashGUI.sh
|
Source1: %{name}-FlashGUI.sh
|
||||||
@ -29,15 +29,16 @@ Source2: %{name}-Increment1GUI.sh
|
|||||||
Source3: %{name}-SimpleGUI.sh
|
Source3: %{name}-SimpleGUI.sh
|
||||||
Source4: %{name}-SwingGUI.sh
|
Source4: %{name}-SwingGUI.sh
|
||||||
Source5: %{name}.desktop
|
Source5: %{name}.desktop
|
||||||
BuildRequires: unzip
|
%if 0%{?suse_version}
|
||||||
Requires: jre >= 1.6.0
|
|
||||||
BuildRequires: java-devel >= 1.6.0
|
|
||||||
BuildRequires: dos2unix
|
|
||||||
BuildRequires: desktop-file-utils
|
|
||||||
BuildRequires: update-desktop-files
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildArch: noarch
|
BuildRequires: update-desktop-files
|
||||||
|
%endif
|
||||||
|
BuildRequires: dos2unix
|
||||||
|
BuildRequires: java-devel >= 1.6.0
|
||||||
|
BuildRequires: unzip
|
||||||
Requires: %{name}-data
|
Requires: %{name}-data
|
||||||
|
Requires: jre >= 1.6.0
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Domination is a board game that is a bit like the well known game Risk.
|
Domination is a board game that is a bit like the well known game Risk.
|
||||||
@ -51,6 +52,7 @@ it works in all OSs that run java.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Domination
|
%setup -q -n Domination
|
||||||
|
|
||||||
# Convert to unix line end
|
# Convert to unix line end
|
||||||
find -name "*.txt" -print0 -or -name "*.ini" -print0 -or -name "*.cmd" -print0 \
|
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 "*.htm" -print0 -or -name "*.cards" -print0 -or -name "*.map" -print0 \
|
||||||
@ -59,8 +61,6 @@ find -name "*.txt" -print0 -or -name "*.ini" -print0 -or -name "*.cmd" -print0 \
|
|||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_datadir}/%{name}/{help,lib,maps,maps/preview,resources,saves}
|
|
||||||
|
|
||||||
# install wrappers
|
# install wrappers
|
||||||
install -Dm 0755 %{S:1} %{buildroot}%{_bindir}/%{name}-FlashGUI
|
install -Dm 0755 %{S:1} %{buildroot}%{_bindir}/%{name}-FlashGUI
|
||||||
install -Dm 0755 %{S:2} %{buildroot}%{_bindir}/%{name}-Increment1GUI
|
install -Dm 0755 %{S:2} %{buildroot}%{_bindir}/%{name}-Increment1GUI
|
||||||
@ -68,11 +68,12 @@ install -Dm 0755 %{S:3} %{buildroot}%{_bindir}/%{name}-SimpleGUI
|
|||||||
install -Dm 0755 %{S:4} %{buildroot}%{_bindir}/%{name}-SwingGUI
|
install -Dm 0755 %{S:4} %{buildroot}%{_bindir}/%{name}-SwingGUI
|
||||||
|
|
||||||
# install directories
|
# install directories
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/%{name}/{help,lib,maps,maps/preview,resources}
|
||||||
for d in help lib resources ; do
|
for d in help lib resources ; do
|
||||||
install -Dm 0644 "$d"/* %{buildroot}%{_datadir}/%{name}/"$d"
|
install -Dm 0644 $d/* %{buildroot}%{_datadir}/%{name}/$d
|
||||||
done
|
done
|
||||||
|
|
||||||
cp -r maps %{buildroot}%{_datadir}/%{name}/
|
cp -a maps %{buildroot}%{_datadir}/%{name}/
|
||||||
|
|
||||||
# install files
|
# install files
|
||||||
for f in *.jar *.htm *.txt *.ini ; do
|
for f in *.jar *.htm *.txt *.ini ; do
|
||||||
@ -85,9 +86,10 @@ install -Dm 0644 resources/icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|||||||
# install Desktop file
|
# install Desktop file
|
||||||
install -Dm 0644 %{S:5} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
install -Dm 0644 %{S:5} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
|
|
||||||
%suse_update_desktop_file %{name}
|
%if 0%{?suse_version}
|
||||||
|
%suse_update_desktop_file %{name}
|
||||||
%fdupes -s %{buildroot}%{_prefix}
|
%fdupes -s %{buildroot}%{_prefix}
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user