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