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