From 844f8df587adf3da26d8c7c50a78a2546c2ed6dc76a740a82ce9487af0b37578 Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Wed, 23 Sep 2020 18:47:00 +0000 Subject: [PATCH] - Update to version 1.6: * Update CHANGELOG.md for 1.6. * Update README.md to point to release 1.6 in instructions * Fix installation of man pages in proper man dirs - Added only-build-shared-library.patch. - Update to version 1.6: * Created a new manpages for gamemoderun and the example, now called gamemode-simulate-game. * Copy default config file to the correct location. * Allow LD_PRELOAD to be overridden in $GAMEMODERUNEXEC. * Various minor bugfixes. - Drop special handling for no longer supported Leap 42. OBS-URL: https://build.opensuse.org/package/show/games:tools/gamemode?expand=0&rev=20 --- _service | 2 +- _servicedata | 2 +- gamemode-1.5.tar.xz | 3 --- gamemode-1.6.tar.xz | 3 +++ gamemode.changes | 20 ++++++++++++++++++++ gamemode.spec | 17 ++++++++--------- only-build-shared-library.patch | 27 +++++++++++++++++++++++++++ 7 files changed, 60 insertions(+), 14 deletions(-) delete mode 100644 gamemode-1.5.tar.xz create mode 100644 gamemode-1.6.tar.xz create mode 100644 only-build-shared-library.patch diff --git a/_service b/_service index c3249aa..5ed5f3f 100644 --- a/_service +++ b/_service @@ -2,7 +2,7 @@ https://github.com/FeralInteractive/gamemode.git git - 1.5 + 1.6 @PARENT_TAG@ enable diff --git a/_servicedata b/_servicedata index e4f28b2..66f0a42 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ https://github.com/FeralInteractive/gamemode.git - a95fa9642ecbd21a4402b8b2c5b6ad5a72c8864a \ No newline at end of file + 5f71f57db105c5d8682d5ab795651245603133ff \ No newline at end of file diff --git a/gamemode-1.5.tar.xz b/gamemode-1.5.tar.xz deleted file mode 100644 index 7b8bc9e..0000000 --- a/gamemode-1.5.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7463ad3b7f4565580ce2993a39608892f849572f71ab09e7abd5543af0ab2e78 -size 69296 diff --git a/gamemode-1.6.tar.xz b/gamemode-1.6.tar.xz new file mode 100644 index 0000000..a6eadc5 --- /dev/null +++ b/gamemode-1.6.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31d724fd4d5f5988ceb132c81829e9ce011da570f92adc07fef7d0e1fb374205 +size 57220 diff --git a/gamemode.changes b/gamemode.changes index fe8a140..cc96a88 100644 --- a/gamemode.changes +++ b/gamemode.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Wed Sep 23 18:12:20 UTC 2020 - marix@marix.org + +- Update to version 1.6: + * Update CHANGELOG.md for 1.6. + * Update README.md to point to release 1.6 in instructions + * Fix installation of man pages in proper man dirs +- Added only-build-shared-library.patch. + +------------------------------------------------------------------- +Sat Sep 12 08:52:27 UTC 2020 - marix@marix.org - 1.6 + +- Update to version 1.6: + * Created a new manpages for gamemoderun and the example, now + called gamemode-simulate-game. + * Copy default config file to the correct location. + * Allow LD_PRELOAD to be overridden in $GAMEMODERUNEXEC. + * Various minor bugfixes. +- Drop special handling for no longer supported Leap 42. + ------------------------------------------------------------------- Thu Jan 23 18:32:54 UTC 2020 - marix@marix.org diff --git a/gamemode.spec b/gamemode.spec index 7429916..4ab6ecb 100644 --- a/gamemode.spec +++ b/gamemode.spec @@ -1,7 +1,7 @@ # # spec file for package gamemode # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2020 Matthias Bach . # # All modifications and additions to the file contributed by third parties @@ -18,7 +18,7 @@ Name: gamemode -Version: 1.5 +Version: 1.6 Release: 0 Summary: Daemon/library combo for changing Linux system performance on demand License: BSD-3-Clause @@ -28,7 +28,9 @@ Source0: gamemode-%{version}.tar.xz Source1: gamemode-rpmlintrc Source2: README.openSUSE Source3: baselibs.conf +Patch0: only-build-shared-library.patch BuildRequires: cmake +BuildRequires: libinih-devel BuildRequires: meson BuildRequires: ninja BuildRequires: pkgconfig @@ -37,9 +39,6 @@ BuildRequires: pkgconfig(dbus-1) # Yes, it needs both BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(systemd) -%if 0%{?sle_version} == 120300 && 0%{?is_opensuse} -BuildRequires: gcc7 -%endif %description GameMode is a daemon/lib combo for Linux that allows games to request @@ -110,14 +109,12 @@ built-in GameMode support. %prep %setup -q +%patch0 -p1 cp %{SOURCE2} . %build -%if 0%{?sle_version} == 120300 && 0%{?is_opensuse} -export CC=gcc-7 # gcc4.8 does not work because of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58016 -%endif -%meson +%meson -Dwith-examples=false %meson_build %check @@ -139,6 +136,7 @@ export CC=gcc-7 # gcc4.8 does not work because of https://gcc.gnu.org/bugzilla/ %{_userunitdir}/gamemoded.service %{_datadir}/polkit-1/actions/com.feralinteractive.GameMode.policy %{_datadir}/dbus-1/services/com.feralinteractive.GameMode.service +%{_datadir}/metainfo/io.github.feralinteractive.gamemode.metainfo.xml %{_mandir}/*/* %doc example/gamemode.ini README.openSUSE %license LICENSE.txt @@ -156,6 +154,7 @@ export CC=gcc-7 # gcc4.8 does not work because of https://gcc.gnu.org/bugzilla/ %{_libdir}/libgamemode.so %{_libdir}/libgamemodeauto.so %{_libdir}/pkgconfig/gamemode* +%{_libdir}/pkgconfig/libgamemode* %license LICENSE.txt %changelog diff --git a/only-build-shared-library.patch b/only-build-shared-library.patch new file mode 100644 index 0000000..e457fe1 --- /dev/null +++ b/only-build-shared-library.patch @@ -0,0 +1,27 @@ +From: Matthias Bach +Date: Wed, 23 Sep 2020 20:36:08 +0200 +Subject: Build only the dynamic library +Upstream: never + +openSUSE policy asks to only build the dynamic library unless there is a +compelling reason to also package a static one. +--- + lib/meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/meson.build b/lib/meson.build +index e810509..e8754e6 100644 +--- a/lib/meson.build ++++ b/lib/meson.build +@@ -25,7 +25,7 @@ gamemode_headers_includes = [ + ] + + # Small library to automatically use gamemode +-libgamemodeauto = both_libraries( ++libgamemodeauto = shared_library( + 'gamemodeauto', + sources: [ + 'client_loader.c', +-- +2.26.2 +