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 20060320
15 Source0: %{name}-%{_snap}.tar.bz2
16 # Source0-md5: 0cc0444e3f7c09894597674a61c42abf
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: pkgconfig
29 BuildRequires: startup-notification-devel >= 0.7
30 BuildRequires: xorg-lib-libSM-devel
31 BuildRequires: xorg-lib-libXcomposite-devel
32 BuildRequires: xorg-lib-libXdamage-devel
33 BuildRequires: xorg-lib-libXrandr-devel
35 BuildRequires: control-center-devel >= 2.0
36 BuildRequires: gnome-desktop-devel >= 2.0
37 BuildRequires: gtk+2-devel >= 2:2.8.0
38 BuildRequires: libwnck-devel >= 2.0
41 BuildRequires: QtCore-devel
42 BuildRequires: QtGui-devel
43 BuildRequires: qt4-build
45 Obsoletes: compiz-opacity
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 Compiz is an OpenGL compositing manager that use
50 GLX_EXT_texture_from_pixmap for binding redirected top-level
51 windows to texture objects. It has a flexible plug-in system
52 and it is designed to run well on most graphics hardware.
55 Compiz jest OpenGL-owym zarz±dc± sk³adania, u¿ywaj±cym rozszerzenia
56 GLX_EXT_texture_from_pixmap w celu wi±zania przekierowanych okien
57 do tekstur. Posiada elastyczny system wtyczek i jest tak
58 zaprojektowany, by dobrze dzia³aæ na wiêkszo¶ci kart graficznych.
61 Summary: Header files for compiz
62 Summary(pl): Pliki nag³ówkowe dla compiza
64 # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
65 Requires: OpenGL-devel
66 Requires: libpng-devel
67 Requires: startup-notification-devel >= 0.7
68 Requires: xorg-lib-libSM-devel
69 Requires: xorg-lib-libXcomposite-devel
70 Requires: xorg-lib-libXdamage-devel
71 Requires: xorg-lib-libXrandr-devel
74 Header files for compiz.
76 %description devel -l pl
77 Pliki nag³ówkowe dla compiza.
79 %package gnome-settings
80 Summary: Compiz settings for gnome control panel
81 Summary(pl): Ustawienia compiza dla panelu sterowania gnome
83 Requires: %{name} = %{version}-%{release}
85 %description gnome-settings
86 Compiz settings for gnome control panel.
88 %description gnome-settings -l pl
89 Ustawienia compiza dla panelu sterowania gnome.
91 %package gnome-decorator
92 Summary: Window decorator for gnome
93 Summary(pl): Dekorator okien dla gnome
95 Requires: %{name} = %{version}-%{release}
97 %description gnome-decorator
98 Window decorator for gnome.
100 %description gnome-decorator -l pl
101 Dekorator okien dla gnome.
103 %package kde-decorator
104 Summary: Window decorator for KDE
105 Summary(pl): Dekorator okien dla KDE
107 Requires: %{name} = %{version}-%{release}
109 %description kde-decorator
110 Window decorator for KDE.
112 %description kde-decorator -l pl
113 Dekorator okien dla KDE.
116 %setup -q -n %{name}-%{_snap}
120 autoreconf -v --install
125 --enable-libsvg-cairo \
126 %{!?with_gconf:--disable-gconf} \
127 --%{?with_gnome:en}%{!?with_gnome:dis}able-gnome \
128 --%{?with_kde:en}%{!?with_kde:dis}able-kde
133 rm -rf $RPM_BUILD_ROOT
136 DESTDIR=$RPM_BUILD_ROOT
138 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
141 rm -rf $RPM_BUILD_ROOT
144 %defattr(644,root,root,755)
145 %doc AUTHORS ChangeLog README TODO
146 %attr(755,root,root) %{_bindir}/compiz
147 %dir %{_libdir}/compiz
148 %attr(755,root,root) %{_libdir}/compiz/*.so
151 %{_datadir}/gnome/wm-properties/*
155 %defattr(644,root,root,755)
156 %{_includedir}/compiz
157 %{_pkgconfigdir}/compiz.pc
160 %files gnome-settings
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_libdir}/window-manager-settings/*.so
164 %files gnome-decorator
165 %defattr(644,root,root,755)
166 %attr(755,root,root) %{_bindir}/gnome-window-decorator
171 %defattr(644,root,root,755)
172 %attr(755,root,root) %{_bindir}/kde-window-decorator