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