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