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