- 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
This commit is contained in:
Matthias Bach 2020-09-23 18:47:00 +00:00 committed by Git OBS Bridge
parent 8ca7eec098
commit 844f8df587
7 changed files with 60 additions and 14 deletions

View File

@ -2,7 +2,7 @@
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/FeralInteractive/gamemode.git</param>
<param name="scm">git</param>
<param name="revision">1.5</param>
<param name="revision">1.6</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
</service>

View File

@ -1,4 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/FeralInteractive/gamemode.git</param>
<param name="changesrevision">a95fa9642ecbd21a4402b8b2c5b6ad5a72c8864a</param></service></servicedata>
<param name="changesrevision">5f71f57db105c5d8682d5ab795651245603133ff</param></service></servicedata>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7463ad3b7f4565580ce2993a39608892f849572f71ab09e7abd5543af0ab2e78
size 69296

3
gamemode-1.6.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31d724fd4d5f5988ceb132c81829e9ce011da570f92adc07fef7d0e1fb374205
size 57220

View File

@ -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

View File

@ -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 <marix@marix.org>.
#
# 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

View File

@ -0,0 +1,27 @@
From: Matthias Bach <marix@marix.org>
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