Accepting request 533722 from games
1 OBS-URL: https://build.opensuse.org/request/show/533722 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/widelands?expand=0&rev=2
This commit is contained in:
commit
1083e9136d
@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 11 20:43:40 UTC 2017 - okurz@suse.com
|
||||||
|
|
||||||
|
- Use specific boost BuildRequires (bsc#1062802)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 15 08:49:27 UTC 2017 - mailaender@opensuse.org
|
||||||
|
|
||||||
|
- Install man page
|
||||||
|
- Install appdata file (lp#1271595)
|
||||||
|
- Use upstream supplied .desktop entry
|
||||||
|
- Add post macros for icons and desktop files
|
||||||
|
- Don't own standard icon directories
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 8 20:35:26 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Remove irrelevant parts from description,
|
||||||
|
and add more description about the particule RTS style.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jul 5 19:17:42 UTC 2017 - okurz@suse.com
|
Wed Jul 5 19:17:42 UTC 2017 - okurz@suse.com
|
||||||
|
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Type=Application
|
|
||||||
Name=Widelands
|
|
||||||
GenericName=Realtime Strategy Game
|
|
||||||
Comment=Build a growing settlement and rule the world
|
|
||||||
Icon=widelands
|
|
||||||
Exec=widelands
|
|
||||||
Categories=Game;StrategyGame;
|
|
@ -19,24 +19,32 @@
|
|||||||
Name: widelands
|
Name: widelands
|
||||||
Version: build19
|
Version: build19
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Open source realtime-strategy game
|
Summary: Realtime strategy game involving map control
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Amusements/Games/Strategy/Other
|
Group: Amusements/Games/Strategy/Other
|
||||||
Url: http://www.widelands.org
|
Url: http://www.widelands.org
|
||||||
Source: https://launchpad.net/%{name}/%{version}/%{version}/+download/%{name}-%{version}-src.tar.bz2
|
Source: https://launchpad.net/%{name}/%{version}/%{version}/+download/%{name}-%{version}-src.tar.bz2
|
||||||
Source1: %{name}.desktop
|
|
||||||
BuildRequires: SDL2_gfx-devel
|
BuildRequires: SDL2_gfx-devel
|
||||||
BuildRequires: SDL2_image-devel
|
BuildRequires: SDL2_image-devel
|
||||||
BuildRequires: SDL2_mixer-devel
|
BuildRequires: SDL2_mixer-devel
|
||||||
BuildRequires: SDL2_net-devel
|
BuildRequires: SDL2_net-devel
|
||||||
BuildRequires: SDL2_ttf-devel
|
BuildRequires: SDL2_ttf-devel
|
||||||
BuildRequires: boost-devel
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: glew-devel
|
BuildRequires: glew-devel
|
||||||
|
BuildRequires: hicolor-icon-theme
|
||||||
|
# use more specific boost dependencies where possible to avoid redundant
|
||||||
|
# dependencies (boo#1062802)
|
||||||
|
%if 0%{?suse_version} >= 1330
|
||||||
|
BuildRequires: libboost_headers-devel
|
||||||
|
BuildRequires: libboost_regex-devel
|
||||||
|
BuildRequires: libboost_test-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: boost-devel
|
||||||
|
%endif
|
||||||
BuildRequires: libicu-devel
|
BuildRequires: libicu-devel
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
@ -55,10 +63,14 @@ BuildRequires: lua-devel
|
|||||||
Requires: %{name}-data = %{version}
|
Requires: %{name}-data = %{version}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Widelands is a free, open source real-time strategy game with singleplayer
|
Widelands is a real-time strategy (RTS) game with singleplayer
|
||||||
campaigns and a multiplayer mode. The game was inspired by Settlers II
|
campaigns and a multiplayer mode. The game was inspired by Settlers II
|
||||||
(Bluebyte) but has significantly more variety and depth to it. Still, it is
|
(Bluebyte) but has significantly more variety and depth to it.
|
||||||
easy to get started through playable tutorials.
|
|
||||||
|
The primary goal of this type of RTS is to build a settlement with a
|
||||||
|
functioning economy, producing sufficient military units so as to
|
||||||
|
conquer rival territories, ultimately gaining control of either the
|
||||||
|
entire map, or a certain predetermined section of it.
|
||||||
|
|
||||||
%package data
|
%package data
|
||||||
Summary: Data files for Widelands
|
Summary: Data files for Widelands
|
||||||
@ -69,7 +81,7 @@ BuildArch: noarch
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description data
|
%description data
|
||||||
Data files for Widelands. Including localization, maps graphics and music.
|
Data files for Widelands. Includes localization, maps graphics and music.
|
||||||
|
|
||||||
%package debug
|
%package debug
|
||||||
Summary: Debugging tools for Widelands
|
Summary: Debugging tools for Widelands
|
||||||
@ -102,36 +114,45 @@ sed -i 's/\(install(TARGETS ${NAME} DESTINATION \)"."\( COMPONENT ExecutableFile
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
for i in 16 32 48 64 128; do
|
for i in 16 32 48 64 128; do
|
||||||
install -D -m 0644 data/images/logos/wl-ico-${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
|
install -D -m 0644 data/images/logos/wl-ico-${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
|
||||||
done
|
done
|
||||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
||||||
%suse_update_desktop_file %{name}
|
install -D -m 0644 debian/widelands.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
|
%suse_update_desktop_file %{name} -r Game StrategyGame
|
||||||
|
desktop-file-edit --set-icon=%{name} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
|
|
||||||
|
install -D -m 0644 debian/widelands.6 %{buildroot}%{_mandir}/man6/widelands.6
|
||||||
|
|
||||||
|
install -D -m 0644 debian/widelands.appdata.xml %{buildroot}%{_datadir}/appdata/widelands.appdata.xml
|
||||||
|
|
||||||
%fdupes %{buildroot}%{_datadir}
|
%fdupes %{buildroot}%{_datadir}
|
||||||
|
|
||||||
%find_lang %{name} --all-name
|
%find_lang %{name} --all-name
|
||||||
|
|
||||||
rm -f %{buildroot}%{_prefix}/{COPYING,CREDITS,ChangeLog,VERSION}
|
rm -f %{buildroot}%{_prefix}/{COPYING,CREDITS,ChangeLog,VERSION}
|
||||||
|
|
||||||
# No need to execute tests as they are already executed implicitly on install
|
# No need to execute tests as they are already executed implicitly on install
|
||||||
# instead do post-install test
|
# instead do post-install test
|
||||||
PATH=%{buildroot}%{_bindir}:$PATH widelands --help | grep 'This is Widelands'
|
PATH=%{buildroot}%{_bindir}:$PATH widelands --help | grep 'This is Widelands'
|
||||||
|
|
||||||
|
%post
|
||||||
|
%desktop_database_post
|
||||||
|
%icon_theme_cache_post
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%desktop_database_postun
|
||||||
|
%icon_theme_cache_postun
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING CREDITS ChangeLog
|
%doc COPYING CREDITS ChangeLog
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%dir %{_datadir}/icons/hicolor
|
|
||||||
%dir %{_datadir}/icons/hicolor/128x128
|
|
||||||
%dir %{_datadir}/icons/hicolor/128x128/apps
|
|
||||||
%dir %{_datadir}/icons/hicolor/16x16
|
|
||||||
%dir %{_datadir}/icons/hicolor/16x16/apps
|
|
||||||
%dir %{_datadir}/icons/hicolor/32x32
|
|
||||||
%dir %{_datadir}/icons/hicolor/32x32/apps
|
|
||||||
%dir %{_datadir}/icons/hicolor/48x48
|
|
||||||
%dir %{_datadir}/icons/hicolor/48x48/apps
|
|
||||||
%dir %{_datadir}/icons/hicolor/64x64
|
|
||||||
%dir %{_datadir}/icons/hicolor/64x64/apps
|
|
||||||
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
|
%{_mandir}/man6/widelands.*
|
||||||
|
%{_datadir}/appdata/widelands.appdata.xml
|
||||||
|
|
||||||
%files data -f %{name}.lang
|
%files data -f %{name}.lang
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user