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