-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgamemode.spec
214 lines (177 loc) · 6.87 KB
/
gamemode.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
#
# This file is auto-generated. DO NOT EDIT
# Generated by: autospec.py
# Using build pattern: meson
# autospec version: v10
# autospec commit: 6fa3d52
#
Name : gamemode
Version : 1.8.1
Release : 1
URL : https://github.com/FeralInteractive/gamemode/archive/refs/tags/1.8.1.tar.gz
Source0 : https://github.com/FeralInteractive/gamemode/archive/refs/tags/1.8.1.tar.gz
Summary : No detailed summary available
Group : Development/Tools
License : BSD-3-Clause
Requires: gamemode-bin = %{version}-%{release}
Requires: gamemode-config = %{version}-%{release}
Requires: gamemode-data = %{version}-%{release}
Requires: gamemode-lib = %{version}-%{release}
Requires: gamemode-libexec = %{version}-%{release}
Requires: gamemode-man = %{version}-%{release}
Requires: gamemode-services = %{version}-%{release}
BuildRequires : buildreq-meson
BuildRequires : dbus-dev
BuildRequires : pkgconfig(dbus-1)
BuildRequires : pkgconfig(inih)
BuildRequires : pkgconfig(libsystemd)
BuildRequires : pkgconfig(systemd)
# Suppress stripping binaries
%define __strip /bin/true
%define debug_package %{nil}
%description
# GameMode
**GameMode** is a daemon/lib combo for Linux that allows games to request a set of optimisations be temporarily applied to the host OS and/or a game process.
%package bin
Summary: bin components for the gamemode package.
Group: Binaries
Requires: gamemode-data = %{version}-%{release}
Requires: gamemode-libexec = %{version}-%{release}
Requires: gamemode-config = %{version}-%{release}
Requires: gamemode-services = %{version}-%{release}
%description bin
bin components for the gamemode package.
%package config
Summary: config components for the gamemode package.
Group: Default
%description config
config components for the gamemode package.
%package data
Summary: data components for the gamemode package.
Group: Data
%description data
data components for the gamemode package.
%package dev
Summary: dev components for the gamemode package.
Group: Development
Requires: gamemode-lib = %{version}-%{release}
Requires: gamemode-bin = %{version}-%{release}
Requires: gamemode-data = %{version}-%{release}
Provides: gamemode-devel = %{version}-%{release}
Requires: gamemode = %{version}-%{release}
%description dev
dev components for the gamemode package.
%package lib
Summary: lib components for the gamemode package.
Group: Libraries
Requires: gamemode-data = %{version}-%{release}
Requires: gamemode-libexec = %{version}-%{release}
%description lib
lib components for the gamemode package.
%package libexec
Summary: libexec components for the gamemode package.
Group: Default
Requires: gamemode-config = %{version}-%{release}
%description libexec
libexec components for the gamemode package.
%package man
Summary: man components for the gamemode package.
Group: Default
%description man
man components for the gamemode package.
%package services
Summary: services components for the gamemode package.
Group: Systemd services
Requires: systemd
%description services
services components for the gamemode package.
%prep
%setup -q -n gamemode-1.8.1
cd %{_builddir}/gamemode-1.8.1
%build
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1716729433
export GCC_IGNORE_WERROR=1
export AR=gcc-ar
export RANLIB=gcc-ranlib
export NM=gcc-nm
CLEAR_INTERMEDIATE_CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS -O3 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FCFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -O3 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -O3 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS -O3 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS"
CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS"
FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS"
FCFLAGS="$CLEAR_INTERMEDIATE_FCFLAGS"
ASFLAGS="$CLEAR_INTERMEDIATE_ASFLAGS"
LDFLAGS="$CLEAR_INTERMEDIATE_LDFLAGS"
export GOAMD64=v2
meson --libdir=lib64 --prefix=/usr --buildtype=plain builddir
ninja -v -C builddir
%install
export GCC_IGNORE_WERROR=1
export AR=gcc-ar
export RANLIB=gcc-ranlib
export NM=gcc-nm
CLEAR_INTERMEDIATE_CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS -O3 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FCFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -O3 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -O3 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS -O3 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS"
CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS"
FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS"
FCFLAGS="$CLEAR_INTERMEDIATE_FCFLAGS"
ASFLAGS="$CLEAR_INTERMEDIATE_ASFLAGS"
LDFLAGS="$CLEAR_INTERMEDIATE_LDFLAGS"
export GOAMD64=v2
GOAMD64=v2
DESTDIR=%{buildroot} ninja -C builddir install
%files
%defattr(-,root,root,-)
%files bin
%defattr(-,root,root,-)
/usr/bin/gamemode-simulate-game
/usr/bin/gamemoded
/usr/bin/gamemodelist
/usr/bin/gamemoderun
%files config
%defattr(-,root,root,-)
/usr/lib/sysusers.d/gamemode.conf
%files data
%defattr(-,root,root,-)
/usr/share/dbus-1/services/com.feralinteractive.GameMode.service
/usr/share/gamemode/gamemode.ini
/usr/share/metainfo/io.github.feralinteractive.gamemode.metainfo.xml
/usr/share/polkit-1/actions/com.feralinteractive.GameMode.policy
/usr/share/polkit-1/rules.d/gamemode.rules
%files dev
%defattr(-,root,root,-)
/usr/include/gamemode_client.h
/usr/lib64/libgamemode.so
/usr/lib64/libgamemodeauto.so
/usr/lib64/pkgconfig/gamemode.pc
/usr/lib64/pkgconfig/libgamemodeauto.pc
%files lib
%defattr(-,root,root,-)
/usr/lib64/libgamemode.so.0
/usr/lib64/libgamemode.so.0.0.0
/usr/lib64/libgamemodeauto.so.0
/usr/lib64/libgamemodeauto.so.0.0.0
%files libexec
%defattr(-,root,root,-)
/usr/libexec/cpucorectl
/usr/libexec/cpugovctl
/usr/libexec/gpuclockctl
/usr/libexec/procsysctl
%files man
%defattr(0644,root,root,0755)
/usr/share/man/man1/gamemode-simulate-game.1
/usr/share/man/man1/gamemodelist.1
/usr/share/man/man1/gamemoderun.1
/usr/share/man/man8/gamemoded.8
%files services
%defattr(-,root,root,-)
/usr/lib/systemd/user/gamemoded.service