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: fc79625701b36903cba32d7f1cc4f63e
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: 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 Obsoletes: compiz-opacity
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 Compiz is an OpenGL compositing manager that use
57 GLX_EXT_texture_from_pixmap for binding redirected top-level windows
58 to texture objects. It has a flexible plug-in system and it is
59 designed to run well on most graphics hardware.
62 Compiz jest OpenGL-owym zarz±dc± sk³adania, u¿ywaj±cym rozszerzenia
63 GLX_EXT_texture_from_pixmap w celu wi±zania przekierowanych okien do
64 tekstur. Posiada elastyczny system wtyczek i jest tak zaprojektowany,
65 by dobrze dzia³aæ na wiêkszo¶ci kart graficznych.
68 Summary: Header files for compiz
69 Summary(pl): Pliki nag³ówkowe dla compiza
71 # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
72 Requires: OpenGL-devel
73 Requires: libpng-devel
74 Requires: startup-notification-devel >= 0.7
75 Requires: xorg-lib-libSM-devel
76 Requires: xorg-lib-libXcomposite-devel
77 Requires: xorg-lib-libXdamage-devel
78 Requires: xorg-lib-libXrandr-devel
81 Header files for compiz.
83 %description devel -l pl
84 Pliki nag³ówkowe dla compiza.
86 %package gnome-settings
87 Summary: Compiz settings for gnome control panel
88 Summary(pl): Ustawienia compiza dla panelu sterowania gnome
90 Requires: %{name} = %{version}-%{release}
92 %description gnome-settings
93 Compiz settings for gnome control panel.
95 %description gnome-settings -l pl
96 Ustawienia compiza dla panelu sterowania gnome.
98 %package gnome-decorator
99 Summary: Window decorator for gnome
100 Summary(pl): Dekorator okien dla gnome
102 Requires: %{name} = %{version}-%{release}
104 %description gnome-decorator
105 Window decorator for gnome.
107 %description gnome-decorator -l pl
108 Dekorator okien dla gnome.
110 %package kde-decorator
111 Summary: Window decorator for KDE
112 Summary(pl): Dekorator okien dla KDE
114 Requires: %{name} = %{version}-%{release}
116 %description kde-decorator
117 Window decorator for KDE.
119 %description kde-decorator -l pl
120 Dekorator okien dla KDE.
123 %setup -q -n %{name}-%{_snap}
127 autoreconf -v --install
132 --enable-libsvg-cairo \
133 %{!?with_gconf:--disable-gconf} \
134 --%{?with_gnome:en}%{!?with_gnome:dis}able-gnome \
135 --%{?with_kde:en}%{!?with_kde:dis}able-kde
140 rm -rf $RPM_BUILD_ROOT
143 DESTDIR=$RPM_BUILD_ROOT
145 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/compiz/novell.png
147 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
150 rm -rf $RPM_BUILD_ROOT
153 %gconf_schema_install compiz.schemas
156 %gconf_schema_uninstall compiz.schemas
159 %defattr(644,root,root,755)
160 %doc AUTHORS ChangeLog README TODO
161 %attr(755,root,root) %{_bindir}/compiz
162 %dir %{_libdir}/compiz
163 %attr(755,root,root) %{_libdir}/compiz/*.so
166 %{_datadir}/gnome/wm-properties/*
168 %{_sysconfdir}/gconf/schemas/compiz.schemas
171 %defattr(644,root,root,755)
172 %{_includedir}/compiz
173 %{_pkgconfigdir}/compiz.pc
176 %files gnome-settings
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_libdir}/window-manager-settings/*.so
180 %files gnome-decorator
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_bindir}/gnome-window-decorator
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_bindir}/kde-window-decorator