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.bz2
17 # Source0-md5: 7a35a9f52155b945aa195f826d3d607a
18 Source1: %{name}-pld.png
19 # Source1-md5: 3050dc90fd4e5e990bb5baeb82bd3c8a
20 Patch0: %{name}-DESTDIR.patch
21 URL: http://xorg.freedesktop.org/
22 %if %{with gconf} || %{with gtk}
23 BuildRequires: GConf2-devel >= 2.0
25 BuildRequires: Mesa-libGL-devel >= 6.5-1.20060411.2
26 BuildRequires: autoconf >= 2.57
27 BuildRequires: automake
28 BuildRequires: cairo-devel >= 1.0
29 BuildRequires: dbus-devel >= 0.35
30 BuildRequires: glib2-devel >= 2.0
32 BuildRequires: glibc-devel >= 6:2.4
33 BuildRequires: glitz-devel
34 BuildRequires: intltool
35 BuildRequires: libpng-devel
36 BuildRequires: librsvg-devel >= 2.14.0
37 BuildRequires: libtool
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
47 BuildRequires: gtk+2-devel >= 2:2.8.0
48 BuildRequires: libwnck-devel >= 2.14.1-2
49 BuildRequires: pango-devel >= 1.10.0
50 BuildRequires: xorg-lib-libXrender-devel >= 0.8.4
52 BuildRequires: control-center-devel >= 2.0
53 BuildRequires: gnome-desktop-devel >= 2.0
54 BuildRequires: gnome-menus-devel
57 BuildRequires: metacity-devel >= 2.15.21
61 BuildRequires: dbus-qt-devel
62 BuildRequires: kdelibs-devel
63 BuildRequires: kdebase-devel
64 BuildRequires: qt-devel >= 1:3.0
66 Requires(post,preun): GConf2
67 Conflicts: xorg-xserver-xgl < 0.0.20060505
68 Obsoletes: compiz-opacity
69 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72 Compiz is an OpenGL compositing manager that use
73 GLX_EXT_texture_from_pixmap for binding redirected top-level windows
74 to texture objects. It has a flexible plug-in system and it is
75 designed to run well on most graphics hardware.
77 %description -l pl.UTF-8
78 Compiz jest OpenGL-owym zarządcą składania, używającym rozszerzenia
79 GLX_EXT_texture_from_pixmap w celu wiązania przekierowanych okien do
80 tekstur. Posiada elastyczny system wtyczek i jest tak zaprojektowany,
81 by dobrze działać na większości kart graficznych.
84 Summary: Header files for compiz
85 Summary(pl.UTF-8): Pliki nagłówkowe dla compiza
86 Group: X11/Development/Libraries
87 Requires: %{name} = %{version}-%{release}
88 # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
89 Requires: OpenGL-devel
90 Requires: libpng-devel
91 Requires: startup-notification-devel >= 0.7
92 Requires: xorg-lib-libSM-devel
93 Requires: xorg-lib-libXcomposite-devel
94 Requires: xorg-lib-libXdamage-devel
95 Requires: xorg-lib-libXinerama-devel
96 Requires: xorg-lib-libXrandr-devel
99 Header files for compiz.
101 %description devel -l pl.UTF-8
102 Pliki nagłówkowe dla compiza.
105 Summary: GConf plugin for Compiz
106 Summary(pl.UTF-8): Wtyczka GConf dla Compiza
107 Group: X11/Applications
108 Requires: %{name} = %{version}-%{release}
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,postun): 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 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/compiz/pld.png
187 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
192 rm -rf $RPM_BUILD_ROOT
194 %post -p /sbin/ldconfig
195 %postun -p /sbin/ldconfig
198 %gconf_schema_install compiz.schemas
201 %gconf_schema_uninstall compiz.schemas
205 %gconf_schema_install gwd.schemas
208 %gconf_schema_uninstall gwd.schemas
211 %files -f %{name}.lang
212 %defattr(644,root,root,755)
213 %doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO
214 %attr(755,root,root) %{_bindir}/compiz
215 %attr(755,root,root) %{_libdir}/libdecoration.so.*.*.*
216 %dir %{_libdir}/compiz
217 %attr(755,root,root) %{_libdir}/compiz/*.so
218 %{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so}
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_libdir}/libdecoration.so
224 %{_libdir}/libdecoration.la
225 %{_includedir}/compiz
226 %{_pkgconfigdir}/compiz.pc
227 %{_pkgconfigdir}/libdecoration.pc
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_libdir}/compiz/libgconf.so
233 %{_sysconfdir}/gconf/schemas/compiz.schemas
237 %files gnome-settings
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_libdir}/window-manager-settings/*.so
240 %{_datadir}/wm-properties/compiz.desktop
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_bindir}/gtk-window-decorator
248 %{_sysconfdir}/gconf/schemas/gwd.schemas
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_bindir}/kde-window-decorator