]>
Commit | Line | Data |
---|---|---|
19a8ce89 | 1 | # |
ab895ea9 | 2 | # Conditional build: |
fe9f8047 JB |
3 | %bcond_without gconf # gconf plugin |
4 | %bcond_without gtk # gtk window decorator | |
5 | %bcond_without gnome # gnome settings module | |
6 | %bcond_without metacity # metacity theme support | |
95770bdd MB |
7 | %bcond_with kde # kde-window-decorator and kconfig |
8 | %bcond_without kde4 # kde4-window-decorator | |
fc9439b7 | 9 | # |
29c69110 | 10 | Summary: OpenGL window and compositing manager |
5e30f66d | 11 | Summary(pl.UTF-8): OpenGL-owy zarządca okien i składania |
29c69110 | 12 | Name: compiz |
4c23c991 | 13 | # note that even versions are STABLE |
5e9ba821 | 14 | Version: 0.8.4 |
61296203 | 15 | Release: 3 |
388387dc | 16 | License: GPL or MIT |
fe9f8047 | 17 | Group: X11/Applications |
5e9ba821 | 18 | Source0: http://releases.compiz.org/%{version}/%{name}-%{version}.tar.bz2 |
73a77660 | 19 | # Source0-md5: 03fa78ce0c464f3a413b2a3b74f09559 |
550d1fbd | 20 | Patch0: %{name}-kde4.patch |
61296203 MB |
21 | Patch1: %{name}-libpng14.patch |
22 | Patch2: %{name}-kde44-api.patch | |
5e9ba821 | 23 | URL: http://www.compiz.org/ |
fe9f8047 | 24 | %if %{with gconf} || %{with gtk} |
731af772 JB |
25 | BuildRequires: GConf2-devel >= 2.0 |
26 | %endif | |
5e579956 | 27 | BuildRequires: OpenGL-GLU-devel |
dfc74e58 | 28 | BuildRequires: OpenGL-devel >= 2.1 |
731af772 | 29 | BuildRequires: autoconf >= 2.57 |
e0790735 | 30 | BuildRequires: automake >= 1:1.7 |
fe9f8047 | 31 | BuildRequires: cairo-devel >= 1.0 |
e0790735 | 32 | BuildRequires: dbus-glib-devel |
00578b35 | 33 | BuildRequires: gettext-devel |
731af772 | 34 | BuildRequires: glib2-devel >= 2.0 |
0676c3dc JB |
35 | # <sys/inotify.h> |
36 | BuildRequires: glibc-devel >= 6:2.4 | |
13abebaf JB |
37 | BuildRequires: intltool >= 0.23 |
38 | BuildRequires: libfuse-devel >= 2.2 | |
ab895ea9 | 39 | BuildRequires: libpng-devel |
d8fec0f6 | 40 | BuildRequires: librsvg-devel >= 1:2.14.0 |
731af772 | 41 | BuildRequires: libtool |
d8fec0f6 | 42 | BuildRequires: libxcb-devel |
dfc74e58 | 43 | BuildRequires: libxml2-devel |
039ffbc6 | 44 | BuildRequires: libxslt-devel |
e0790735 | 45 | BuildRequires: libxslt-progs |
b2cfea02 | 46 | BuildRequires: pkgconfig |
731af772 JB |
47 | BuildRequires: startup-notification-devel >= 0.7 |
48 | BuildRequires: xorg-lib-libSM-devel | |
49 | BuildRequires: xorg-lib-libXcomposite-devel | |
50 | BuildRequires: xorg-lib-libXdamage-devel | |
fe9f8047 | 51 | BuildRequires: xorg-lib-libXinerama-devel |
731af772 | 52 | BuildRequires: xorg-lib-libXrandr-devel |
95770bdd | 53 | BuildRequires: xorg-lib-libXrender-devel >= 0.9.3 |
dfc74e58 | 54 | BuildRequires: xorg-lib-libXres-devel |
fe9f8047 JB |
55 | %if %{with gtk} |
56 | BuildRequires: gtk+2-devel >= 2:2.8.0 | |
95770bdd | 57 | BuildRequires: libwnck-devel >= 2.20.0 |
ab895ea9 | 58 | %if %{with gnome} |
35378336 | 59 | BuildRequires: gnome-control-center-devel >= 2.0 |
731af772 | 60 | BuildRequires: gnome-desktop-devel >= 2.0 |
a5797d6a | 61 | BuildRequires: gnome-menus-devel |
fe9f8047 JB |
62 | %endif |
63 | %if %{with metacity} | |
95770bdd | 64 | BuildRequires: metacity-devel >= 2.24.0 |
fe9f8047 | 65 | %endif |
ab895ea9 | 66 | %endif |
67 | %if %{with kde} | |
0676c3dc | 68 | BuildRequires: dbus-qt-devel |
13c75255 | 69 | BuildRequires: kdebase-devel |
dfc74e58 | 70 | BuildRequires: kdelibs-devel |
3deffc7a | 71 | BuildRequires: qt-devel >= 1:3.0 |
ab895ea9 | 72 | %endif |
35378336 | 73 | %if %{with kde4} |
49afe5f9 | 74 | BuildRequires: kde4-kdebase-workspace-devel |
dfc74e58 | 75 | BuildRequires: kde4-kdelibs-devel |
76 | BuildRequires: qt4-build | |
35378336 | 77 | %endif |
d8fec0f6 | 78 | Requires: %{name}-libs = %{version}-%{release} |
d8fec0f6 | 79 | Obsoletes: compiz-opacity |
79211e3a | 80 | Conflicts: filesystem < 3.0-20 |
d8fec0f6 | 81 | Conflicts: xorg-xserver-xgl < 0.0.20060505 |
29c69110 | 82 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
83 | ||
dfc74e58 | 84 | # for gconf subpackage |
85 | %define plugins annotate blur clone core cube dbus decoration fade fs gconf glib gnomecompat ini inotify minimize move obs place png regex resize rotate scale screenshot svg switcher video water wobbly zoom | |
86 | ||
29c69110 | 87 | %description |
12a6c4d1 | 88 | Compiz is a compositing window manager that uses 3D graphics |
dfc74e58 | 89 | acceleration via OpenGL. It provides various new graphical effects and |
90 | features on any desktop environment, including Gnome and KDE. | |
29c69110 | 91 | |
72931e8e | 92 | %description -l pl.UTF-8 |
12a6c4d1 | 93 | Compiz jest menedżerem okien obsługującym składanie, który używa |
94 | akceleracji grafiki 3D przez OpenGL-a. Umożliwia on uzyskanie nowych | |
dfc74e58 | 95 | efektów graficznych i możliwości w dowolnym środowisku, nie wyłączając |
96 | Gnome i KDE. | |
19a8ce89 | 97 | |
dd50dedb | 98 | %package libs |
99 | Summary: Compiz libraries | |
100 | Summary(pl.UTF-8): Biblioteki compiza | |
101 | Group: X11/Applications | |
04087905 | 102 | Obsoletes: beryl-core |
d8fec0f6 | 103 | Conflicts: compiz < 0.5.2-2 |
dd50dedb | 104 | |
105 | %description libs | |
106 | Compiz libraries. | |
107 | ||
108 | %description libs -l pl.UTF-8 | |
109 | Biblioteki Compiza. | |
110 | ||
21b9df37 | 111 | %package devel |
112 | Summary: Header files for compiz | |
5e30f66d | 113 | Summary(pl.UTF-8): Pliki nagłówkowe dla compiza |
fe9f8047 | 114 | Group: X11/Development/Libraries |
dd50dedb | 115 | Requires: %{name}-libs = %{version}-%{release} |
731af772 JB |
116 | # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel) |
117 | Requires: OpenGL-devel | |
118 | Requires: libpng-devel | |
a5f53450 | 119 | Requires: libxslt-devel |
731af772 JB |
120 | Requires: startup-notification-devel >= 0.7 |
121 | Requires: xorg-lib-libSM-devel | |
122 | Requires: xorg-lib-libXcomposite-devel | |
123 | Requires: xorg-lib-libXdamage-devel | |
fe9f8047 | 124 | Requires: xorg-lib-libXinerama-devel |
731af772 | 125 | Requires: xorg-lib-libXrandr-devel |
8070223d | 126 | Obsoletes: beryl-core-devel |
21b9df37 | 127 | |
128 | %description devel | |
129 | Header files for compiz. | |
130 | ||
72931e8e JR |
131 | %description devel -l pl.UTF-8 |
132 | Pliki nagłówkowe dla compiza. | |
21b9df37 | 133 | |
d8fec0f6 JB |
134 | %package fuse |
135 | Summary: FUSE plugin for Compiz | |
136 | Summary(pl.UTF-8): Wtyczka FUSE dla Compiza | |
137 | Group: X11/Applications | |
138 | Requires: %{name} = %{version}-%{release} | |
139 | ||
140 | %description fuse | |
141 | FUSE plugin for Compiz (userspace file system). | |
142 | ||
143 | %description fuse -l pl.UTF-8 | |
144 | Wtyczka FUSE dla Compiza (system plików w przestrzeni użytkownika). | |
145 | ||
fe9f8047 JB |
146 | %package gconf |
147 | Summary: GConf plugin for Compiz | |
5e30f66d | 148 | Summary(pl.UTF-8): Wtyczka GConf dla Compiza |
fe9f8047 | 149 | Group: X11/Applications |
7e55e8c0 | 150 | Requires(post,preun): GConf2 |
fe9f8047 | 151 | Requires: %{name} = %{version}-%{release} |
8070223d | 152 | Obsoletes: beryl-core-gconf |
fe9f8047 JB |
153 | |
154 | %description gconf | |
d8fec0f6 | 155 | GConf plugin for Compiz (GConf control backend). |
fe9f8047 | 156 | |
72931e8e | 157 | %description gconf -l pl.UTF-8 |
d8fec0f6 | 158 | Wtyczka GConf dla Compiza (backend sterujący oparty na GConfie). |
fe9f8047 | 159 | |
84eac34d | 160 | %package kconfig |
6a32c325 JB |
161 | Summary: kconfig plugin for Compiz |
162 | Summary(pl.UTF-8): Wtyczka kconfig dla Compiza | |
163 | Group: X11/Applications | |
6a32c325 | 164 | Requires: %{name} = %{version}-%{release} |
6a32c325 | 165 | |
84eac34d | 166 | %description kconfig |
6a32c325 JB |
167 | kconfig plugin for Compiz (KDE control backend). |
168 | ||
169 | %description kconfig -l pl.UTF-8 | |
170 | Wtyczka kconfig dla Compiza (backend sterujący oparty na KDE). | |
171 | ||
5e579956 JB |
172 | %package svg |
173 | Summary: SVG plugin for Compiz | |
174 | Summary(pl.UTF-8): Wtyczka SVG dla Compiza | |
175 | Group: X11/Applications | |
176 | Requires: %{name} = %{version}-%{release} | |
177 | ||
178 | %description svg | |
179 | SVG image loader plugin for Compiz. | |
180 | ||
181 | %description svg -l pl.UTF-8 | |
182 | Wtyczka wczytująca obrazy SVG dla Compiza. | |
183 | ||
ab895ea9 | 184 | %package gnome-settings |
fe9f8047 | 185 | Summary: Compiz settings for GNOME control panel |
5e30f66d | 186 | Summary(pl.UTF-8): Ustawienia compiza dla panelu sterowania GNOME |
fe9f8047 | 187 | Group: X11/Applications |
ab895ea9 | 188 | Requires: %{name} = %{version}-%{release} |
189 | ||
190 | %description gnome-settings | |
fe9f8047 | 191 | Compiz settings for GNOME control panel. |
ab895ea9 | 192 | |
72931e8e | 193 | %description gnome-settings -l pl.UTF-8 |
fe9f8047 | 194 | Ustawienia compiza dla panelu sterowania GNOME. |
ab895ea9 | 195 | |
fe9f8047 JB |
196 | %package gtk-decorator |
197 | Summary: Window decorator for GTK+ | |
5e30f66d | 198 | Summary(pl.UTF-8): Dekorator okien dla GTK+ |
fe9f8047 | 199 | Group: X11/Applications |
0676c3dc | 200 | %if %{with gconf} |
7e55e8c0 | 201 | Requires(post,preun): GConf2 |
0676c3dc | 202 | %endif |
ab895ea9 | 203 | Requires: %{name} = %{version}-%{release} |
fe9f8047 | 204 | Obsoletes: compiz-gnome-decorator |
3fef7821 | 205 | Obsoletes: heliodor |
ab895ea9 | 206 | |
fe9f8047 JB |
207 | %description gtk-decorator |
208 | Window decorator for GTK+. | |
ab895ea9 | 209 | |
72931e8e | 210 | %description gtk-decorator -l pl.UTF-8 |
fe9f8047 | 211 | Dekorator okien dla GTK+. |
ab895ea9 | 212 | |
213 | %package kde-decorator | |
214 | Summary: Window decorator for KDE | |
5e30f66d | 215 | Summary(pl.UTF-8): Dekorator okien dla KDE |
fe9f8047 | 216 | Group: X11/Applications |
ab895ea9 | 217 | Requires: %{name} = %{version}-%{release} |
3fef7821 | 218 | Obsoletes: aquamarine |
ab895ea9 | 219 | |
220 | %description kde-decorator | |
221 | Window decorator for KDE. | |
222 | ||
72931e8e | 223 | %description kde-decorator -l pl.UTF-8 |
ab895ea9 | 224 | Dekorator okien dla KDE. |
225 | ||
35378336 AM |
226 | %package kde4-decorator |
227 | Summary: Window decorator for KDE 4 | |
228 | Summary(pl.UTF-8): Dekorator okien dla KDE 4 | |
229 | Group: X11/Applications | |
230 | Requires: %{name} = %{version}-%{release} | |
231 | Obsoletes: aquamarine | |
232 | ||
233 | %description kde4-decorator | |
234 | Window decorator for KDE 4. | |
235 | ||
236 | %description kde4-decorator -l pl.UTF-8 | |
237 | Dekorator okien dla KDE 4. | |
238 | ||
29c69110 | 239 | %prep |
fe9f8047 | 240 | %setup -q |
550d1fbd | 241 | %patch0 -p0 |
61296203 MB |
242 | %patch1 -p1 |
243 | %patch2 -p1 | |
29c69110 | 244 | |
245 | %build | |
af0dc2ff | 246 | %{__intltoolize} |
fe9f8047 JB |
247 | %{__libtoolize} |
248 | %{__aclocal} | |
249 | %{__autoconf} | |
250 | %{__autoheader} | |
251 | %{__automake} | |
13c75255 | 252 | QTLIB=%{_libdir}; export QTLIB |
611a1e52 | 253 | QTDIR=%{_prefix}; export QTDIR |
29c69110 | 254 | %configure \ |
731af772 | 255 | --disable-static \ |
fe9f8047 | 256 | --enable-librsvg \ |
731af772 | 257 | %{!?with_gconf:--disable-gconf} \ |
fe9f8047 JB |
258 | %{!?with_gnome:--disable-gnome} \ |
259 | %{!?with_gtk:--disable-gtk} \ | |
0676c3dc | 260 | %{!?with_kde:--disable-kde} \ |
35378336 | 261 | %{!?with_kde4:--disable-kde4} \ |
0676c3dc | 262 | %{!?with_metacity:--disable-metacity} |
29c69110 | 263 | |
264 | %{__make} | |
265 | ||
266 | %install | |
267 | rm -rf $RPM_BUILD_ROOT | |
268 | ||
731af772 JB |
269 | %{__make} install \ |
270 | DESTDIR=$RPM_BUILD_ROOT | |
271 | ||
272 | rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la | |
5d851fec JB |
273 | %if %{with gnome} |
274 | rm -f $RPM_BUILD_ROOT%{_libdir}/window-manager-settings/*.la | |
275 | %endif | |
29c69110 | 276 | |
75791cac | 277 | %find_lang %{name} |
278 | ||
29c69110 | 279 | %clean |
280 | rm -rf $RPM_BUILD_ROOT | |
281 | ||
981c57d4 JB |
282 | %post libs -p /sbin/ldconfig |
283 | %postun libs -p /sbin/ldconfig | |
0676c3dc | 284 | |
fe9f8047 | 285 | %post gconf |
6e24eeed MB |
286 | for p in %{plugins}; do |
287 | %gconf_schema_install compiz-$p.schemas | |
288 | done | |
0bd1b382 | 289 | |
fe9f8047 | 290 | %preun gconf |
6e24eeed MB |
291 | for p in %{plugins}; do |
292 | %gconf_schema_uninstall compiz-$p.schemas | |
293 | done | |
0bd1b382 | 294 | |
e21b831c | 295 | %if %{with gconf} |
d63e78c5 JB |
296 | %post gtk-decorator |
297 | %gconf_schema_install gwd.schemas | |
298 | ||
299 | %preun gtk-decorator | |
300 | %gconf_schema_uninstall gwd.schemas | |
0676c3dc | 301 | %endif |
d63e78c5 | 302 | |
75791cac | 303 | %files -f %{name}.lang |
29c69110 | 304 | %defattr(644,root,root,755) |
fe9f8047 | 305 | %doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO |
ab895ea9 | 306 | %attr(755,root,root) %{_bindir}/compiz |
29c69110 | 307 | %attr(755,root,root) %{_libdir}/compiz/*.so |
d8fec0f6 | 308 | %exclude %{_libdir}/compiz/libfs.so |
bed978b6 | 309 | %{?with_kde:%exclude %{_libdir}/compiz/libkconfig.so} |
fe9f8047 | 310 | %{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so} |
5e579956 | 311 | %exclude %{_libdir}/compiz/libsvg.so |
f0fa067c JB |
312 | %{_datadir}/compiz/*.xml |
313 | %{_datadir}/compiz/*.png | |
314 | %{_datadir}/compiz/schemas.xslt | |
5d851fec JB |
315 | %exclude %{_datadir}/compiz/fs.xml |
316 | %exclude %{_datadir}/compiz/gconf.xml | |
5e579956 | 317 | %exclude %{_datadir}/compiz/svg.xml |
29c69110 | 318 | |
dd50dedb | 319 | %files libs |
320 | %defattr(644,root,root,755) | |
321 | %attr(755,root,root) %{_libdir}/libdecoration.so.*.*.* | |
5e579956 | 322 | %attr(755,root,root) %ghost %{_libdir}/libdecoration.so.0 |
8d5e4a77 | 323 | %dir %{_libdir}/compiz |
f0fa067c | 324 | %dir %{_datadir}/compiz |
dd50dedb | 325 | |
21b9df37 | 326 | %files devel |
327 | %defattr(644,root,root,755) | |
0676c3dc JB |
328 | %attr(755,root,root) %{_libdir}/libdecoration.so |
329 | %{_libdir}/libdecoration.la | |
21b9df37 | 330 | %{_includedir}/compiz |
e21b831c JB |
331 | %{_pkgconfigdir}/compiz.pc |
332 | %{_pkgconfigdir}/libdecoration.pc | |
35378336 | 333 | %{?with_kde:%{_pkgconfigdir}/compiz-kconfig.pc} |
75172bc8 | 334 | # checked by compiz-fusion-plugins-extra |
e21b831c | 335 | %{_pkgconfigdir}/compiz-cube.pc |
75172bc8 | 336 | # checked by compiz-fusion-plugins-main |
e21b831c | 337 | %{_pkgconfigdir}/compiz-scale.pc |
ab895ea9 | 338 | |
d8fec0f6 JB |
339 | %files fuse |
340 | %defattr(644,root,root,755) | |
341 | %attr(755,root,root) %{_libdir}/compiz/libfs.so | |
5d851fec | 342 | %{_datadir}/compiz/fs.xml |
d8fec0f6 | 343 | |
fe9f8047 JB |
344 | %if %{with gconf} |
345 | %files gconf | |
346 | %defattr(644,root,root,755) | |
347 | %attr(755,root,root) %{_libdir}/compiz/libgconf.so | |
12a6c4d1 | 348 | %{_sysconfdir}/gconf/schemas/compiz-*.schemas |
349 | %{_datadir}/compiz/gconf.xml | |
ec1c718c | 350 | # checked by compiz-fusion-plugins-* (with non-default --enable-schemas only) |
e21b831c | 351 | %{_pkgconfigdir}/compiz-gconf.pc |
fe9f8047 JB |
352 | %endif |
353 | ||
6a32c325 JB |
354 | %if %{with kde} |
355 | %files kconfig | |
356 | %defattr(644,root,root,755) | |
357 | %attr(755,root,root) %{_libdir}/compiz/libkconfig.so | |
358 | %{_datadir}/config/compizrc | |
359 | %{_datadir}/config.kcfg/*.kcfg | |
a6a713b0 | 360 | %{_datadir}/compiz/kcfg.xslt |
361 | %{_datadir}/compiz/kconfig.xslt | |
6a32c325 JB |
362 | %endif |
363 | ||
5e579956 JB |
364 | %files svg |
365 | %defattr(644,root,root,755) | |
366 | %attr(755,root,root) %{_libdir}/compiz/libsvg.so | |
367 | %{_datadir}/compiz/gconf.xml | |
368 | ||
6e24eeed | 369 | %if %{with gnome} && %{with gtk} |
ab895ea9 | 370 | %files gnome-settings |
371 | %defattr(644,root,root,755) | |
d8fec0f6 | 372 | %attr(755,root,root) %{_libdir}/window-manager-settings/libcompiz.so |
e0790735 MB |
373 | %{_datadir}/gnome-control-center/keybindings/50-compiz-desktop-key.xml |
374 | %{_datadir}/gnome-control-center/keybindings/50-compiz-key.xml | |
95770bdd MB |
375 | %{_datadir}/gnome/wm-properties/compiz-wm.desktop |
376 | %{_desktopdir}/compiz.desktop | |
fe9f8047 | 377 | %endif |
ab895ea9 | 378 | |
fe9f8047 JB |
379 | %if %{with gtk} |
380 | %files gtk-decorator | |
ab895ea9 | 381 | %defattr(644,root,root,755) |
fe9f8047 | 382 | %attr(755,root,root) %{_bindir}/gtk-window-decorator |
0676c3dc | 383 | %if %{with gconf} |
d63e78c5 | 384 | %{_sysconfdir}/gconf/schemas/gwd.schemas |
ab895ea9 | 385 | %endif |
0676c3dc | 386 | %endif |
ab895ea9 | 387 | |
388 | %if %{with kde} | |
389 | %files kde-decorator | |
390 | %defattr(644,root,root,755) | |
391 | %attr(755,root,root) %{_bindir}/kde-window-decorator | |
35378336 AM |
392 | %endif |
393 | ||
394 | %if %{with kde4} | |
395 | %files kde4-decorator | |
396 | %defattr(644,root,root,755) | |
397 | %attr(755,root,root) %{_bindir}/kde4-window-decorator | |
ab895ea9 | 398 | %endif |