3 %bcond_without gconf # don't build gconf plugin
4 %bcond_without gnome # don't build gnome-window-decorator
5 %bcond_with kde # build kde-window-decorator (not working)
9 Summary: OpenGL window and compositing manager
10 Summary(pl): OpenGL-owy zarz±dca okien i sk³adania
16 Source0: %{name}-%{_snap}.tar.bz2
17 # Source0-md5: 3807b7f11534f8773a19f80f1031f853
18 Source1: %{name}-pld.png
19 # Source1-md5: 3050dc90fd4e5e990bb5baeb82bd3c8a
20 Patch0: %{name}-minimize-scaler-mod.patch
21 %if %{with gconf} || %{with gnome}
22 BuildRequires: GConf2-devel >= 2.0
24 BuildRequires: Mesa-libGL-devel >= 6.5-1.20060411.2
25 BuildRequires: autoconf >= 2.57
26 BuildRequires: automake
27 BuildRequires: glib2-devel >= 2.0
28 BuildRequires: glitz-devel
29 BuildRequires: libpng-devel
30 BuildRequires: libsvg-cairo-devel
31 BuildRequires: libtool
32 BuildRequires: pkgconfig
33 BuildRequires: startup-notification-devel >= 0.7
34 BuildRequires: xorg-lib-libSM-devel
35 BuildRequires: xorg-lib-libXcomposite-devel
36 BuildRequires: xorg-lib-libXdamage-devel
37 BuildRequires: xorg-lib-libXrandr-devel
38 BuildRequires: xorg-lib-libXres-devel
40 BuildRequires: control-center-devel >= 2.0
41 BuildRequires: gnome-desktop-devel >= 2.0
42 BuildRequires: gnome-menus-devel
43 BuildRequires: gtk+2-devel >= 2:2.8.0
44 BuildRequires: libwnck-devel >= 2.14.1-2
47 BuildRequires: QtCore-devel
48 BuildRequires: QtGui-devel
49 BuildRequires: qt4-build
51 Requires(post,preun): GConf2
52 Conflicts: xorg-xserver-xgl < 0.0.20060505
53 Obsoletes: compiz-opacity
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 Compiz is an OpenGL compositing manager that use
58 GLX_EXT_texture_from_pixmap for binding redirected top-level windows
59 to texture objects. It has a flexible plug-in system and it is
60 designed to run well on most graphics hardware.
63 Compiz jest OpenGL-owym zarz±dc± sk³adania, u¿ywaj±cym rozszerzenia
64 GLX_EXT_texture_from_pixmap w celu wi±zania przekierowanych okien do
65 tekstur. Posiada elastyczny system wtyczek i jest tak zaprojektowany,
66 by dobrze dzia³aæ na wiêkszo¶ci kart graficznych.
69 Summary: Header files for compiz
70 Summary(pl): Pliki nag³ówkowe dla compiza
72 # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
73 Requires: OpenGL-devel
74 Requires: libpng-devel
75 Requires: startup-notification-devel >= 0.7
76 Requires: xorg-lib-libSM-devel
77 Requires: xorg-lib-libXcomposite-devel
78 Requires: xorg-lib-libXdamage-devel
79 Requires: xorg-lib-libXrandr-devel
82 Header files for compiz.
84 %description devel -l pl
85 Pliki nag³ówkowe dla compiza.
87 %package gnome-settings
88 Summary: Compiz settings for gnome control panel
89 Summary(pl): Ustawienia compiza dla panelu sterowania gnome
91 Requires: %{name} = %{version}-%{release}
93 %description gnome-settings
94 Compiz settings for gnome control panel.
96 %description gnome-settings -l pl
97 Ustawienia compiza dla panelu sterowania gnome.
99 %package gnome-decorator
100 Summary: Window decorator for gnome
101 Summary(pl): Dekorator okien dla gnome
103 Requires: %{name} = %{version}-%{release}
105 %description gnome-decorator
106 Window decorator for gnome.
108 %description gnome-decorator -l pl
109 Dekorator okien dla gnome.
111 %package kde-decorator
112 Summary: Window decorator for KDE
113 Summary(pl): Dekorator okien dla KDE
115 Requires: %{name} = %{version}-%{release}
117 %description kde-decorator
118 Window decorator for KDE.
120 %description kde-decorator -l pl
121 Dekorator okien dla KDE.
124 %setup -q -n %{name}-%{_snap}
128 autoreconf -v --install
133 --enable-libsvg-cairo \
134 %{!?with_gconf:--disable-gconf} \
135 --%{?with_gnome:en}%{!?with_gnome:dis}able-gnome \
136 --%{?with_kde:en}%{!?with_kde:dis}able-kde
141 rm -rf $RPM_BUILD_ROOT
144 DESTDIR=$RPM_BUILD_ROOT
146 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/compiz/novell.png
148 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
151 rm -rf $RPM_BUILD_ROOT
154 %gconf_schema_install compiz.schemas
157 %gconf_schema_uninstall compiz.schemas
160 %defattr(644,root,root,755)
161 %doc AUTHORS ChangeLog README TODO
162 %attr(755,root,root) %{_bindir}/compiz
163 %dir %{_libdir}/compiz
164 %attr(755,root,root) %{_libdir}/compiz/*.so
167 %{_datadir}/gnome/wm-properties/*
169 %{_sysconfdir}/gconf/schemas/compiz.schemas
172 %defattr(644,root,root,755)
173 %{_includedir}/compiz
174 %{_pkgconfigdir}/compiz.pc
177 %files gnome-settings
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{_libdir}/window-manager-settings/*.so
181 %files gnome-decorator
182 %defattr(644,root,root,755)
183 %attr(755,root,root) %{_bindir}/gnome-window-decorator
188 %defattr(644,root,root,755)
189 %attr(755,root,root) %{_bindir}/kde-window-decorator