]> git.pld-linux.org Git - packages/compiz.git/blob - compiz.spec
- Obsoletes for removed subpackage
[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:        1
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://xorg.freedesktop.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:       startup-notification-devel >= 0.7
106 Requires:       xorg-lib-libSM-devel
107 Requires:       xorg-lib-libXcomposite-devel
108 Requires:       xorg-lib-libXdamage-devel
109 Requires:       xorg-lib-libXinerama-devel
110 Requires:       xorg-lib-libXrandr-devel
111 Obsoletes:      beryl-core-devel
112
113 %description devel
114 Header files for compiz.
115
116 %description devel -l pl.UTF-8
117 Pliki nagłówkowe dla compiza.
118
119 %package fuse
120 Summary:        FUSE plugin for Compiz
121 Summary(pl.UTF-8):      Wtyczka FUSE dla Compiza
122 Group:          X11/Applications
123 Requires:       %{name} = %{version}-%{release}
124
125 %description fuse
126 FUSE plugin for Compiz (userspace file system).
127
128 %description fuse -l pl.UTF-8
129 Wtyczka FUSE dla Compiza (system plików w przestrzeni użytkownika).
130
131 %package gconf
132 Summary:        GConf plugin for Compiz
133 Summary(pl.UTF-8):      Wtyczka GConf dla Compiza
134 Group:          X11/Applications
135 Requires(post,preun):   GConf2
136 Requires:       %{name} = %{version}-%{release}
137 Obsoletes:      beryl-core-gconf
138
139 %description gconf
140 GConf plugin for Compiz (GConf control backend).
141
142 %description gconf -l pl.UTF-8
143 Wtyczka GConf dla Compiza (backend sterujący oparty na GConfie).
144
145 %package gnome-settings
146 Summary:        Compiz settings for GNOME control panel
147 Summary(pl.UTF-8):      Ustawienia compiza dla panelu sterowania GNOME
148 Group:          X11/Applications
149 Requires:       %{name} = %{version}-%{release}
150
151 %description gnome-settings
152 Compiz settings for GNOME control panel.
153
154 %description gnome-settings -l pl.UTF-8
155 Ustawienia compiza dla panelu sterowania GNOME.
156
157 %package gtk-decorator
158 Summary:        Window decorator for GTK+
159 Summary(pl.UTF-8):      Dekorator okien dla GTK+
160 Group:          X11/Applications
161 %if %{with gconf}
162 Requires(post,preun):   GConf2
163 %endif
164 Requires:       %{name} = %{version}-%{release}
165 Obsoletes:      compiz-gnome-decorator
166 Obsoletes:      heliodor
167
168 %description gtk-decorator
169 Window decorator for GTK+.
170
171 %description gtk-decorator -l pl.UTF-8
172 Dekorator okien dla GTK+.
173
174 %package kde-decorator
175 Summary:        Window decorator for KDE
176 Summary(pl.UTF-8):      Dekorator okien dla KDE
177 Group:          X11/Applications
178 Requires:       %{name} = %{version}-%{release}
179 Obsoletes:      aquamarine
180
181 %description kde-decorator
182 Window decorator for KDE.
183
184 %description kde-decorator -l pl.UTF-8
185 Dekorator okien dla KDE.
186
187 # for gconf subpackage
188 %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
189
190 %prep
191 %setup -q
192 %patch0 -p1
193
194 %build
195 %{__intltoolize}
196 %{__libtoolize}
197 %{__aclocal}
198 %{__autoconf}
199 %{__autoheader}
200 %{__automake}
201 QTLIB=%{_libdir}; export QTLIB
202 %configure \
203         --disable-static \
204         --enable-librsvg \
205         %{!?with_gconf:--disable-gconf} \
206         %{!?with_gnome:--disable-gnome} \
207         %{!?with_gtk:--disable-gtk} \
208         %{!?with_kde:--disable-kde} \
209         %{!?with_metacity:--disable-metacity}
210
211 %{__make}
212
213 %install
214 rm -rf $RPM_BUILD_ROOT
215
216 %{__make} install \
217         desktopfilesdir=%{_datadir}/wm-properties \
218         DESTDIR=$RPM_BUILD_ROOT
219
220 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
221 %if %{with gnome}
222 rm -f $RPM_BUILD_ROOT%{_libdir}/window-manager-settings/*.la
223 %endif
224
225 %find_lang %{name}
226
227 %clean
228 rm -rf $RPM_BUILD_ROOT
229
230 %post   libs -p /sbin/ldconfig
231 %postun libs -p /sbin/ldconfig
232
233 %post gconf
234 for p in %{plugins}; do
235         %gconf_schema_install compiz-$p.schemas
236 done
237
238 %preun gconf
239 for p in %{plugins}; do
240         %gconf_schema_uninstall compiz-$p.schemas
241 done
242
243 %if %{with gconf}
244 %post gtk-decorator
245 %gconf_schema_install gwd.schemas
246
247 %preun gtk-decorator
248 %gconf_schema_uninstall gwd.schemas
249 %endif
250
251 %files -f %{name}.lang
252 %defattr(644,root,root,755)
253 %doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO
254 %attr(755,root,root) %{_bindir}/compiz
255 %attr(755,root,root) %{_libdir}/compiz/*.so
256 %exclude %{_libdir}/compiz/libfs.so
257 %{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so}
258 %{_datadir}/compiz
259 %exclude %{_datadir}/compiz/fs.xml
260 %exclude %{_datadir}/compiz/gconf.xml
261
262 %files libs
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_libdir}/libdecoration.so.*.*.*
265 %dir %{_libdir}/compiz
266
267 %files devel
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libdir}/libdecoration.so
270 %{_libdir}/libdecoration.la
271 %{_includedir}/compiz
272 %{_pkgconfigdir}/compiz.pc
273 %{_pkgconfigdir}/libdecoration.pc
274 # checked by compiz-fusion-plugins-extra
275 %{_pkgconfigdir}/compiz-cube.pc
276 # checked by compiz-fusion-plugins-main
277 %{_pkgconfigdir}/compiz-scale.pc
278
279 %files fuse
280 %defattr(644,root,root,755)
281 %attr(755,root,root) %{_libdir}/compiz/libfs.so
282 %{_datadir}/compiz/fs.xml
283
284 %if %{with gconf}
285 %files gconf
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_libdir}/compiz/libgconf.so
288 %{_sysconfdir}/gconf/schemas/compiz-*.schemas
289 %{_datadir}/compiz/gconf.xml
290 # checked by compiz-fusion-plugins-* (with non-default --enable-schemas only)
291 %{_pkgconfigdir}/compiz-gconf.pc
292 %endif
293
294 %if %{with gnome} && %{with gtk}
295 %files gnome-settings
296 %defattr(644,root,root,755)
297 %attr(755,root,root) %{_libdir}/window-manager-settings/libcompiz.so
298 %{_datadir}/gnome-control-center/keybindings/50-compiz-desktop-key.xml
299 %{_datadir}/gnome-control-center/keybindings/50-compiz-key.xml
300 %{_datadir}/wm-properties/compiz.desktop
301 %endif
302
303 %if %{with gtk}
304 %files gtk-decorator
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_bindir}/gtk-window-decorator
307 %if %{with gconf}
308 %{_sysconfdir}/gconf/schemas/gwd.schemas
309 %endif
310 %endif
311
312 %if %{with kde}
313 %files kde-decorator
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_bindir}/kde-window-decorator
316 %endif
This page took 0.084604 seconds and 4 git commands to generate.