]>
Commit | Line | Data |
---|---|---|
86f5e0d7 | 1 | %define major_version 3.8 |
902bacda | 2 | # Minimum GNOME Shell version supported |
2c661f56 | 3 | %define global min_gs_version %{major_version}.3 |
902bacda JR |
4 | |
5 | Summary: Modify and extend GNOME Shell functionality and behavior | |
6 | Name: gnome-shell-extensions | |
2c661f56 | 7 | Version: %{major_version}.3.1 |
a1e4294b | 8 | Release: 1 |
902bacda JR |
9 | Group: X11/Applications |
10 | # The entire source code is GPLv2+ except lib/convenience.js which is BSD | |
11 | License: GPLv2+ and BSD | |
12 | URL: http://live.gnome.org/GnomeShell/Extensions | |
a1e4294b | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-shell-extensions/3.8/%{name}-%{version}.tar.xz |
2c661f56 | 14 | # Source0-md5: 69ea6492fe1c4f1245f1e62a73fe7ec9 |
902bacda | 15 | BuildRequires: gnome-common |
902bacda | 16 | BuildRequires: gnome-desktop-devel |
86f5e0d7 | 17 | BuildRequires: intltool |
902bacda JR |
18 | BuildRequires: libgtop-devel |
19 | Requires: gnome-shell >= %{min_gs_version} | |
902bacda JR |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
86f5e0d7 MB |
22 | %define ext_prefix gnome-shell-extension |
23 | ||
902bacda JR |
24 | %description |
25 | GNOME Shell Extensions is a collection of extensions providing | |
26 | additional and optional functionality to GNOME Shell. | |
27 | ||
28 | Enabled extensions: | |
29 | - alternate-tab | |
30 | - alternative-status-menu | |
31 | - apps-menu | |
32 | - auto-move-windows | |
902bacda | 33 | - drive-menu |
ea8eb261 | 34 | - launch-new-instance |
902bacda JR |
35 | - native-window-placement |
36 | - places-menu | |
37 | - systemMonitor | |
38 | - user-theme | |
ea8eb261 | 39 | - window-list |
902bacda JR |
40 | - windowsNavigator |
41 | - workspace-indicator | |
42 | - xrandr-indicator | |
902bacda JR |
43 | |
44 | %package common | |
45 | Summary: Files common to GNOME Shell Extensions | |
46 | License: GPL v2+ | |
47 | Group: X11/Applications | |
48 | Requires: gnome-shell >= %{min_gs_version} | |
2c661f56 | 49 | Obsoletes: gnome-shell-extension-default-min-max < 3.8.3.1 |
86f5e0d7 MB |
50 | Obsoletes: gnome-shell-extension-dock < 3.8.0 |
51 | Obsoletes: gnome-shell-extension-gajim < 3.8.0 | |
2c661f56 | 52 | Obsoletes: gnome-shell-extension-static-workspaces < 3.8.3.1 |
902bacda | 53 | |
86f5e0d7 | 54 | %description common |
902bacda JR |
55 | GNOME Shell Extensions is a collection of extensions providing |
56 | additional and optional functionality to GNOME Shell. Common files and | |
57 | directories needed by extensions are provided here. | |
58 | ||
86f5e0d7 MB |
59 | %package -n gnome-classic-session |
60 | Summary: GNOME "classic" mode session | |
61 | License: GPL v2+ | |
62 | Group: X11/Applications | |
2c661f56 | 63 | Requires(post,postun): glib2 >= 1:2.26.0 |
86f5e0d7 MB |
64 | Requires: %{ext_prefix}-alternate-tab = %{version}-%{release} |
65 | Requires: %{ext_prefix}-apps-menu = %{version}-%{release} | |
86f5e0d7 MB |
66 | Requires: %{ext_prefix}-launch-new-instance = %{version}-%{release} |
67 | Requires: %{ext_prefix}-places-menu = %{version}-%{release} | |
86f5e0d7 MB |
68 | Requires: %{ext_prefix}-window-list = %{version}-%{release} |
69 | Requires: gnome-session >= 1:3.8.0 | |
70 | ||
71 | %description -n gnome-classic-session | |
72 | This package contains the required components for the GNOME Shell | |
73 | "classic" mode, which aims to provide a GNOME 2-like user interface. | |
74 | ||
75 | %package -n %{ext_prefix}-alternate-tab | |
902bacda JR |
76 | Summary: Classic Alt+Tab behavior. Window based instead of app based |
77 | License: GPL v2+ | |
78 | Group: X11/Applications | |
86f5e0d7 | 79 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 80 | |
86f5e0d7 | 81 | %description -n %{ext_prefix}-alternate-tab |
902bacda JR |
82 | Lets you use classic Alt+Tab (window-based instead of app-based) in |
83 | GNOME Shell. GNOME Shell groups multiple instances of the same | |
84 | application together. This extension disables grouping. | |
85 | ||
86f5e0d7 | 86 | %package -n %{ext_prefix}-alternative-status-menu |
902bacda JR |
87 | Summary: For those who want a power off item visible at all the time |
88 | License: GPL v2+ | |
89 | Group: X11/Applications | |
86f5e0d7 | 90 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 91 | |
86f5e0d7 | 92 | %description -n %{ext_prefix}-alternative-status-menu |
902bacda JR |
93 | For those who want a power off item visible at all the time, replaces |
94 | GNOME Shell status menu with one featuring separate Suspend and Power | |
95 | Off. Adds the ability to hibernate as well. | |
96 | ||
86f5e0d7 | 97 | %package -n %{ext_prefix}-apps-menu |
902bacda JR |
98 | Summary: Application menu for GNOME Shell |
99 | License: GPL v2+ | |
100 | Group: X11/Applications | |
86f5e0d7 | 101 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 102 | |
86f5e0d7 | 103 | %description -n %{ext_prefix}-apps-menu |
902bacda JR |
104 | Add a GNOME 2.x style menu for applications. |
105 | ||
86f5e0d7 | 106 | %package -n %{ext_prefix}-auto-move-windows |
902bacda JR |
107 | Summary: Assign specific workspaces to applications |
108 | License: GPL v2+ | |
109 | Group: X11/Applications | |
86f5e0d7 | 110 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 111 | |
86f5e0d7 | 112 | %description -n %{ext_prefix}-auto-move-windows |
902bacda JR |
113 | Lets you manage your workspaces more easily, assigning a specific |
114 | workspace to each application as soon as it creates a window, in a | |
115 | manner configurable with a GSettings key. | |
116 | ||
86f5e0d7 | 117 | %package -n %{ext_prefix}-drive-menu |
902bacda JR |
118 | Summary: Disk device manager in the system status area |
119 | License: GPL v2+ | |
120 | Group: X11/Applications | |
86f5e0d7 | 121 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 122 | |
86f5e0d7 | 123 | %description -n %{ext_prefix}-drive-menu |
902bacda JR |
124 | Adds a menu in the system status area that tracks removable disk |
125 | devices attached and offers to browse them and eject/unmount them. | |
126 | ||
86f5e0d7 MB |
127 | %package -n %{ext_prefix}-launch-new-instance |
128 | Summary: Always launch a new application instance for GNOME Shell | |
902bacda JR |
129 | License: GPL v2+ |
130 | Group: X11/Applications | |
86f5e0d7 | 131 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 132 | |
86f5e0d7 MB |
133 | %description -n %{ext_prefix}-launch-new-instance |
134 | This GNOME Shell extension modifies the behavior of clicking in the | |
135 | dash and app launcher to always launch a new application instance. | |
902bacda | 136 | |
86f5e0d7 | 137 | %package -n %{ext_prefix}-native-window-placement |
902bacda JR |
138 | Summary: Arrange windows in overview in a more native way |
139 | License: GPL v2+ | |
140 | Group: X11/Applications | |
86f5e0d7 | 141 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 142 | |
86f5e0d7 | 143 | %description -n %{ext_prefix}-native-window-placement |
902bacda JR |
144 | This extension employs an algorithm (taken from KDE) for layouting the |
145 | thumbnails in the overview that more closely reflects the positions | |
146 | and relative sizes of the actual windows, instead of using a fixed | |
147 | grid. | |
148 | ||
86f5e0d7 | 149 | %package -n %{ext_prefix}-places-menu |
902bacda JR |
150 | Summary: Places menu indicator in the system status area |
151 | License: GPL v2+ | |
152 | Group: X11/Applications | |
86f5e0d7 | 153 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 154 | |
86f5e0d7 | 155 | %description -n %{ext_prefix}-places-menu |
902bacda JR |
156 | Adds a menu in the system status area that resembles the Places menu |
157 | from GNOME 2.x | |
158 | ||
86f5e0d7 | 159 | %package -n %{ext_prefix}-systemMonitor |
902bacda JR |
160 | Summary: Monitor your system status |
161 | License: GPL v2+ | |
162 | Group: X11/Applications | |
86f5e0d7 | 163 | Requires: %{name}-common = %{version}-%{release} |
902bacda JR |
164 | Requires: libgtop |
165 | ||
86f5e0d7 | 166 | %description -n %{ext_prefix}-systemMonitor |
902bacda JR |
167 | Monitor your system status |
168 | ||
86f5e0d7 | 169 | %package -n %{ext_prefix}-user-theme |
902bacda JR |
170 | Summary: Lets the user select a custom theme for the shell |
171 | License: GPL v2+ | |
172 | Group: X11/Applications | |
86f5e0d7 | 173 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 174 | |
86f5e0d7 | 175 | %description -n %{ext_prefix}-user-theme |
902bacda JR |
176 | Lets the user select a custom theme for the Gnome shell. It will allow |
177 | you to apply a style from | |
178 | /.themes/[themeName]/gnome-shell/gnome-shell.css | |
179 | ||
86f5e0d7 MB |
180 | %package -n %{ext_prefix}-window-list |
181 | Summary: Display a window list at the bottom of the screen in GNOME Shell | |
182 | License: GPL v2+ | |
183 | Group: X11/Applications | |
184 | Requires: %{name}-common = %{version}-%{release} | |
185 | ||
186 | %description -n %{ext_prefix}-window-list | |
187 | This GNOME Shell extension displays a window list at the bottom of the | |
188 | screen. | |
189 | ||
190 | %package -n %{ext_prefix}-windowsNavigator | |
902bacda JR |
191 | Summary: Keyboard selection of windows and work-spaces in overlay mode |
192 | License: GPL v2+ | |
193 | Group: X11/Applications | |
86f5e0d7 | 194 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 195 | |
86f5e0d7 | 196 | %description -n %{ext_prefix}-windowsNavigator |
902bacda JR |
197 | Allow keyboard selection of windows and work-spaces in overlay mode in |
198 | GNOME Shell. Switch to overview mode (press the windows or alt+f1 key) | |
199 | and press the alt key to show numbers over windows. Press any number | |
200 | to switch to the corresponding window. | |
201 | ||
86f5e0d7 | 202 | %package -n %{ext_prefix}-workspace-indicator |
902bacda JR |
203 | Summary: Workspace Indicator |
204 | License: GPL v2+ | |
205 | Group: X11/Applications | |
86f5e0d7 | 206 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 207 | |
86f5e0d7 | 208 | %description -n %{ext_prefix}-workspace-indicator |
902bacda JR |
209 | Put an indicator on the panel signaling in which workspace you are, |
210 | and give you the possibility of switching to another one. | |
211 | ||
86f5e0d7 | 212 | %package -n %{ext_prefix}-xrandr-indicator |
902bacda JR |
213 | Summary: Monitor status indicator |
214 | License: GPL v2+ | |
215 | Group: X11/Applications | |
86f5e0d7 | 216 | Requires: %{name}-common = %{version}-%{release} |
902bacda | 217 | |
86f5e0d7 | 218 | %description -n %{ext_prefix}-xrandr-indicator |
902bacda JR |
219 | This extension adds a systems status menu for rotating monitors |
220 | (overrides what is currently provided by gnome-settings-daemon. | |
221 | ||
222 | %prep | |
223 | %setup -q | |
86f5e0d7 MB |
224 | |
225 | %build | |
902bacda JR |
226 | %{__glib_gettextize} |
227 | %{__intltoolize} | |
228 | %{__libtoolize} | |
229 | %{__aclocal} | |
230 | %{__autoconf} | |
231 | %{__automake} | |
902bacda | 232 | %configure \ |
86f5e0d7 | 233 | --enable-extensions="all" |
902bacda JR |
234 | |
235 | %{__make} | |
236 | ||
237 | %install | |
238 | rm -rf $RPM_BUILD_ROOT | |
239 | ||
240 | %{__make} install \ | |
241 | DESTDIR=$RPM_BUILD_ROOT | |
242 | ||
86f5e0d7 MB |
243 | # Drop useless example extension |
244 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/example* | |
245 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.example.gschema.xml | |
246 | ||
902bacda JR |
247 | %find_lang %{name} |
248 | ||
249 | %clean | |
250 | rm -rf $RPM_BUILD_ROOT | |
251 | ||
2c661f56 MB |
252 | %post -n gnome-classic-session |
253 | %glib_compile_schemas | |
254 | ||
255 | %postun -n gnome-classic-session | |
256 | %glib_compile_schemas | |
257 | ||
86f5e0d7 | 258 | %post -n %{ext_prefix}-alternative-status-menu |
902bacda JR |
259 | %glib_compile_schemas |
260 | ||
86f5e0d7 | 261 | %postun -n %{ext_prefix}-alternative-status-menu |
902bacda JR |
262 | %glib_compile_schemas |
263 | ||
86f5e0d7 | 264 | %post -n %{ext_prefix}-auto-move-windows |
902bacda JR |
265 | %glib_compile_schemas |
266 | ||
86f5e0d7 | 267 | %postun -n %{ext_prefix}-auto-move-windows |
902bacda JR |
268 | %glib_compile_schemas |
269 | ||
86f5e0d7 | 270 | %post -n %{ext_prefix}-native-window-placement |
902bacda JR |
271 | %glib_compile_schemas |
272 | ||
86f5e0d7 | 273 | %postun -n %{ext_prefix}-native-window-placement |
902bacda JR |
274 | %glib_compile_schemas |
275 | ||
86f5e0d7 | 276 | %post -n %{ext_prefix}-user-theme |
902bacda JR |
277 | %glib_compile_schemas |
278 | ||
86f5e0d7 | 279 | %postun -n %{ext_prefix}-user-theme |
902bacda JR |
280 | %glib_compile_schemas |
281 | ||
86f5e0d7 | 282 | %post -n %{ext_prefix}-window-list |
902bacda JR |
283 | %glib_compile_schemas |
284 | ||
86f5e0d7 | 285 | %postun -n %{ext_prefix}-window-list |
902bacda JR |
286 | %glib_compile_schemas |
287 | ||
288 | %files common -f %{name}.lang | |
289 | %defattr(644,root,root,755) | |
290 | %doc COPYING NEWS README | |
291 | %dir %{_datadir}/gnome-shell/extensions | |
292 | ||
86f5e0d7 MB |
293 | %files -n gnome-classic-session |
294 | %defattr(644,root,root,755) | |
295 | %{_desktopdir}/gnome-shell-classic.desktop | |
2c661f56 | 296 | %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.classic-overrides.gschema.xml |
86f5e0d7 MB |
297 | %{_datadir}/gnome-session/sessions/gnome-classic.session |
298 | %dir %{_datadir}/gnome-shell/modes | |
299 | %{_datadir}/gnome-shell/modes/classic.json | |
300 | %{_datadir}/gnome-shell/theme/*.svg | |
301 | %{_datadir}/gnome-shell/theme/gnome-classic.css | |
302 | %{_datadir}/xsessions/gnome-classic.desktop | |
303 | ||
304 | %files -n %{ext_prefix}-alternate-tab | |
902bacda | 305 | %defattr(644,root,root,755) |
902bacda JR |
306 | %{_datadir}/gnome-shell/extensions/alternate-tab* |
307 | ||
86f5e0d7 | 308 | %files -n %{ext_prefix}-alternative-status-menu |
902bacda JR |
309 | %defattr(644,root,root,755) |
310 | %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.alternative-status-menu.gschema.xml | |
311 | %{_datadir}/gnome-shell/extensions/alternative-status-menu* | |
312 | ||
86f5e0d7 | 313 | %files -n %{ext_prefix}-apps-menu |
902bacda JR |
314 | %defattr(644,root,root,755) |
315 | %{_datadir}/gnome-shell/extensions/apps-menu* | |
316 | ||
86f5e0d7 | 317 | %files -n %{ext_prefix}-auto-move-windows |
902bacda JR |
318 | %defattr(644,root,root,755) |
319 | %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.auto-move-windows.gschema.xml | |
320 | %{_datadir}/gnome-shell/extensions/auto-move-windows* | |
321 | ||
86f5e0d7 | 322 | %files -n %{ext_prefix}-drive-menu |
902bacda JR |
323 | %defattr(644,root,root,755) |
324 | %{_datadir}/gnome-shell/extensions/drive-menu* | |
325 | ||
86f5e0d7 | 326 | %files -n %{ext_prefix}-launch-new-instance |
902bacda | 327 | %defattr(644,root,root,755) |
86f5e0d7 | 328 | %{_datadir}/gnome-shell/extensions/launch-new-instance* |
902bacda | 329 | |
86f5e0d7 | 330 | %files -n %{ext_prefix}-native-window-placement |
902bacda JR |
331 | %defattr(644,root,root,755) |
332 | %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.native-window-placement.gschema.xml | |
333 | %{_datadir}/gnome-shell/extensions/native-window-placement* | |
334 | ||
86f5e0d7 | 335 | %files -n %{ext_prefix}-places-menu |
902bacda JR |
336 | %defattr(644,root,root,755) |
337 | %{_datadir}/gnome-shell/extensions/places-menu* | |
338 | ||
86f5e0d7 | 339 | %files -n %{ext_prefix}-systemMonitor |
902bacda JR |
340 | %defattr(644,root,root,755) |
341 | %{_datadir}/gnome-shell/extensions/systemMonitor* | |
342 | ||
86f5e0d7 | 343 | %files -n %{ext_prefix}-user-theme |
902bacda JR |
344 | %defattr(644,root,root,755) |
345 | %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.user-theme.gschema.xml | |
346 | %{_datadir}/gnome-shell/extensions/user-theme* | |
347 | ||
86f5e0d7 MB |
348 | %files -n %{ext_prefix}-window-list |
349 | %defattr(644,root,root,755) | |
350 | %{_datadir}/gnome-shell/extensions/window-list* | |
351 | %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.window-list.gschema.xml | |
352 | ||
353 | %files -n %{ext_prefix}-windowsNavigator | |
902bacda JR |
354 | %defattr(644,root,root,755) |
355 | %{_datadir}/gnome-shell/extensions/windowsNavigator* | |
356 | ||
86f5e0d7 | 357 | %files -n %{ext_prefix}-workspace-indicator |
902bacda JR |
358 | %defattr(644,root,root,755) |
359 | %{_datadir}/gnome-shell/extensions/workspace-indicator* | |
360 | ||
86f5e0d7 | 361 | %files -n %{ext_prefix}-xrandr-indicator |
902bacda JR |
362 | %defattr(644,root,root,755) |
363 | %{_datadir}/gnome-shell/extensions/xrandr-indicator* |