]>
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 |
d8fec0f6 JB |
12 | Version: 0.5.4 |
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 |
d8fec0f6 | 17 | # Source0-md5: 04f88b85c15e02b4bd11cb9c2706707f |
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 | |
7d160cbf | 31 | BuildRequires: intltool |
d8fec0f6 | 32 | BuildRequires: libfuse-devel |
ab895ea9 | 33 | BuildRequires: libpng-devel |
d8fec0f6 | 34 | BuildRequires: librsvg-devel >= 1:2.14.0 |
731af772 | 35 | BuildRequires: libtool |
d8fec0f6 | 36 | BuildRequires: libxcb-devel |
b2cfea02 | 37 | BuildRequires: pkgconfig |
731af772 JB |
38 | BuildRequires: startup-notification-devel >= 0.7 |
39 | BuildRequires: xorg-lib-libSM-devel | |
40 | BuildRequires: xorg-lib-libXcomposite-devel | |
41 | BuildRequires: xorg-lib-libXdamage-devel | |
fe9f8047 | 42 | BuildRequires: xorg-lib-libXinerama-devel |
731af772 | 43 | BuildRequires: xorg-lib-libXrandr-devel |
a5797d6a | 44 | BuildRequires: xorg-lib-libXres-devel |
fe9f8047 JB |
45 | %if %{with gtk} |
46 | BuildRequires: gtk+2-devel >= 2:2.8.0 | |
d8fec0f6 | 47 | BuildRequires: libwnck-devel >= 2.18.1 |
fe9f8047 | 48 | BuildRequires: pango-devel >= 1.10.0 |
d8fec0f6 | 49 | BuildRequires: xorg-lib-libXrender-devel >= 0.9.3 |
ab895ea9 | 50 | %if %{with gnome} |
731af772 JB |
51 | BuildRequires: control-center-devel >= 2.0 |
52 | BuildRequires: gnome-desktop-devel >= 2.0 | |
a5797d6a | 53 | BuildRequires: gnome-menus-devel |
fe9f8047 JB |
54 | %endif |
55 | %if %{with metacity} | |
d8fec0f6 | 56 | BuildRequires: metacity-devel >= 2.17.0 |
fe9f8047 | 57 | %endif |
ab895ea9 | 58 | %endif |
59 | %if %{with kde} | |
0676c3dc JB |
60 | BuildRequires: dbus-qt-devel |
61 | BuildRequires: kdelibs-devel | |
13c75255 | 62 | BuildRequires: kdebase-devel |
3deffc7a | 63 | BuildRequires: qt-devel >= 1:3.0 |
ab895ea9 | 64 | %endif |
d8fec0f6 | 65 | Requires: %{name}-libs = %{version}-%{release} |
8070223d | 66 | Obsoletes: beryl-core |
d8fec0f6 JB |
67 | Obsoletes: compiz-opacity |
68 | Conflicts: xorg-xserver-xgl < 0.0.20060505 | |
29c69110 | 69 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
70 | ||
71 | %description | |
12a6c4d1 | 72 | Compiz is a compositing window manager that uses 3D graphics |
73 | acceleration via OpenGL. It provides various new graphical effects | |
74 | and features on any desktop environment, including Gnome and KDE. | |
29c69110 | 75 | |
72931e8e | 76 | %description -l pl.UTF-8 |
12a6c4d1 | 77 | Compiz jest menedżerem okien obsługującym składanie, który używa |
78 | akceleracji grafiki 3D przez OpenGL-a. Umożliwia on uzyskanie nowych | |
79 | efektów graficznych i możliwości w dowolnym środowisku, nie | |
80 | wyłączając Gnome i KDE. | |
19a8ce89 | 81 | |
dd50dedb | 82 | %package libs |
83 | Summary: Compiz libraries | |
84 | Summary(pl.UTF-8): Biblioteki compiza | |
85 | Group: X11/Applications | |
d8fec0f6 | 86 | Conflicts: compiz < 0.5.2-2 |
dd50dedb | 87 | |
88 | %description libs | |
89 | Compiz libraries. | |
90 | ||
91 | %description libs -l pl.UTF-8 | |
92 | Biblioteki Compiza. | |
93 | ||
21b9df37 | 94 | %package devel |
95 | Summary: Header files for compiz | |
5e30f66d | 96 | Summary(pl.UTF-8): Pliki nagłówkowe dla compiza |
fe9f8047 | 97 | Group: X11/Development/Libraries |
dd50dedb | 98 | Requires: %{name}-libs = %{version}-%{release} |
731af772 JB |
99 | # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel) |
100 | Requires: OpenGL-devel | |
101 | Requires: libpng-devel | |
102 | Requires: startup-notification-devel >= 0.7 | |
103 | Requires: xorg-lib-libSM-devel | |
104 | Requires: xorg-lib-libXcomposite-devel | |
105 | Requires: xorg-lib-libXdamage-devel | |
fe9f8047 | 106 | Requires: xorg-lib-libXinerama-devel |
731af772 | 107 | Requires: xorg-lib-libXrandr-devel |
8070223d | 108 | Obsoletes: beryl-core-devel |
21b9df37 | 109 | |
110 | %description devel | |
111 | Header files for compiz. | |
112 | ||
72931e8e JR |
113 | %description devel -l pl.UTF-8 |
114 | Pliki nagłówkowe dla compiza. | |
21b9df37 | 115 | |
d8fec0f6 JB |
116 | %package fuse |
117 | Summary: FUSE plugin for Compiz | |
118 | Summary(pl.UTF-8): Wtyczka FUSE dla Compiza | |
119 | Group: X11/Applications | |
120 | Requires: %{name} = %{version}-%{release} | |
121 | ||
122 | %description fuse | |
123 | FUSE plugin for Compiz (userspace file system). | |
124 | ||
125 | %description fuse -l pl.UTF-8 | |
126 | Wtyczka FUSE dla Compiza (system plików w przestrzeni użytkownika). | |
127 | ||
fe9f8047 JB |
128 | %package gconf |
129 | Summary: GConf plugin for Compiz | |
5e30f66d | 130 | Summary(pl.UTF-8): Wtyczka GConf dla Compiza |
fe9f8047 | 131 | Group: X11/Applications |
7e55e8c0 | 132 | Requires(post,preun): GConf2 |
fe9f8047 | 133 | Requires: %{name} = %{version}-%{release} |
8070223d | 134 | Obsoletes: beryl-core-gconf |
fe9f8047 JB |
135 | |
136 | %description gconf | |
d8fec0f6 | 137 | GConf plugin for Compiz (GConf control backend). |
fe9f8047 | 138 | |
72931e8e | 139 | %description gconf -l pl.UTF-8 |
d8fec0f6 | 140 | Wtyczka GConf dla Compiza (backend sterujący oparty na GConfie). |
fe9f8047 | 141 | |
ab895ea9 | 142 | %package gnome-settings |
fe9f8047 | 143 | Summary: Compiz settings for GNOME control panel |
5e30f66d | 144 | Summary(pl.UTF-8): Ustawienia compiza dla panelu sterowania GNOME |
fe9f8047 | 145 | Group: X11/Applications |
ab895ea9 | 146 | Requires: %{name} = %{version}-%{release} |
147 | ||
148 | %description gnome-settings | |
fe9f8047 | 149 | Compiz settings for GNOME control panel. |
ab895ea9 | 150 | |
72931e8e | 151 | %description gnome-settings -l pl.UTF-8 |
fe9f8047 | 152 | Ustawienia compiza dla panelu sterowania GNOME. |
ab895ea9 | 153 | |
fe9f8047 JB |
154 | %package gtk-decorator |
155 | Summary: Window decorator for GTK+ | |
5e30f66d | 156 | Summary(pl.UTF-8): Dekorator okien dla GTK+ |
fe9f8047 | 157 | Group: X11/Applications |
0676c3dc | 158 | %if %{with gconf} |
7e55e8c0 | 159 | Requires(post,preun): GConf2 |
0676c3dc | 160 | %endif |
ab895ea9 | 161 | Requires: %{name} = %{version}-%{release} |
fe9f8047 | 162 | Obsoletes: compiz-gnome-decorator |
ab895ea9 | 163 | |
fe9f8047 JB |
164 | %description gtk-decorator |
165 | Window decorator for GTK+. | |
ab895ea9 | 166 | |
72931e8e | 167 | %description gtk-decorator -l pl.UTF-8 |
fe9f8047 | 168 | Dekorator okien dla GTK+. |
ab895ea9 | 169 | |
170 | %package kde-decorator | |
171 | Summary: Window decorator for KDE | |
5e30f66d | 172 | Summary(pl.UTF-8): Dekorator okien dla KDE |
fe9f8047 | 173 | Group: X11/Applications |
ab895ea9 | 174 | Requires: %{name} = %{version}-%{release} |
175 | ||
176 | %description kde-decorator | |
177 | Window decorator for KDE. | |
178 | ||
72931e8e | 179 | %description kde-decorator -l pl.UTF-8 |
ab895ea9 | 180 | Dekorator okien dla KDE. |
181 | ||
29c69110 | 182 | %prep |
fe9f8047 | 183 | %setup -q |
e21b831c | 184 | %patch0 -p1 |
29c69110 | 185 | |
186 | %build | |
af0dc2ff | 187 | %{__intltoolize} |
fe9f8047 JB |
188 | %{__libtoolize} |
189 | %{__aclocal} | |
190 | %{__autoconf} | |
191 | %{__autoheader} | |
192 | %{__automake} | |
13c75255 | 193 | QTLIB=%{_libdir}; export QTLIB |
29c69110 | 194 | %configure \ |
731af772 | 195 | --disable-static \ |
fe9f8047 | 196 | --enable-librsvg \ |
731af772 | 197 | %{!?with_gconf:--disable-gconf} \ |
fe9f8047 JB |
198 | %{!?with_gnome:--disable-gnome} \ |
199 | %{!?with_gtk:--disable-gtk} \ | |
0676c3dc JB |
200 | %{!?with_kde:--disable-kde} \ |
201 | %{!?with_metacity:--disable-metacity} | |
29c69110 | 202 | |
203 | %{__make} | |
204 | ||
205 | %install | |
206 | rm -rf $RPM_BUILD_ROOT | |
207 | ||
731af772 | 208 | %{__make} install \ |
413e24bf | 209 | desktopfilesdir=%{_datadir}/wm-properties \ |
731af772 JB |
210 | DESTDIR=$RPM_BUILD_ROOT |
211 | ||
212 | rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la | |
29c69110 | 213 | |
75791cac | 214 | %find_lang %{name} |
215 | ||
29c69110 | 216 | %clean |
217 | rm -rf $RPM_BUILD_ROOT | |
218 | ||
981c57d4 JB |
219 | %post libs -p /sbin/ldconfig |
220 | %postun libs -p /sbin/ldconfig | |
0676c3dc | 221 | |
fe9f8047 | 222 | %post gconf |
12a6c4d1 | 223 | %gconf_schema_install |
0bd1b382 | 224 | |
fe9f8047 | 225 | %preun gconf |
12a6c4d1 | 226 | %gconf_schema_uninstall |
0bd1b382 | 227 | |
e21b831c | 228 | %if %{with gconf} |
d63e78c5 JB |
229 | %post gtk-decorator |
230 | %gconf_schema_install gwd.schemas | |
231 | ||
232 | %preun gtk-decorator | |
233 | %gconf_schema_uninstall gwd.schemas | |
0676c3dc | 234 | %endif |
d63e78c5 | 235 | |
75791cac | 236 | %files -f %{name}.lang |
29c69110 | 237 | %defattr(644,root,root,755) |
fe9f8047 | 238 | %doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO |
ab895ea9 | 239 | %attr(755,root,root) %{_bindir}/compiz |
29c69110 | 240 | %attr(755,root,root) %{_libdir}/compiz/*.so |
d8fec0f6 | 241 | %exclude %{_libdir}/compiz/libfs.so |
fe9f8047 | 242 | %{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so} |
29c69110 | 243 | %{_datadir}/compiz |
12a6c4d1 | 244 | %{?with_gconf:%exclude %{_datadir}/compiz/gconf.xml} |
29c69110 | 245 | |
dd50dedb | 246 | %files libs |
247 | %defattr(644,root,root,755) | |
248 | %attr(755,root,root) %{_libdir}/libdecoration.so.*.*.* | |
8d5e4a77 | 249 | %dir %{_libdir}/compiz |
dd50dedb | 250 | |
21b9df37 | 251 | %files devel |
252 | %defattr(644,root,root,755) | |
0676c3dc JB |
253 | %attr(755,root,root) %{_libdir}/libdecoration.so |
254 | %{_libdir}/libdecoration.la | |
21b9df37 | 255 | %{_includedir}/compiz |
e21b831c JB |
256 | %{_pkgconfigdir}/compiz.pc |
257 | %{_pkgconfigdir}/libdecoration.pc | |
258 | # what is the purpose of these files? development or runtime? | |
259 | %{_pkgconfigdir}/compiz-cube.pc | |
260 | %{_pkgconfigdir}/compiz-scale.pc | |
ab895ea9 | 261 | |
d8fec0f6 JB |
262 | %files fuse |
263 | %defattr(644,root,root,755) | |
264 | %attr(755,root,root) %{_libdir}/compiz/libfs.so | |
265 | ||
fe9f8047 JB |
266 | %if %{with gconf} |
267 | %files gconf | |
268 | %defattr(644,root,root,755) | |
269 | %attr(755,root,root) %{_libdir}/compiz/libgconf.so | |
12a6c4d1 | 270 | %{_sysconfdir}/gconf/schemas/compiz-*.schemas |
271 | %{_datadir}/compiz/gconf.xml | |
e21b831c JB |
272 | # what for? |
273 | %{_pkgconfigdir}/compiz-gconf.pc | |
fe9f8047 JB |
274 | %endif |
275 | ||
ab895ea9 | 276 | %if %{with gnome} |
277 | %files gnome-settings | |
278 | %defattr(644,root,root,755) | |
d8fec0f6 | 279 | %attr(755,root,root) %{_libdir}/window-manager-settings/libcompiz.so |
fe9f8047 | 280 | %endif |
ab895ea9 | 281 | |
fe9f8047 JB |
282 | %if %{with gtk} |
283 | %files gtk-decorator | |
ab895ea9 | 284 | %defattr(644,root,root,755) |
fe9f8047 | 285 | %attr(755,root,root) %{_bindir}/gtk-window-decorator |
0676c3dc | 286 | %if %{with gconf} |
d63e78c5 | 287 | %{_sysconfdir}/gconf/schemas/gwd.schemas |
ab895ea9 | 288 | %endif |
0676c3dc | 289 | %endif |
ab895ea9 | 290 | |
291 | %if %{with kde} | |
292 | %files kde-decorator | |
293 | %defattr(644,root,root,755) | |
294 | %attr(755,root,root) %{_bindir}/kde-window-decorator | |
295 | %endif |