Hello community, here is the log from the commit of package plee-the-bear for openSUSE:Factory checked in at 2020-09-25 16:33:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/plee-the-bear (Old) and /work/SRC/openSUSE:Factory/.plee-the-bear.new.4249 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plee-the-bear" Fri Sep 25 16:33:13 2020 rev:4 rq:836200 version:0.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/plee-the-bear/plee-the-bear.changes 2017-12-31 01:13:53.731567456 +0100 +++ /work/SRC/openSUSE:Factory/.plee-the-bear.new.4249/plee-the-bear.changes 2020-09-25 16:34:29.900048224 +0200 @@ -1,0 +2,19 @@ +Tue Sep 22 23:28:12 UTC 2020 - Atri Bhattacharya <[email protected]> + +- Update to version 0.7.1 +- Change URL and Source0 to new upstream location. +- Drop ptb-sequencer-gcc6.patch: upstreamed. +- Add _service file for new source (untagged and unreleased) bear, + downloaded from its git repository. +- Add skeleton CMakeLists.txt file to build project as recommended + by upstream (see README.md). +- Add ptb-boost-placeholders.patch to explicitly use + boost::placeholders namespace where required, and thus fix build + failures on TW. +- Move installed appdata file to the correct metainfo dir. +- Drop conditionals supporting EOL openSUSE versions. +- New BuildRequires: libboost_test-devel. +- License updated to GPL-3.0-only. +- Drop empty post(un) scriptlets. + +------------------------------------------------------------------- Old: ---- plee-the-bear-0.7.0.tar.gz ptb-sequencer-gcc6.patch New: ---- CMakeLists.txt _service bear-0.0.0.git20200220.tar.xz plee-the-bear-0.7.1.tar.gz ptb-boost-placeholders.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ plee-the-bear.spec ++++++ --- /var/tmp/diff_new_pack.EpYKxJ/_old 2020-09-25 16:34:32.896050883 +0200 +++ /var/tmp/diff_new_pack.EpYKxJ/_new 2020-09-25 16:34:32.896050883 +0200 @@ -1,7 +1,7 @@ # # spec file for package plee-the-bear # -# Copyright (c) 2017 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 @@ -12,33 +12,32 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%define bear_ver 0.0.0.git20200220 Name: plee-the-bear -Version: 0.7.0 +Version: 0.7.1 Release: 0 Summary: Plee the Bear, a 2D platform game -License: GPL-2.0+ +License: GPL-3.0-only Group: Amusements/Games/Other -Url: http://www.stuff-o-matic.com/ptb/ -Source: http://www.stuff-o-matic.com/plee-the-bear/download/file.php?platform=source#/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM to be built via gcc6+. -Patch0: ptb-sequencer-gcc6.patch -BuildRequires: SDL_mixer-devel -%if 0%{?suse_version} > 1325 -BuildRequires: libboost_filesystem-devel -BuildRequires: libboost_regex-devel -BuildRequires: libboost_system-devel -BuildRequires: libboost_thread-devel -%else -BuildRequires: boost-devel -%endif +URL: https://github.com/j-jorge/plee-the-bear +Source0: https://github.com/j-jorge/plee-the-bear/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: bear-%{bear_ver}.tar.xz +Source2: CMakeLists.txt +# PATCH-FIX-UPSTREAM ptb-boost-placeholders.patch +Patch0: ptb-boost-placeholders.patch BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: gettext +BuildRequires: libboost_filesystem-devel +BuildRequires: libboost_regex-devel +BuildRequires: libboost_system-devel +BuildRequires: libboost_test-devel +BuildRequires: libboost_thread-devel BuildRequires: libclaw-devel >= 1.7.0 BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -69,20 +68,28 @@ This subpackage contains the game data files. %prep -%setup -q -n %{name}-%{version}-light -%patch0 +%setup -q -D -T -c -n bear-project -a0 +%setup -q -T -D -n bear-project -a1 +cp %{S:2} ./ +%autopatch -p1 %build +mv %{name}-%{version} %{name} +mv bear-%{bear_ver} bear %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -Wno-dev \ -DPTB_INSTALL_CUSTOM_LIBRARY_DIR=%{_lib}/%{name} \ -DBEAR_ENGINE_INSTALL_LIBRARY_DIR=%{_lib}/%{name} \ -DBEAR_EDITORS_ENABLED=False -make V=1 %{?_smp_mflags} +%cmake_build %install %cmake_install +# Move appdata to metainfo dir +mkdir -p %{buildroot}%{_datadir}/metainfo +mv %{buildroot}%{_datadir}/appdata/* %{buildroot}%{_datadir}/metainfo/ + # Translations %find_lang %{name} %find_lang bear-engine @@ -96,23 +103,15 @@ %fdupes -s %{buildroot}%{_datadir} -%post -%icon_theme_cache_post -%desktop_database_post - -%postun -%icon_theme_cache_postun -%desktop_database_postun - %files -%defattr(-,root,root) %{_bindir}/%{name} %{_libdir}/%{name} -%doc %{name}/LICENSE %{name}/README.md %{name}/license/* +%doc %{name}/README.md +%license %{name}/LICENSE %{name}/license/* %{_datadir}/applications/%{name}.desktop +%{_datadir}/metainfo/%{name}.appdata.xml %files data -f %{name}.lang -%defattr(-,root,root) %{_datadir}/%{name} %dir %{_datadir}/bear-factory %{_datadir}/bear-factory/%{name} ++++++ CMakeLists.txt ++++++ cmake_minimum_required(VERSION 2.6) if( NOT DEFINED BEAR_ROOT_DIRECTORY ) set( BEAR_ROOT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bear" ) endif() set( CMAKE_MODULE_PATH "${BEAR_ROOT_DIRECTORY}/cmake-helper" ) include( uninstall ) subdirs( bear plee-the-bear ) ++++++ _service ++++++ <services> <service name="download_files" mode="disabled" /> <service name="tar_scm" mode="disabled"> <param name="scm">git</param> <param name="filename">bear</param> <param name="url">https://github.com/j-jorge/bear.git</param> <param name="versionformat">git%cd</param> <param name="versionprefix">0.0.0</param> <param name="revision">c873f28</param> </service> <service name="recompress" mode="disabled"> <param name="file">bear-[0-9.]*.git[0-9]*.tar</param> <param name="compression">xz</param> </service> </services> ++++++ plee-the-bear-0.7.0.tar.gz -> plee-the-bear-0.7.1.tar.gz ++++++ /work/SRC/openSUSE:Factory/plee-the-bear/plee-the-bear-0.7.0.tar.gz /work/SRC/openSUSE:Factory/.plee-the-bear.new.4249/plee-the-bear-0.7.1.tar.gz differ: char 5, line 1 ++++++ ptb-boost-placeholders.patch ++++++ ++++ 893 lines (skipped)
