Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:games
s25rttr
s25rttr.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File s25rttr.spec of Package s25rttr
# # spec file for package s25rttr # # 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: s25rttr Version: 0.9.5 Release: 0 Summary: Settlers 2 Remake License: GPL-2.0-or-later Group: Amusements/Games/Strategy/Real Time URL: https://www.siedler25.org/ Source: https://github.com/Return-To-The-Roots/s25client/releases/download/v%{version}/s25client_src_v%{version}.tar.gz #PATCH-FIX-UPSTREAM build fixed for newer gcc, already included in nightly builds Patch1: buildfix.patch BuildRequires: boost-nowide-devel-impl >= 1.69 BuildRequires: cmake BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: gettext BuildRequires: gettext-devel BuildRequires: hicolor-icon-theme BuildRequires: libboost_filesystem-devel-impl >= 1.69 BuildRequires: libboost_headers-devel-impl >= 1.69 BuildRequires: libboost_iostreams-devel-impl >= 1.69 BuildRequires: libboost_locale-devel-impl >= 1.69 %if 0%{?sle_version} > 0 # openSUSE Leap is missing dependency BuildRequires: libboost_nowide1_75_0 %endif BuildRequires: libboost_program_options-devel-impl >= 1.69 BuildRequires: libboost_regex-devel-impl >= 1.69 BuildRequires: libboost_system-devel-impl >= 1.69 BuildRequires: libboost_thread-devel-impl >= 1.69 BuildRequires: libminiupnpc-devel BuildRequires: lua51-devel BuildRequires: pkgconfig BuildRequires: pkgconfig(SDL2_mixer) >= 2.0.1 BuildRequires: pkgconfig(bzip2) >= 1.0.6 BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libglfw) BuildRequires: pkgconfig(samplerate) >= 0.1.9 BuildRequires: pkgconfig(sdl2) >= 2.0.2 %description Return To The Roots is a multi-platform reimplementation of the popular game Settlers 2 with new features like network gaming and higher resolutions. Put gamefiles into %{_datadir}/s25rttr/S2 or install the package s25rttr-demoloader. %prep %autosetup -p1 -n s25client_v%{version} %build %cmake -DRTTR_BUILD_UPDATER=OFF -DRTTR_USE_SYSTEM_LIBS=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DBUILD_TESTING=OFF -DCMAKE_SKIP_RPATH=ON -DRTTR_ENABLE_WERROR=OFF %cmake_build %install %cmake_install # install desktop file and icon install -D -m 0644 tools/release/debian/s25rttr.desktop %{buildroot}%{_datadir}/applications/s25rttr.desktop install -D -m 0644 tools/release/debian/s25rttr.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/s25rttr.png # link duplicates %fdupes -s %{buildroot}%{_prefix} # find_lang does not work, do manually find %{buildroot}%{_datadir}/%{name}/RTTR/languages -name "*.mo" -exec sh \-c 'i=0; \ while [ $i -lt $# ]; do \ var=$(eval echo "\"\$"$i\"); \ lang=$(echo "$var" | head -n 1 | grep -Po -- "[A-Za-z_]*.mo" | sed "s/\.mo//"); \ i=$((i+1)); \ if [ "$lang" = "" ]; then \ continue; \ fi; \ echo "%%lang($lang) $var"; \ done' {} - + \; | sed "s@%{buildroot}@@" >> my_lang_list.lang %files -f my_lang_list.lang %license LICENSE %{_bindir}/s25client %{_bindir}/s25edit %{_datadir}/s25rttr %{_datadir}/s25rttr/RTTR %{_datadir}/s25rttr/RTTR/MAPS %{_datadir}/s25rttr/RTTR/MAPS/NEW %{_datadir}/s25rttr/RTTR/MAPS/OTHER %{_datadir}/s25rttr/RTTR/MAPS/SEA %{_datadir}/s25rttr/RTTR/MUSIC %{_datadir}/s25rttr/RTTR/MUSIC/SNG %{_datadir}/s25rttr/RTTR/texte %{_datadir}/s25rttr/S2/ %if 0%{?sle_version} > 150000 && 0%{?sle_version} < 150600 %{_datadir}/doc/s25rttr %{_datadir}/doc/s25rttr/de %else %{_datadir}/doc/packages/s25rttr %{_datadir}/doc/packages/s25rttr/de %endif %{_datadir}/icons/hicolor/64x64/apps/s25rttr.png %{_datadir}/applications/s25rttr.desktop %{_libdir}/s25rttr/ %{_libdir}/s25rttr/driver/ %{_libdir}/s25rttr/driver/audio/ %{_libdir}/s25rttr/driver/video/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor