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
9 Summary: OpenGL window and compositing manager
10 Summary(pl.UTF-8): OpenGL-owy zarządca okien i składania
15 Group: X11/Applications
16 Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz
17 # Source0-md5: 7a38a921359573fb57d53e057f481f08
18 Patch0: %{name}-DESTDIR.patch
19 URL: http://xorg.freedesktop.org/
20 %if %{with gconf} || %{with gtk}
21 BuildRequires: GConf2-devel >= 2.0
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
30 BuildRequires: glibc-devel >= 6:2.4
31 BuildRequires: glitz-devel
32 BuildRequires: intltool
33 BuildRequires: libpng-devel
34 BuildRequires: librsvg-devel >= 2.14.0
35 BuildRequires: libtool
36 BuildRequires: pkgconfig
37 BuildRequires: startup-notification-devel >= 0.7
38 BuildRequires: xorg-lib-libSM-devel
39 BuildRequires: xorg-lib-libXcomposite-devel
40 BuildRequires: xorg-lib-libXdamage-devel
41 BuildRequires: xorg-lib-libXinerama-devel
42 BuildRequires: xorg-lib-libXrandr-devel
43 BuildRequires: xorg-lib-libXres-devel
45 BuildRequires: gtk+2-devel >= 2:2.8.0
46 BuildRequires: libwnck-devel >= 2.14.1-2
47 BuildRequires: pango-devel >= 1.10.0
48 BuildRequires: xorg-lib-libXrender-devel >= 0.8.4
50 BuildRequires: control-center-devel >= 2.0
51 BuildRequires: gnome-desktop-devel >= 2.0
52 BuildRequires: gnome-menus-devel
55 BuildRequires: metacity-devel >= 2.15.21
59 BuildRequires: dbus-qt-devel
60 BuildRequires: kdelibs-devel
61 BuildRequires: kdebase-devel
62 BuildRequires: qt-devel >= 1:3.0
64 Conflicts: xorg-xserver-xgl < 0.0.20060505
65 Obsoletes: compiz-opacity
67 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70 Compiz is a compositing window manager that uses 3D graphics
71 acceleration via OpenGL. It provides various new graphical effects
72 and features on any desktop environment, including Gnome and KDE.
74 %description -l pl.UTF-8
75 Compiz jest menedżerem okien obsługującym składanie, który używa
76 akceleracji grafiki 3D przez OpenGL-a. Umożliwia on uzyskanie nowych
77 efektów graficznych i możliwości w dowolnym środowisku, nie
78 wyłączając Gnome i KDE.
81 Summary: Header files for compiz
82 Summary(pl.UTF-8): Pliki nagłówkowe dla compiza
83 Group: X11/Development/Libraries
84 Requires: %{name} = %{version}-%{release}
85 # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
86 Requires: OpenGL-devel
87 Requires: libpng-devel
88 Requires: startup-notification-devel >= 0.7
89 Requires: xorg-lib-libSM-devel
90 Requires: xorg-lib-libXcomposite-devel
91 Requires: xorg-lib-libXdamage-devel
92 Requires: xorg-lib-libXinerama-devel
93 Requires: xorg-lib-libXrandr-devel
94 Obsoletes: beryl-core-devel
97 Header files for compiz.
99 %description devel -l pl.UTF-8
100 Pliki nagłówkowe dla compiza.
103 Summary: GConf plugin for Compiz
104 Summary(pl.UTF-8): Wtyczka GConf dla Compiza
105 Group: X11/Applications
106 Requires(post,preun): GConf2
107 Requires: %{name} = %{version}-%{release}
108 Obsoletes: beryl-core-gconf
111 GConf plugin for Compiz.
113 %description gconf -l pl.UTF-8
114 Wtyczka GConf dla Compiza.
116 %package gnome-settings
117 Summary: Compiz settings for GNOME control panel
118 Summary(pl.UTF-8): Ustawienia compiza dla panelu sterowania GNOME
119 Group: X11/Applications
120 Requires: %{name} = %{version}-%{release}
122 %description gnome-settings
123 Compiz settings for GNOME control panel.
125 %description gnome-settings -l pl.UTF-8
126 Ustawienia compiza dla panelu sterowania GNOME.
128 %package gtk-decorator
129 Summary: Window decorator for GTK+
130 Summary(pl.UTF-8): Dekorator okien dla GTK+
131 Group: X11/Applications
133 Requires(post,preun): GConf2
135 Requires: %{name} = %{version}-%{release}
136 Obsoletes: compiz-gnome-decorator
138 %description gtk-decorator
139 Window decorator for GTK+.
141 %description gtk-decorator -l pl.UTF-8
142 Dekorator okien dla GTK+.
144 %package kde-decorator
145 Summary: Window decorator for KDE
146 Summary(pl.UTF-8): Dekorator okien dla KDE
147 Group: X11/Applications
148 Requires: %{name} = %{version}-%{release}
150 %description kde-decorator
151 Window decorator for KDE.
153 %description kde-decorator -l pl.UTF-8
154 Dekorator okien dla KDE.
166 QTLIB=%{_libdir}; export QTLIB
170 %{!?with_gconf:--disable-gconf} \
171 %{!?with_gnome:--disable-gnome} \
172 %{!?with_gtk:--disable-gtk} \
173 %{!?with_kde:--disable-kde} \
174 %{!?with_metacity:--disable-metacity}
179 rm -rf $RPM_BUILD_ROOT
182 desktopfilesdir=%{_datadir}/wm-properties \
183 DESTDIR=$RPM_BUILD_ROOT
185 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
190 rm -rf $RPM_BUILD_ROOT
192 %post -p /sbin/ldconfig
193 %postun -p /sbin/ldconfig
196 %gconf_schema_install
199 %gconf_schema_uninstall
203 %gconf_schema_install gwd.schemas
206 %gconf_schema_uninstall gwd.schemas
209 %files -f %{name}.lang
210 %defattr(644,root,root,755)
211 %doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO
212 %attr(755,root,root) %{_bindir}/compiz
213 %attr(755,root,root) %{_libdir}/libdecoration.so.*.*.*
214 %dir %{_libdir}/compiz
215 %attr(755,root,root) %{_libdir}/compiz/*.so
216 %{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so}
218 %{?with_gconf:%exclude %{_datadir}/compiz/gconf.xml}
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/libdecoration.so
223 %{_libdir}/libdecoration.la
224 %{_includedir}/compiz
225 %{_pkgconfigdir}/compiz.pc
226 %{_pkgconfigdir}/libdecoration.pc
227 # what is the purpose of these files? development or runtime?
228 %{_pkgconfigdir}/compiz-cube.pc
229 %{_pkgconfigdir}/compiz-scale.pc
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_libdir}/compiz/libgconf.so
235 %{_sysconfdir}/gconf/schemas/compiz-*.schemas
236 %{_datadir}/compiz/gconf.xml
238 %{_pkgconfigdir}/compiz-gconf.pc
242 %files gnome-settings
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_libdir}/window-manager-settings/*.so
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_bindir}/gtk-window-decorator
252 %{_sysconfdir}/gconf/schemas/gwd.schemas
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{_bindir}/kde-window-decorator