diff --git a/widelands.changes b/widelands.changes index ad743c1..e4509dc 100644 --- a/widelands.changes +++ b/widelands.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 22 09:11:19 UTC 2020 - Ondřej Súkup + +- don't require python-devel and SDL_net as is not needed + ------------------------------------------------------------------- Wed Jul 10 16:50:24 UTC 2019 - Dirk Stoecker diff --git a/widelands.spec b/widelands.spec index e0b9428..87b78cb 100644 --- a/widelands.spec +++ b/widelands.spec @@ -1,7 +1,7 @@ # # spec file for package widelands # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,39 +21,41 @@ Version: build20 Release: 0 Summary: Realtime strategy game involving map control License: GPL-2.0-or-later -Group: Amusements/Games/Strategy/Other -Url: http://www.widelands.org +URL: https://www.widelands.org Source: https://launchpad.net/%{name}/%{version}/%{version}/+download/%{name}-%{version}.tar.bz2 # PATCH-FIX-UPSTREAM properly add -lGL as library for correct argument order Patch1: build20-libGL.patch BuildRequires: SDL2_gfx-devel BuildRequires: SDL2_image-devel BuildRequires: SDL2_mixer-devel -BuildRequires: SDL2_net-devel BuildRequires: SDL2_ttf-devel BuildRequires: cmake BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: gettext -BuildRequires: glew-devel BuildRequires: graphviz-gnome BuildRequires: hicolor-icon-theme BuildRequires: libboost_headers-devel BuildRequires: libboost_regex-devel BuildRequires: libboost_system-devel BuildRequires: libboost_test-devel -BuildRequires: libicu-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel -BuildRequires: libtiff-devel -BuildRequires: lua51-devel BuildRequires: ninja BuildRequires: openSUSE-release BuildRequires: optipng -BuildRequires: python-devel +BuildRequires: pkgconfig +BuildRequires: python3-base BuildRequires: update-desktop-files -BuildRequires: zlib-devel +BuildRequires: pkgconfig(glew) +BuildRequires: pkgconfig(icu-i18n) +BuildRequires: pkgconfig(icu-io) +BuildRequires: pkgconfig(icu-uc) +BuildRequires: pkgconfig(libtiff-4) +BuildRequires: pkgconfig(lua) +BuildRequires: pkgconfig(lua5.1) +BuildRequires: pkgconfig(zlib) Requires: %{name}-data = %{version} %description @@ -68,7 +70,6 @@ entire map, or a certain predetermined section of it. %package data Summary: Data files for Widelands -Group: Amusements/Games/Strategy/Other Requires: %{name} = %{version} BuildArch: noarch @@ -77,7 +78,6 @@ Data files for Widelands. Includes localization, maps graphics and music. %package debug Summary: Debugging tools for Widelands -Group: Amusements/Games/Strategy/Other %description debug Additional debugging data for Widelands. This package is not needed for normal @@ -88,6 +88,7 @@ operation. %patch1 -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 's/env python/python3/g' {} \; %build mkdir -p build/locale @@ -102,7 +103,7 @@ mkdir -p build/locale -DBoost_USE_STATIC_LIBS=OFF \ .. -%make_jobs +%cmake_build %install %cmake_install