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