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: 87045b62bcf724785105a88641214a2a
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: OpenGL-devel
25 BuildRequires: autoconf >= 2.57
26 BuildRequires: automake
27 BuildRequires: glib2-devel >= 2.0
28 BuildRequires: libpng-devel
29 BuildRequires: libsvg-cairo-devel
30 BuildRequires: libtool
31 BuildRequires: pkgconfig
32 BuildRequires: startup-notification-devel >= 0.7
33 BuildRequires: xorg-lib-libSM-devel
34 BuildRequires: xorg-lib-libXcomposite-devel
35 BuildRequires: xorg-lib-libXdamage-devel
36 BuildRequires: xorg-lib-libXrandr-devel
38 BuildRequires: control-center-devel >= 2.0
39 BuildRequires: gnome-desktop-devel >= 2.0
40 BuildRequires: gtk+2-devel >= 2:2.8.0
41 BuildRequires: libwnck-devel >= 2.0
44 BuildRequires: QtCore-devel
45 BuildRequires: QtGui-devel
46 BuildRequires: qt4-build
48 Requires(post,preun): GConf2
49 Obsoletes: compiz-opacity
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 Compiz is an OpenGL compositing manager that use
54 GLX_EXT_texture_from_pixmap for binding redirected top-level windows
55 to texture objects. It has a flexible plug-in system and it is
56 designed to run well on most graphics hardware.
59 Compiz jest OpenGL-owym zarz±dc± sk³adania, u¿ywaj±cym rozszerzenia
60 GLX_EXT_texture_from_pixmap w celu wi±zania przekierowanych okien do
61 tekstur. Posiada elastyczny system wtyczek i jest tak zaprojektowany,
62 by dobrze dzia³aæ na wiêkszo¶ci kart graficznych.
65 Summary: Header files for compiz
66 Summary(pl): Pliki nag³ówkowe dla compiza
68 # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
69 Requires: OpenGL-devel
70 Requires: libpng-devel
71 Requires: startup-notification-devel >= 0.7
72 Requires: xorg-lib-libSM-devel
73 Requires: xorg-lib-libXcomposite-devel
74 Requires: xorg-lib-libXdamage-devel
75 Requires: xorg-lib-libXrandr-devel
78 Header files for compiz.
80 %description devel -l pl
81 Pliki nag³ówkowe dla compiza.
83 %package gnome-settings
84 Summary: Compiz settings for gnome control panel
85 Summary(pl): Ustawienia compiza dla panelu sterowania gnome
87 Requires: %{name} = %{version}-%{release}
89 %description gnome-settings
90 Compiz settings for gnome control panel.
92 %description gnome-settings -l pl
93 Ustawienia compiza dla panelu sterowania gnome.
95 %package gnome-decorator
96 Summary: Window decorator for gnome
97 Summary(pl): Dekorator okien dla gnome
99 Requires: %{name} = %{version}-%{release}
101 %description gnome-decorator
102 Window decorator for gnome.
104 %description gnome-decorator -l pl
105 Dekorator okien dla gnome.
107 %package kde-decorator
108 Summary: Window decorator for KDE
109 Summary(pl): Dekorator okien dla KDE
111 Requires: %{name} = %{version}-%{release}
113 %description kde-decorator
114 Window decorator for KDE.
116 %description kde-decorator -l pl
117 Dekorator okien dla KDE.
120 %setup -q -n %{name}-%{_snap}
124 autoreconf -v --install
129 --enable-libsvg-cairo \
130 %{!?with_gconf:--disable-gconf} \
131 --%{?with_gnome:en}%{!?with_gnome:dis}able-gnome \
132 --%{?with_kde:en}%{!?with_kde:dis}able-kde
137 rm -rf $RPM_BUILD_ROOT
140 DESTDIR=$RPM_BUILD_ROOT
142 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/compiz/novell.png
144 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
147 rm -rf $RPM_BUILD_ROOT
150 %gconf_schema_install compiz.schemas
153 %gconf_schema_uninstall compiz.schemas
156 %defattr(644,root,root,755)
157 %doc AUTHORS ChangeLog README TODO
158 %attr(755,root,root) %{_bindir}/compiz
159 %dir %{_libdir}/compiz
160 %attr(755,root,root) %{_libdir}/compiz/*.so
163 %{_datadir}/gnome/wm-properties/*
165 %{_sysconfdir}/gconf/schemas/compiz.schemas
168 %defattr(644,root,root,755)
169 %{_includedir}/compiz
170 %{_pkgconfigdir}/compiz.pc
173 %files gnome-settings
174 %defattr(644,root,root,755)
175 %attr(755,root,root) %{_libdir}/window-manager-settings/*.so
177 %files gnome-decorator
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{_bindir}/gnome-window-decorator
184 %defattr(644,root,root,755)
185 %attr(755,root,root) %{_bindir}/kde-window-decorator