]>
Commit | Line | Data |
---|---|---|
19a8ce89 | 1 | # |
ab895ea9 | 2 | # Conditional build: |
fe9f8047 JB |
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 | |
0676c3dc | 7 | %bcond_without kde # kde-window-decorator |
fc9439b7 | 8 | # |
29c69110 | 9 | Summary: OpenGL window and compositing manager |
5e30f66d | 10 | Summary(pl.UTF-8): OpenGL-owy zarządca okien i składania |
29c69110 | 11 | Name: compiz |
039ffbc6 RT |
12 | Version: 0.6.2 |
13 | Release: 1 | |
388387dc | 14 | License: GPL or MIT |
fe9f8047 | 15 | Group: X11/Applications |
12a6c4d1 | 16 | Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz |
039ffbc6 | 17 | # Source0-md5: 7e6edfdbf0dc46b135313440edae7a53 |
13c75255 | 18 | Patch0: %{name}-DESTDIR.patch |
388387dc | 19 | URL: http://xorg.freedesktop.org/ |
fe9f8047 | 20 | %if %{with gconf} || %{with gtk} |
731af772 JB |
21 | BuildRequires: GConf2-devel >= 2.0 |
22 | %endif | |
ebb3cb87 | 23 | BuildRequires: Mesa-libGL-devel >= 6.5-1.20060411.2 |
731af772 JB |
24 | BuildRequires: autoconf >= 2.57 |
25 | BuildRequires: automake | |
fe9f8047 JB |
26 | BuildRequires: cairo-devel >= 1.0 |
27 | BuildRequires: dbus-devel >= 0.35 | |
731af772 | 28 | BuildRequires: glib2-devel >= 2.0 |
0676c3dc JB |
29 | # <sys/inotify.h> |
30 | BuildRequires: glibc-devel >= 6:2.4 | |
13abebaf JB |
31 | BuildRequires: intltool >= 0.23 |
32 | BuildRequires: libfuse-devel >= 2.2 | |
ab895ea9 | 33 | BuildRequires: libpng-devel |
d8fec0f6 | 34 | BuildRequires: librsvg-devel >= 1:2.14.0 |
731af772 | 35 | BuildRequires: libtool |
d8fec0f6 | 36 | BuildRequires: libxcb-devel |
039ffbc6 | 37 | BuildRequires: libxslt-devel |
b2cfea02 | 38 | BuildRequires: pkgconfig |
731af772 JB |
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 | |
fe9f8047 | 43 | BuildRequires: xorg-lib-libXinerama-devel |
731af772 | 44 | BuildRequires: xorg-lib-libXrandr-devel |
a5797d6a | 45 | BuildRequires: xorg-lib-libXres-devel |
fe9f8047 JB |
46 | %if %{with gtk} |
47 | BuildRequires: gtk+2-devel >= 2:2.8.0 | |
d8fec0f6 | 48 | BuildRequires: libwnck-devel >= 2.18.1 |
fe9f8047 | 49 | BuildRequires: pango-devel >= 1.10.0 |
d8fec0f6 | 50 | BuildRequires: xorg-lib-libXrender-devel >= 0.9.3 |
ab895ea9 | 51 | %if %{with gnome} |
731af772 JB |
52 | BuildRequires: control-center-devel >= 2.0 |
53 | BuildRequires: gnome-desktop-devel >= 2.0 | |
a5797d6a | 54 | BuildRequires: gnome-menus-devel |
fe9f8047 JB |
55 | %endif |
56 | %if %{with metacity} | |
d8fec0f6 | 57 | BuildRequires: metacity-devel >= 2.17.0 |
fe9f8047 | 58 | %endif |
ab895ea9 | 59 | %endif |
60 | %if %{with kde} | |
0676c3dc JB |
61 | BuildRequires: dbus-qt-devel |
62 | BuildRequires: kdelibs-devel | |
13c75255 | 63 | BuildRequires: kdebase-devel |
3deffc7a | 64 | BuildRequires: qt-devel >= 1:3.0 |
ab895ea9 | 65 | %endif |
d8fec0f6 | 66 | Requires: %{name}-libs = %{version}-%{release} |
8070223d | 67 | Obsoletes: beryl-core |
d8fec0f6 JB |
68 | Obsoletes: compiz-opacity |
69 | Conflicts: xorg-xserver-xgl < 0.0.20060505 | |
29c69110 | 70 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
71 | ||
72 | %description | |
12a6c4d1 | 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. | |
29c69110 | 76 | |
72931e8e | 77 | %description -l pl.UTF-8 |
12a6c4d1 | 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. | |
19a8ce89 | 82 | |
dd50dedb | 83 | %package libs |
84 | Summary: Compiz libraries | |
85 | Summary(pl.UTF-8): Biblioteki compiza | |
86 | Group: X11/Applications | |
d8fec0f6 | 87 | Conflicts: compiz < 0.5.2-2 |
dd50dedb | 88 | |
89 | %description libs | |
90 | Compiz libraries. | |
91 | ||
92 | %description libs -l pl.UTF-8 | |
93 | Biblioteki Compiza. | |
94 | ||
21b9df37 | 95 | %package devel |
96 | Summary: Header files for compiz | |
5e30f66d | 97 | Summary(pl.UTF-8): Pliki nagłówkowe dla compiza |
fe9f8047 | 98 | Group: X11/Development/Libraries |
dd50dedb | 99 | Requires: %{name}-libs = %{version}-%{release} |
731af772 JB |
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 | |
fe9f8047 | 107 | Requires: xorg-lib-libXinerama-devel |
731af772 | 108 | Requires: xorg-lib-libXrandr-devel |
8070223d | 109 | Obsoletes: beryl-core-devel |
21b9df37 | 110 | |
111 | %description devel | |
112 | Header files for compiz. | |
113 | ||
72931e8e JR |
114 | %description devel -l pl.UTF-8 |
115 | Pliki nagłówkowe dla compiza. | |
21b9df37 | 116 | |
d8fec0f6 JB |
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 | ||
fe9f8047 JB |
129 | %package gconf |
130 | Summary: GConf plugin for Compiz | |
5e30f66d | 131 | Summary(pl.UTF-8): Wtyczka GConf dla Compiza |
fe9f8047 | 132 | Group: X11/Applications |
7e55e8c0 | 133 | Requires(post,preun): GConf2 |
fe9f8047 | 134 | Requires: %{name} = %{version}-%{release} |
8070223d | 135 | Obsoletes: beryl-core-gconf |
fe9f8047 JB |
136 | |
137 | %description gconf | |
d8fec0f6 | 138 | GConf plugin for Compiz (GConf control backend). |
fe9f8047 | 139 | |
72931e8e | 140 | %description gconf -l pl.UTF-8 |
d8fec0f6 | 141 | Wtyczka GConf dla Compiza (backend sterujący oparty na GConfie). |
fe9f8047 | 142 | |
ab895ea9 | 143 | %package gnome-settings |
fe9f8047 | 144 | Summary: Compiz settings for GNOME control panel |
5e30f66d | 145 | Summary(pl.UTF-8): Ustawienia compiza dla panelu sterowania GNOME |
fe9f8047 | 146 | Group: X11/Applications |
ab895ea9 | 147 | Requires: %{name} = %{version}-%{release} |
148 | ||
149 | %description gnome-settings | |
fe9f8047 | 150 | Compiz settings for GNOME control panel. |
ab895ea9 | 151 | |
72931e8e | 152 | %description gnome-settings -l pl.UTF-8 |
fe9f8047 | 153 | Ustawienia compiza dla panelu sterowania GNOME. |
ab895ea9 | 154 | |
fe9f8047 JB |
155 | %package gtk-decorator |
156 | Summary: Window decorator for GTK+ | |
5e30f66d | 157 | Summary(pl.UTF-8): Dekorator okien dla GTK+ |
fe9f8047 | 158 | Group: X11/Applications |
0676c3dc | 159 | %if %{with gconf} |
7e55e8c0 | 160 | Requires(post,preun): GConf2 |
0676c3dc | 161 | %endif |
ab895ea9 | 162 | Requires: %{name} = %{version}-%{release} |
fe9f8047 | 163 | Obsoletes: compiz-gnome-decorator |
3fef7821 | 164 | Obsoletes: heliodor |
ab895ea9 | 165 | |
fe9f8047 JB |
166 | %description gtk-decorator |
167 | Window decorator for GTK+. | |
ab895ea9 | 168 | |
72931e8e | 169 | %description gtk-decorator -l pl.UTF-8 |
fe9f8047 | 170 | Dekorator okien dla GTK+. |
ab895ea9 | 171 | |
172 | %package kde-decorator | |
173 | Summary: Window decorator for KDE | |
5e30f66d | 174 | Summary(pl.UTF-8): Dekorator okien dla KDE |
fe9f8047 | 175 | Group: X11/Applications |
ab895ea9 | 176 | Requires: %{name} = %{version}-%{release} |
3fef7821 | 177 | Obsoletes: aquamarine |
ab895ea9 | 178 | |
179 | %description kde-decorator | |
180 | Window decorator for KDE. | |
181 | ||
72931e8e | 182 | %description kde-decorator -l pl.UTF-8 |
ab895ea9 | 183 | Dekorator okien dla KDE. |
184 | ||
37c714b0 | 185 | # for gconf subpackage |
6e24eeed MB |
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 | ||
29c69110 | 188 | %prep |
fe9f8047 | 189 | %setup -q |
e21b831c | 190 | %patch0 -p1 |
29c69110 | 191 | |
192 | %build | |
af0dc2ff | 193 | %{__intltoolize} |
fe9f8047 JB |
194 | %{__libtoolize} |
195 | %{__aclocal} | |
196 | %{__autoconf} | |
197 | %{__autoheader} | |
198 | %{__automake} | |
13c75255 | 199 | QTLIB=%{_libdir}; export QTLIB |
29c69110 | 200 | %configure \ |
731af772 | 201 | --disable-static \ |
fe9f8047 | 202 | --enable-librsvg \ |
731af772 | 203 | %{!?with_gconf:--disable-gconf} \ |
fe9f8047 JB |
204 | %{!?with_gnome:--disable-gnome} \ |
205 | %{!?with_gtk:--disable-gtk} \ | |
0676c3dc JB |
206 | %{!?with_kde:--disable-kde} \ |
207 | %{!?with_metacity:--disable-metacity} | |
29c69110 | 208 | |
209 | %{__make} | |
210 | ||
211 | %install | |
212 | rm -rf $RPM_BUILD_ROOT | |
213 | ||
731af772 | 214 | %{__make} install \ |
413e24bf | 215 | desktopfilesdir=%{_datadir}/wm-properties \ |
731af772 JB |
216 | DESTDIR=$RPM_BUILD_ROOT |
217 | ||
218 | rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la | |
5d851fec JB |
219 | %if %{with gnome} |
220 | rm -f $RPM_BUILD_ROOT%{_libdir}/window-manager-settings/*.la | |
221 | %endif | |
29c69110 | 222 | |
75791cac | 223 | %find_lang %{name} |
224 | ||
29c69110 | 225 | %clean |
226 | rm -rf $RPM_BUILD_ROOT | |
227 | ||
981c57d4 JB |
228 | %post libs -p /sbin/ldconfig |
229 | %postun libs -p /sbin/ldconfig | |
0676c3dc | 230 | |
fe9f8047 | 231 | %post gconf |
6e24eeed MB |
232 | for p in %{plugins}; do |
233 | %gconf_schema_install compiz-$p.schemas | |
234 | done | |
0bd1b382 | 235 | |
fe9f8047 | 236 | %preun gconf |
6e24eeed MB |
237 | for p in %{plugins}; do |
238 | %gconf_schema_uninstall compiz-$p.schemas | |
239 | done | |
0bd1b382 | 240 | |
e21b831c | 241 | %if %{with gconf} |
d63e78c5 JB |
242 | %post gtk-decorator |
243 | %gconf_schema_install gwd.schemas | |
244 | ||
245 | %preun gtk-decorator | |
246 | %gconf_schema_uninstall gwd.schemas | |
0676c3dc | 247 | %endif |
d63e78c5 | 248 | |
75791cac | 249 | %files -f %{name}.lang |
29c69110 | 250 | %defattr(644,root,root,755) |
fe9f8047 | 251 | %doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO |
ab895ea9 | 252 | %attr(755,root,root) %{_bindir}/compiz |
29c69110 | 253 | %attr(755,root,root) %{_libdir}/compiz/*.so |
d8fec0f6 | 254 | %exclude %{_libdir}/compiz/libfs.so |
fe9f8047 | 255 | %{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so} |
29c69110 | 256 | %{_datadir}/compiz |
5d851fec JB |
257 | %exclude %{_datadir}/compiz/fs.xml |
258 | %exclude %{_datadir}/compiz/gconf.xml | |
29c69110 | 259 | |
dd50dedb | 260 | %files libs |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/libdecoration.so.*.*.* | |
8d5e4a77 | 263 | %dir %{_libdir}/compiz |
dd50dedb | 264 | |
21b9df37 | 265 | %files devel |
266 | %defattr(644,root,root,755) | |
0676c3dc JB |
267 | %attr(755,root,root) %{_libdir}/libdecoration.so |
268 | %{_libdir}/libdecoration.la | |
21b9df37 | 269 | %{_includedir}/compiz |
e21b831c JB |
270 | %{_pkgconfigdir}/compiz.pc |
271 | %{_pkgconfigdir}/libdecoration.pc | |
75172bc8 | 272 | # checked by compiz-fusion-plugins-extra |
e21b831c | 273 | %{_pkgconfigdir}/compiz-cube.pc |
75172bc8 | 274 | # checked by compiz-fusion-plugins-main |
e21b831c | 275 | %{_pkgconfigdir}/compiz-scale.pc |
ab895ea9 | 276 | |
d8fec0f6 JB |
277 | %files fuse |
278 | %defattr(644,root,root,755) | |
279 | %attr(755,root,root) %{_libdir}/compiz/libfs.so | |
5d851fec | 280 | %{_datadir}/compiz/fs.xml |
d8fec0f6 | 281 | |
fe9f8047 JB |
282 | %if %{with gconf} |
283 | %files gconf | |
284 | %defattr(644,root,root,755) | |
285 | %attr(755,root,root) %{_libdir}/compiz/libgconf.so | |
12a6c4d1 | 286 | %{_sysconfdir}/gconf/schemas/compiz-*.schemas |
287 | %{_datadir}/compiz/gconf.xml | |
ec1c718c | 288 | # checked by compiz-fusion-plugins-* (with non-default --enable-schemas only) |
e21b831c | 289 | %{_pkgconfigdir}/compiz-gconf.pc |
fe9f8047 JB |
290 | %endif |
291 | ||
6e24eeed | 292 | %if %{with gnome} && %{with gtk} |
ab895ea9 | 293 | %files gnome-settings |
294 | %defattr(644,root,root,755) | |
d8fec0f6 | 295 | %attr(755,root,root) %{_libdir}/window-manager-settings/libcompiz.so |
5d851fec | 296 | %{_datadir}/wm-properties/compiz.desktop |
fe9f8047 | 297 | %endif |
ab895ea9 | 298 | |
fe9f8047 JB |
299 | %if %{with gtk} |
300 | %files gtk-decorator | |
ab895ea9 | 301 | %defattr(644,root,root,755) |
fe9f8047 | 302 | %attr(755,root,root) %{_bindir}/gtk-window-decorator |
0676c3dc | 303 | %if %{with gconf} |
d63e78c5 | 304 | %{_sysconfdir}/gconf/schemas/gwd.schemas |
ab895ea9 | 305 | %endif |
0676c3dc | 306 | %endif |
ab895ea9 | 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 |