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