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 (currently not working)
7 Summary: OpenGL window and compositing manager
8 Summary(pl): OpenGL-owy zarz±dca okien i sk³adania
14 %define _snap 20060303
15 Source0: %{name}-%{_snap}.tar.bz2
16 # Source0-md5: 41917dac89790d83f9d1d634f2491858
17 Patch0: %{name}-switcher-all-desktops.patch
18 %if %{with gconf} || %{with gnome}
19 BuildRequires: GConf2-devel >= 2.0
21 BuildRequires: OpenGL-devel
22 BuildRequires: autoconf >= 2.57
23 BuildRequires: automake
24 BuildRequires: glib2-devel >= 2.0
25 BuildRequires: libpng-devel
26 BuildRequires: libsvg-cairo-devel
27 BuildRequires: libtool
28 BuildRequires: startup-notification-devel >= 0.7
29 BuildRequires: xorg-lib-libSM-devel
30 BuildRequires: xorg-lib-libXcomposite-devel
31 BuildRequires: xorg-lib-libXdamage-devel
32 BuildRequires: xorg-lib-libXrandr-devel
34 BuildRequires: control-center-devel >= 2.0
35 BuildRequires: gnome-desktop-devel >= 2.0
36 BuildRequires: gtk+2-devel >= 2:2.8.0
37 BuildRequires: libwnck-devel >= 2.0
40 BuildRequires: QtCore-devel
41 BuildRequires: QtGui-devel
42 BuildRequires: qt4-build
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Compiz is an OpenGL compositing manager that use
48 GLX_EXT_texture_from_pixmap for binding redirected top-level
49 windows to texture objects. It has a flexible plug-in system
50 and it is designed to run well on most graphics hardware.
53 Compiz jest OpenGL-owym zarz±dc± sk³adania, u¿ywaj±cym rozszerzenia
54 GLX_EXT_texture_from_pixmap w celu wi±zania przekierowanych okien
55 do tekstur. Posiada elastyczny system wtyczek i jest tak
56 zaprojektowany, by dobrze dzia³aæ na wiêkszo¶ci kart graficznych.
59 Summary: Header files for compiz
60 Summary(pl): Pliki nag³ówkowe dla compiza
62 # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
63 Requires: OpenGL-devel
64 Requires: libpng-devel
65 Requires: startup-notification-devel >= 0.7
66 Requires: xorg-lib-libSM-devel
67 Requires: xorg-lib-libXcomposite-devel
68 Requires: xorg-lib-libXdamage-devel
69 Requires: xorg-lib-libXrandr-devel
72 Header files for compiz.
74 %description devel -l pl
75 Pliki nag³ówkowe dla compiza.
77 %package gnome-settings
78 Summary: Compiz settings for gnome control panel
79 Summary(pl): Ustawienia compiza dla panelu sterowania gnome
81 Requires: %{name} = %{version}-%{release}
83 %description gnome-settings
84 Compiz settings for gnome control panel.
86 %description gnome-settings -l pl
87 Ustawienia compiza dla panelu sterowania gnome.
89 %package gnome-decorator
90 Summary: Window decorator for gnome
91 Summary(pl): Dekorator okien dla gnome
93 Requires: %{name} = %{version}-%{release}
95 %description gnome-decorator
96 Window decorator for gnome.
98 %description gnome-decorator -l pl
99 Dekorator okien dla gnome.
101 %package kde-decorator
102 Summary: Window decorator for KDE
103 Summary(pl): Dekorator okien dla KDE
105 Requires: %{name} = %{version}-%{release}
107 %description kde-decorator
108 Window decorator for KDE.
110 %description kde-decorator -l pl
111 Dekorator okien dla KDE.
114 %setup -q -n %{name}-%{_snap}
118 autoreconf -v --install
123 --enable-libsvg-cairo \
124 %{!?with_gconf:--disable-gconf} \
125 --%{?with_gnome:en}%{!?with_gnome:dis}able-gnome \
126 --%{?with_kde:en}%{!?with_kde:dis}able-kde
131 rm -rf $RPM_BUILD_ROOT
134 DESTDIR=$RPM_BUILD_ROOT
136 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
139 rm -rf $RPM_BUILD_ROOT
142 %defattr(644,root,root,755)
143 %doc AUTHORS ChangeLog README TODO
144 %attr(755,root,root) %{_bindir}/compiz
145 %dir %{_libdir}/compiz
146 %attr(755,root,root) %{_libdir}/compiz/*.so
149 %{_datadir}/gnome/wm-properties/*
153 %defattr(644,root,root,755)
154 %{_includedir}/compiz
155 %{_pkgconfigdir}/compiz.pc
158 %files gnome-settings
159 %defattr(644,root,root,755)
160 %attr(755,root,root) %{_libdir}/window-manager-settings/*.so
162 %files gnome-decorator
163 %defattr(644,root,root,755)
164 %attr(755,root,root) %{_bindir}/gnome-window-decorator
169 %defattr(644,root,root,755)
170 %attr(755,root,root) %{_bindir}/kde-window-decorator