Accepting request 1224669 from home:Kieltux:branches:games
- Update to 1.2.1: * This point release fixes several bugs and crashes found in Widelands 1.2, and offers full compatibility between these two releases for multiplayer games and replays. * Skip invalid map files in editor Load/Save map window * Fix memory leaks in main menu Watch Last Replay * Game setup: Unselect incompatible starting conditions when changing win condition * Add thread identifier to crash reports * Check for invalid combination before calling 'DefaultAI::expedition_management()' * Territorial Lua error fix * Remove AV1 decoder dependency in mingw-64 * Patches to support netbsd-pkgsrc * Keep vcpkg_ref in a repository variable instead of a file * Fix RelWithDebInfo build type * Fix out-of-bounds memory access when using '--editor' without filename * macos and other CI improvements * Re-add gettext ubuntu package * Update translations for v1.2.1 * Replace MD5 checksumming code with 'libmd' * Fix LaunchMPG map seafaring check for naval warfare * Fix anchored ship trying to swim towards buffer-underflow * Fix desync in Discovery/New World starting conditions - Drop BuildRequires: boost, curl, libtiff, lua, SDL2_gfx, because they are no longer needed. - Use more pkgconfig based BuildRequires OBS-URL: https://build.opensuse.org/request/show/1224669 OBS-URL: https://build.opensuse.org/package/show/games/widelands?expand=0&rev=69
This commit is contained in:
commit
55f9bbb6b2
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
24
_constraints
Normal file
24
_constraints
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<constraints>
|
||||||
|
<hardware>
|
||||||
|
<disk>
|
||||||
|
<size unit="G">11</size>
|
||||||
|
</disk>
|
||||||
|
<memory>
|
||||||
|
<size unit="G">9</size>
|
||||||
|
</memory>
|
||||||
|
</hardware>
|
||||||
|
<overwrite>
|
||||||
|
<conditions>
|
||||||
|
<arch>x86_64</arch>
|
||||||
|
</conditions>
|
||||||
|
<hardware>
|
||||||
|
<disk>
|
||||||
|
<size unit="G">13</size>
|
||||||
|
</disk>
|
||||||
|
<memory>
|
||||||
|
<size unit="G">11</size>
|
||||||
|
</memory>
|
||||||
|
</hardware>
|
||||||
|
</overwrite>
|
||||||
|
</constraints>
|
3
widelands-1.2.1.tar.gz
Normal file
3
widelands-1.2.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:799bfd32048ef20118c48e21f3fc843ae0451c42bb8bf2eabcb9b26bf6fe54b4
|
||||||
|
size 457853247
|
3
widelands-1.2.tar.gz
Normal file
3
widelands-1.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c6bed3717c541276fbed8a33adce230a2637297588c719268fcb963e076210e2
|
||||||
|
size 457713595
|
263
widelands.changes
Normal file
263
widelands.changes
Normal file
@ -0,0 +1,263 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 17 13:15:23 UTC 2024 - Carsten Ziepke <kieltux@gmail.com>
|
||||||
|
|
||||||
|
- Update to 1.2.1:
|
||||||
|
* This point release fixes several bugs and crashes found in
|
||||||
|
Widelands 1.2, and offers full compatibility between these
|
||||||
|
two releases for multiplayer games and replays.
|
||||||
|
* Skip invalid map files in editor Load/Save map window
|
||||||
|
* Fix memory leaks in main menu Watch Last Replay
|
||||||
|
* Game setup: Unselect incompatible starting conditions when
|
||||||
|
changing win condition
|
||||||
|
* Add thread identifier to crash reports
|
||||||
|
* Check for invalid combination before calling
|
||||||
|
'DefaultAI::expedition_management()'
|
||||||
|
* Territorial Lua error fix
|
||||||
|
* Remove AV1 decoder dependency in mingw-64
|
||||||
|
* Patches to support netbsd-pkgsrc
|
||||||
|
* Keep vcpkg_ref in a repository variable instead of a file
|
||||||
|
* Fix RelWithDebInfo build type
|
||||||
|
* Fix out-of-bounds memory access when using '--editor'
|
||||||
|
without filename
|
||||||
|
* macos and other CI improvements
|
||||||
|
* Re-add gettext ubuntu package
|
||||||
|
* Update translations for v1.2.1
|
||||||
|
* Replace MD5 checksumming code with 'libmd'
|
||||||
|
* Fix LaunchMPG map seafaring check for naval warfare
|
||||||
|
* Fix anchored ship trying to swim towards buffer-underflow
|
||||||
|
* Fix desync in Discovery/New World starting conditions
|
||||||
|
- Drop BuildRequires: boost, curl, libtiff, lua, SDL2_gfx,
|
||||||
|
because they are no longer needed.
|
||||||
|
- Use more pkgconfig based BuildRequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 31 06:31:48 UTC 2024 - Carsten Ziepke <kieltux@gmail.com>
|
||||||
|
|
||||||
|
- Update to 1.2:
|
||||||
|
* UI Plugins are add-ons that can add more functionality to
|
||||||
|
the user interface
|
||||||
|
* Naval Warfare preview: Invade foreign coasts using warships!
|
||||||
|
* This is included as a preview feature and needs to be
|
||||||
|
explicitly enabled in the game setup screen.
|
||||||
|
* Soldier garrisons for ports and headquarters
|
||||||
|
* Balancing changes to the Amazon economy
|
||||||
|
* Fifth scenario for the Frisian campaign
|
||||||
|
* More settings in the game setup screen, such as configurable
|
||||||
|
durations for timed win conditions
|
||||||
|
* Diplomacy handling for the computer players
|
||||||
|
* Stick pinned notes onto map fields to mark important points
|
||||||
|
* Hyperlinks let you navigate within the encyclopedia and to
|
||||||
|
the online help
|
||||||
|
* Easy maps publishing inside the editor
|
||||||
|
* High-resolution images for many more units
|
||||||
|
* Accessibility enhancements for many user interface components
|
||||||
|
* Expose more functionality to the add-ons and scenario
|
||||||
|
scripting interface
|
||||||
|
* Fixed many crashes and hangs and enhanced error handling
|
||||||
|
- Drop widelands-fix-missing-include.patch, fixed upstream
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 30 07:38:29 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
- Add widelands-fix-missing-include.patch: Add missing #include <cstdint>
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 27 19:08:17 UTC 2023 - Carsten Ziepke <kieltux@gmail.com>
|
||||||
|
|
||||||
|
- Use BuildRequires asio-devel instead pkgconfig(asio), enables
|
||||||
|
build for openSUSE Leap 15.4
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 18 15:12:59 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.1:
|
||||||
|
* Since the release of version 1.0, we implemented several hundreds of new
|
||||||
|
features and bugfixes; for example, to name just a few of the highlights:
|
||||||
|
|
||||||
|
* Three new scenarios: One each for the Atlantean and Frisian campaigns, and
|
||||||
|
a new standalone singleplayer mission
|
||||||
|
* An add-ons webserver allows efficient down- and uploading of add-ons as
|
||||||
|
well as interactions such as voting and commenting on add-ons
|
||||||
|
* High-resolution images for many units
|
||||||
|
* Multithreading provides smoother performance
|
||||||
|
* Multiple enhancements to the in-game encyclopedia
|
||||||
|
* Diplomacy: Manage your alliances during the game
|
||||||
|
* Fastplace: Assign custom shortcuts to buildings to place them with one keystroke
|
||||||
|
* In-game loading and restarting of games and scenarios
|
||||||
|
* Save and load in-game windows
|
||||||
|
* Editor tool history dialog
|
||||||
|
* Various AI enhancements
|
||||||
|
- see https://www.widelands.org/news/2022/Oct/23/widelands-1-1-released/
|
||||||
|
- drop 316eaea20975436.patch (upstream)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 12 09:19:25 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
- Add upstream patch to fix build on Tumbleweed:
|
||||||
|
* 316eaea20975436.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 22 10:56:56 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Drop Obsoletes, because build21 always compares less than 1.0
|
||||||
|
already.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 17 18:40:23 UTC 2021 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||||
|
|
||||||
|
- update to version 1.0
|
||||||
|
* A new tribe: the Amazons
|
||||||
|
* An add-on system
|
||||||
|
* A third frisians scenario
|
||||||
|
* Dynamic tribe loading to speed up game loading
|
||||||
|
* Targeting individual map objects for removal
|
||||||
|
* Mute/unmute messages by buildings
|
||||||
|
* Fully redesigned main menu
|
||||||
|
* Configurable keyboard shortcuts
|
||||||
|
* Enhanced keyboard and mousewheel support in the UI
|
||||||
|
* Long-term stable Lua API for game content designers
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 12 09:41:42 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
- Update to build21
|
||||||
|
See https://www.widelands.org/changelog/ for the changelog
|
||||||
|
- Removed obsolete conditions
|
||||||
|
- Cleanup the %cmake call
|
||||||
|
- Drop build20-libGL.patch. Merged upstream
|
||||||
|
- Increase the minimum disk space required to build widelands
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 4 10:51:01 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- BuildRequire distribution-release, not openSUSE-release: we do
|
||||||
|
not care for the exact distro version build (e.g. daily TW
|
||||||
|
snapshot version changing).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 22 09:11:19 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- don't require python-devel and SDL_net as is not needed
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 10 16:50:24 UTC 2019 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||||
|
|
||||||
|
- update to build 20
|
||||||
|
Changelog see https://www.widelands.org/changelog/
|
||||||
|
Drop patch widelands-build19-fix-build-icu.patch (included upstream)
|
||||||
|
Add build20-libGL.patch to fix build order
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 9 08:25:07 UTC 2018 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- Add _constraints to avoid OOM erros while linking
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 18 05:46:38 UTC 2018 - antoine.belvire@opensuse.org
|
||||||
|
|
||||||
|
- Fix build on Tumbleweed (boo#1097928, lp#1760581):
|
||||||
|
* Add widelands-build19-fix-build-icu.patch (picked from
|
||||||
|
upstream).
|
||||||
|
- Modernize spec file.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
||||||
|
|
||||||
|
- Fix fatal error on startup referencing wrong data directory
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 22 07:43:39 UTC 2017 - okurz@suse.com
|
||||||
|
|
||||||
|
- Update to build 19
|
||||||
|
See https://wl.widelands.org/changelog/ for details
|
||||||
|
- Use ninja for faster build
|
||||||
|
- Split out debug package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 22 07:06:49 UTC 2017 - okurz@suse.com
|
||||||
|
|
||||||
|
- Update package description with current description on webpage, more user centric
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 25 17:02:06 UTC 2014 - adrian@suse.de
|
||||||
|
|
||||||
|
- update to build 18
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 24 17:59:02 UTC 2012 - joop.boonen@opensuse.org
|
||||||
|
|
||||||
|
- Quick n lazy lua fix
|
||||||
|
- Added a gcc47 patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 5 19:26:16 UTC 2012 - opensuse@dstoecker.de
|
||||||
|
|
||||||
|
- update to build 17
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 25 22:06:22 UTC 2011 - jengelh@medozas.de
|
||||||
|
|
||||||
|
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
|
||||||
|
- Simplify call to perl-rename
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 25 08:07:31 UTC 2011 - jreidinger@suse.com
|
||||||
|
|
||||||
|
- fix locale detection
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 7 22:18:39 UTC 2011 - andrea@opensuse.org
|
||||||
|
|
||||||
|
- update to build 16
|
||||||
|
- fixed rpm group
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 17 18:11:10 UTC 2010 - opensuse@dstoecker.de
|
||||||
|
|
||||||
|
- update to daily source version 2010-11-17 (bzr revision 5723)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 28 15:24:35 CEST 2010 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- updated to build 15
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 20 22:32:05 UTC 2010 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- updated to build 14
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 1 22:04:14 CEST 2009 - dominique.leuenberger@tmf-group.com
|
||||||
|
|
||||||
|
- fixed spec file to actually build release 13
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 5 23:32:19 CEST 2008 - claes.backstrom@fsfe.org
|
||||||
|
|
||||||
|
- New upstream build-12
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 11 23:02:49 CEST 2008 - claes.backstrom@fsfe.org
|
||||||
|
|
||||||
|
- Initial package (build11-1)
|
||||||
|
|
125
widelands.spec
Normal file
125
widelands.spec
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
#
|
||||||
|
# spec file for package widelands
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# 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 https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: widelands
|
||||||
|
Version: 1.2.1
|
||||||
|
Release: 0
|
||||||
|
Summary: Realtime strategy game involving map control
|
||||||
|
License: GPL-2.0-or-later
|
||||||
|
URL: https://www.widelands.org
|
||||||
|
Source0: https://github.com/%{name}/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: doxygen
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: gettext
|
||||||
|
BuildRequires: hicolor-icon-theme
|
||||||
|
BuildRequires: ninja
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: python3-base >= 1.5.2
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
|
BuildRequires: pkgconfig(SDL2_image)
|
||||||
|
BuildRequires: pkgconfig(SDL2_mixer)
|
||||||
|
BuildRequires: pkgconfig(SDL2_ttf)
|
||||||
|
BuildRequires: pkgconfig(asio)
|
||||||
|
BuildRequires: pkgconfig(glew)
|
||||||
|
BuildRequires: pkgconfig(icu-i18n)
|
||||||
|
BuildRequires: pkgconfig(icu-io)
|
||||||
|
BuildRequires: pkgconfig(icu-uc)
|
||||||
|
BuildRequires: pkgconfig(libpng) >= 1.6
|
||||||
|
BuildRequires: pkgconfig(sdl2)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
Requires: %{name}-data = %{version}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Widelands is a real-time strategy (RTS) game with singleplayer
|
||||||
|
campaigns and a multiplayer mode. The game was inspired by Settlers II
|
||||||
|
(Bluebyte) but has significantly more variety and depth to it.
|
||||||
|
|
||||||
|
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
|
||||||
|
Summary: Data files for Widelands
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description data
|
||||||
|
Data files for Widelands. Includes localization, maps graphics and music.
|
||||||
|
|
||||||
|
%package debug
|
||||||
|
Summary: Debugging tools for Widelands
|
||||||
|
|
||||||
|
%description debug
|
||||||
|
Additional debugging data for Widelands. This package is not needed for normal
|
||||||
|
operation.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
sed -i '/wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=uninitialized")/d' CMakeLists.txt
|
||||||
|
sed -i 's/\(install(TARGETS ${NAME} DESTINATION \)"."\( COMPONENT ExecutableFiles)\)/\1bin\2/' cmake/WlFunctions.cmake
|
||||||
|
find . -type f -name "*.py" -exec sed -i -E 's/env python[3]?/python3/' {} \;
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir -p build/locale
|
||||||
|
%define __builder ninja
|
||||||
|
|
||||||
|
%cmake \
|
||||||
|
-DWL_INSTALL_BINDIR=%{_bindir} \
|
||||||
|
-DWL_INSTALL_DATADIR=%{_datadir}/%{name} \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
%{?nil}
|
||||||
|
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cmake_install
|
||||||
|
|
||||||
|
%fdupes %{buildroot}%{_datadir}
|
||||||
|
|
||||||
|
%find_lang %{name} --all-name
|
||||||
|
|
||||||
|
rm -f %{buildroot}%{_prefix}/{COPYING,CREDITS,ChangeLog,VERSION}
|
||||||
|
|
||||||
|
# No need to execute tests as they are already executed implicitly on install
|
||||||
|
# instead do post-install test
|
||||||
|
PATH=%{buildroot}%{_bindir}:$PATH %{name} --help | grep 'This is Widelands'
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING
|
||||||
|
%doc CREDITS ChangeLog
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_datadir}/icons/hicolor/*/apps/org.widelands.Widelands.png
|
||||||
|
%{_datadir}/applications/org.widelands.Widelands.desktop
|
||||||
|
%{_mandir}/man6/%{name}.*
|
||||||
|
%{_datadir}/metainfo/org.widelands.Widelands.appdata.xml
|
||||||
|
|
||||||
|
%files data -f %{name}.lang
|
||||||
|
%dir %{_datadir}/%{name}
|
||||||
|
%dir %{_datadir}/%{name}/locale
|
||||||
|
%dir %{_datadir}/%{name}/locale/*
|
||||||
|
%dir %{_datadir}/%{name}/locale/*/LC_MESSAGES
|
||||||
|
%{_datadir}/%{name}/[^l]*
|
||||||
|
|
||||||
|
%files debug
|
||||||
|
%{_bindir}/wl_*
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user