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