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