# Conditional build:
%bcond_without gconf # gconf plugin
%bcond_without gtk # gtk window decorator
-%bcond_without gnome # gnome settings module
+%bcond_with gnome # gnome settings module
%bcond_without metacity # metacity theme support
%bcond_with kde # kde-window-decorator and kconfig
%bcond_without kde4 # kde4-window-decorator
-#
+
Summary: OpenGL window and compositing manager
Summary(pl.UTF-8): OpenGL-owy zarządca okien i składania
Name: compiz
# note that even versions are STABLE
Version: 0.8.6
-Release: 1
+Release: 3
License: GPL or MIT
Group: X11/Applications
Source0: http://releases.compiz.org/%{version}/%{name}-%{version}.tar.bz2
# Source0-md5: 1e284eade99ff310551d5919b6ba57c1
+Source1: %{name}-gtk
+Source2: %{name}-gtk.desktop
Patch0: %{name}-kde4.patch
Patch1: %{name}-no-gdk_display.patch
URL: http://www.compiz.org/
BuildRequires: automake >= 1:1.7
BuildRequires: cairo-devel >= 1.0
BuildRequires: dbus-glib-devel
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
BuildRequires: glib2-devel >= 2.0
# <sys/inotify.h>
BuildRequires: glibc-devel >= 6:2.4
rm -f $RPM_BUILD_ROOT%{_libdir}/window-manager-settings/*.la
%endif
+%if %{with gtk}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
+desktop-file-install \
+ --vendor="" \
+ --dir $RPM_BUILD_ROOT%{_desktopdir} \
+ %{SOURCE2}
+%endif
+
%find_lang %{name}
%clean
%if %{with gtk}
%files gtk-decorator
%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/compiz-gtk
%attr(755,root,root) %{_bindir}/gtk-window-decorator
+%{_desktopdir}/compiz-gtk.desktop
%if %{with gconf}
%{_sysconfdir}/gconf/schemas/gwd.schemas
%endif