%define kdedir /opt/kde3 %define with_svg 1 Name: compiz Version: 0.8.8 Release: 3mamba Summary: An OpenGL based compositing window manager Group: System/X11 Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://x.org #Source0: ftp://ftp.x.org/pub/individual/app/compiz-%{version}.tar.bz2 #Source0: http://xorg.freedesktop.org/archive/individual/app/compiz-%{version}.tar.gz Source0: http://releases.compiz-fusion.org/%{version}/compiz-%{version}.tar.gz Source1: compiz-KDE.desktop Source2: compiz-start_compiz-kde Source3: mkinstalldirs Source4: compiz-xprofile Source5: compiz-kwd-wrapper Source6: compiz-sysconfig Source8: compiz-disable Source9: compiz-launcher Patch0: %{name}-0.6.2-fixx11_Xdefs.patch Patch1: %{name}-0.7.8-dbus-qt3-0.8.1.patch Patch4: %{name}-0.7.8-kde42-krunner.patch Patch5: %{name}-0.8.4-add_missing_xslt_files.patch License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: GConf-devel BuildRequires: glibc-devel BuildRequires: kdebase-workspace-devel BuildRequires: kdelibs-devel BuildRequires: libatk-devel BuildRequires: libbzip2-devel BuildRequires: libcairo-devel BuildRequires: libcanberra-devel BuildRequires: libcompizconfig-devel BuildRequires: libcroco-devel BuildRequires: libdbus-devel BuildRequires: libdbus-glib-devel BuildRequires: libexpat-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libfuse-devel BuildRequires: libgcc BuildRequires: libgdk-pixbuf-devel BuildRequires: libGL-devel BuildRequires: libglib-devel BuildRequires: libglitz-devel BuildRequires: libGLU-devel BuildRequires: libgtk2-devel BuildRequires: libgtop-devel BuildRequires: libICE-devel BuildRequires: libpango-devel BuildRequires: libpixman-devel BuildRequires: libpng-devel BuildRequires: libpthread-stubs-devel BuildRequires: libqt4-devel BuildRequires: librsvg-devel BuildRequires: libselinux-devel BuildRequires: libSM-devel BuildRequires: libstartup-notification-devel BuildRequires: libstdc++6-devel BuildRequires: libuuid-devel BuildRequires: libwnck2-devel BuildRequires: libX11-devel BuildRequires: libXau-devel BuildRequires: libxcb-devel BuildRequires: libxcb-util-devel BuildRequires: libXcomposite-devel BuildRequires: libXcursor-devel BuildRequires: libXdamage-devel BuildRequires: libXdmcp-devel BuildRequires: libXext-devel BuildRequires: libXfixes-devel BuildRequires: libXinerama-devel BuildRequires: libxml2-devel BuildRequires: libXrandr-devel BuildRequires: libXrender-devel BuildRequires: libXres-devel BuildRequires: libxslt-devel BuildRequires: libz-devel BuildRequires: mesa-tools BuildRequires: metacity-devel BuildRequires: ORBit2-devel BuildRequires: udev-devel ## AUTOBUILDREQ-END BuildRequires: pkgconfig BuildRequires: gettext-devel BuildRequires: libwnck-devel >= 2.10.3 #BuildRequires: libGL-Mesa-indirect-devel >= 6.5.2 BuildRequires: libdrm-devel %if %with_svg BuildRequires: librsvg-devel %endif BuildRequires: liblcms-static BuildRequires: gnome-control-center-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: Mesa-tools Requires: libcompizconfig >= 0.5.2 Obsoletes: compiz-kde-session Provides: compiz-kde3 Obsoletes: compiz-kde3 # How to build compiz tarball from git: # git clone git://anongit.freedesktop.org/git/xorg/app/compiz # cd compiz # ./autogen.sh # make dist %description Compiz is a compositing window manager. It has a flexible plugin interface which allows developers to use it for many different tasks. %package devel Summary: Devel package for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel Compiz is a compositing window manager. It has a flexible plugin interface which allows developers to use it for many different tasks. This package contains static libraries and header files need for development. %package kde3 Summary: Compiz window manager for KDE 3 Group: System/X11 Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description kde3 Compiz is a compositing window manager. It has a flexible plugin interface which allows developers to use it for many different tasks. This package contains the window manager component for KDE 3. %package kde4 Summary: Compiz window manager for KDE 4 Group: System/X11 Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description kde4 Compiz is a compositing window manager. It has a flexible plugin interface which allows developers to use it for many different tasks. This package contains the window manager component for KDE 4. %package gtk Summary: Compiz window manager for GTK Group: System/X11 Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description gtk Compiz is a compositing window manager. It has a flexible plugin interface which allows developers to use it for many different tasks. This package contains the window manager component for GTK. %package gnome Summary: Compiz window manager for GNOME Group: System/X11 Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description gnome Compiz is a compositing window manager. It has a flexible plugin interface which allows developers to use it for many different tasks. This package contains the window manager component for GNOME. # # Warning: # # Build with libGL from fglrx driver results in compiz linked against # libGL.so.1.2 and this causes problems. # Ensure that the soname of the current libGL library is libGL.so.1, check with: # objdump -p /usr7lib/libGL.so | grep SONAME %prep %setup -q %patch0 -p1 #%patch1 -p1 #%patch4 -p1 #%patch5 -p1 cp %{S:3} . %build export KDEDIR=%{kdedir} %configure \ --disable-kde \ --enable-kde4 \ --enable-gnome \ --enable-metacity \ --enable-gtk \ --enable-kconfig \ %if %with_svg --enable-librsvg \ %endif --enable-glib \ --enable-gconf \ --disable-static %make #mkdir preserve #cp src/compiz preserve/compiz-aiglx #make clean # #% configure \ # --enable-kde \ #% if %with_svg # --enable-librsvg \ #% endif # --disable-gtk \ # --disable-gnome \ # --disable-metacity \ # --disable-static \ # --with-gl-libs="/usr/lib/libGL-indirect.a -pthread -ldrm" # #%make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall #install -m 0755 preserve/compiz-aiglx %{buildroot}%{_bindir}/ #install -m 0755 -D %{S:4} %{buildroot}%{_sysconfdir}/xprofile.d/compiz.sh #install -m 0755 -D %{S:5} %{buildroot}%{_bindir}/kde-window-decorator-wrapper install -m 0755 -D %{S:6} %{buildroot}%{_sysconfdir}/sysconfig/compiz #install -m 0755 -D %{S:7} %{buildroot}%{_bindir}/compiz-enable install -m 0755 -D %{S:8} %{buildroot}%{_bindir}/compiz-disable install -m 0755 -D %{S:9} %{buildroot}%{_bindir}/compiz-launcher ln -s compiz-launcher %{buildroot}%{_bindir}/compiz-kde-launcher ln -s compiz-launcher %{buildroot}%{_bindir}/compiz-enable %find_lang %{name} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post /sbin/ldconfig grep COMPIZ_ENABLE_INDIRECT /etc/sysconfig/compiz &>/dev/null || \ echo "COMPIZ_ENABLE_INDIRECT=1" >> /etc/sysconfig/compiz exit 0 %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/compiz %{_bindir}/compiz %{_bindir}/compiz-enable %{_bindir}/compiz-disable %{_bindir}/compiz-launcher %{_bindir}/compiz-kde-launcher %{_libdir}/libdecoration.so.* %dir %{_libdir}/compiz %{_libdir}/compiz/libannotate.so %{_libdir}/compiz/libblur.so %{_libdir}/compiz/libclone.so %{_libdir}/compiz/libcommands.so %{_libdir}/compiz/libcube.so %{_libdir}/compiz/libdbus.so %{_libdir}/compiz/libdecoration.so %{_libdir}/compiz/libfade.so %{_libdir}/compiz/libfs.so %{_libdir}/compiz/libgnomecompat.so %{_libdir}/compiz/libglib.so %{_libdir}/compiz/libini.so %{_libdir}/compiz/libinotify.so %{_libdir}/compiz/libminimize.so %{_libdir}/compiz/libmove.so %{_libdir}/compiz/libobs.so %{_libdir}/compiz/libplace.so #%{_libdir}/compiz/libplane.so %{_libdir}/compiz/libpng.so %{_libdir}/compiz/libregex.so %{_libdir}/compiz/libresize.so %{_libdir}/compiz/librotate.so %{_libdir}/compiz/libscale.so %{_libdir}/compiz/libscreenshot.so %if %with_svg %{_libdir}/compiz/libsvg.so %endif %{_libdir}/compiz/libswitcher.so %{_libdir}/compiz/libvideo.so %{_libdir}/compiz/libwater.so %{_libdir}/compiz/libwobbly.so %{_libdir}/compiz/libzoom.so %{_libdir}/compiz/*.la %dir %{_datadir}/compiz %{_datadir}/compiz/*.png %{_datadir}/compiz/*.xml #%{_datadir}/compiz/schemas.xslt %doc AUTHORS COPYING %files devel %defattr(-,root,root) %{_libdir}/libdecoration.la %{_libdir}/libdecoration.so %dir %{_includedir}/compiz %{_includedir}/compiz/*.h %{_exec_prefix}/lib/pkgconfig/*.pc %doc ChangeLog NEWS README TODO #%files kde3 #%defattr(-,root,root) #%{_bindir}/kde-window-decorator #%{_libdir}/compiz/libkconfig.so #%{_datadir}/compiz/kcfg.xslt #%{_datadir}/compiz/kconfig.xslt #%{_kdedatadir}/config.kcfg/*.kcfg #%exclude %{_kdedatadir}/config/compizrc %files kde4 %defattr(-,root,root) %{_bindir}/kde4-window-decorator %files gtk %defattr(-,root,root) %{_sysconfdir}/gconf/schemas/gwd.schemas %{_bindir}/gtk-window-decorator %{_sysconfdir}/gconf/schemas/compiz*.schemas %{_datadir}/compiz/schemas.xslt %{_libdir}/compiz/libgconf.so %changelog * Sun Aug 21 2011 Silvan Calarco 0.8.8-3mamba - restore launch of window decorator with --replace after launching compiz - added vboxvideo to whitelist * Sun Aug 14 2011 Silvan Calarco 0.8.8-2mamba - compiz-launcher: switch user configuration backend from obsoleted kconfig to kconfig4 * Sun Aug 07 2011 Silvan Calarco 0.8.8-1mamba - automatic version update by autodist - disabled kde3 support, enabled gnome, glib and gconf support - added nouveau to whitelist * Fri Jul 02 2010 Silvan Calarco 0.8.6-4mamba - rebuilt with libpng 1.4 * Sat Apr 24 2010 Silvan Calarco 0.8.6-3mamba - compiz-kde-launcher: make kde4-window-decorator the default window manager * Thu Apr 08 2010 Silvan Calarco 0.8.6-2mamba - added compiz-launcher and compiz-kde-launcher symlink for better integration with kde 4 - removed /etc/xprofile.d startup script * Thu Apr 01 2010 Automatic Build System 0.8.6-1mamba - automatic update to 0.8.6 by autodist * Thu Oct 15 2009 Automatic Build System 0.8.4-1mamba - automatic update to 0.8.4 by autodist * Sat Oct 10 2009 Silvan Calarco 0.8.2-7mamba - rebuilt with --disable-kconfig to remove dependency on kdebase - added gtk window decorator; FIXME: gnome wd still misses some includes and fails to build * Sat Jul 18 2009 Silvan Calarco 0.8.2-6mamba - updated profile script to support direct rendering with DRI2 based drivers * Fri Jun 19 2009 Silvan Calarco 0.8.2-5mamba - radeonhd driver added to whitelist * Wed May 20 2009 Silvan Calarco 0.8.2-4mamba - fixed compiz-enable and compiz-disable detection and support for KDE4 * Sun May 17 2009 Automatic Build System 0.8.2-3mamba - automatic rebuild by autodist * Mon Apr 27 2009 Silvan Calarco 0.8.2-2mamba - fixed compiz-enable and disable for use in KDE4 - xprofile: create ~/.kde/share/config legacy dir if missing * Thu Mar 19 2009 Silvan Calarco 0.8.2-1mamba - update to 0.8.2 * Wed Feb 18 2009 Silvan Calarco 0.7.8-7mamba - compiz-enable, profile: force enable when compiz is permanently disabled * Thu Feb 05 2009 Silvan Calarco 0.7.8-6mamba - kde4-window-decorator: added patch to fix crash at startup with kde 4.2 * Wed Feb 04 2009 Silvan Calarco 0.7.8-5mamba - added package compiz-kde3 - rebuilt with KDE 4.2.0 (added patch) * Mon Jan 05 2009 Silvan Calarco 0.7.8-4mamba - compiz-xprofile: add support for KDM 4 (launch kde4-windows-decorator is session=default) * Sun Oct 12 2008 Silvan Calarco 0.7.8-3mamba - compiz xprofile.d startup script modified for kde4 support * Thu Oct 09 2008 Silvan Calarco 0.7.8-2mamba - enabled KDE4 support * Mon Sep 22 2008 Silvan Calarco 0.7.8-1mamba - automatic update to 0.7.8 by autodist * Thu Jun 05 2008 gil 0.7.6-1mamba - update to 0.7.6 * Fri Apr 04 2008 Silvan Calarco 0.7.4-1mamba - update to 0.7.4 * Fri Mar 07 2008 Silvan Calarco 0.7.2-1mamba - update to 0.7.2 * Fri Mar 07 2008 Silvan Calarco 0.6.2-9mamba - launch with --sm-disable option to disable session restore * Thu Mar 06 2008 Silvan Calarco 0.6.2-8mamba - xprofile.sh: fixed a syntax error * Thu Jan 24 2008 Silvan Calarco 0.6.2-7mamba - compiz.sh: enable --indirect-rendering for nvidia cards with 32MB or less * Thu Dec 20 2007 Silvan Calarco 0.6.2-6mamba - compiz.sh: apply workaround to set default configuration * Fri Nov 16 2007 Silvan Calarco 0.6.2-5mamba - updated kde-windows-decorator-wrapper - /etc/sysconfig/compiz: add COMPIZ_ENABLE_INDIRECT variable * Wed Nov 07 2007 Silvan Calarco 0.6.2-4mamba - fixed launch of kde-window-decorator-wrapper * Mon Nov 05 2007 Silvan Calarco 0.6.2-3mamba - added compiz-enable and compiz-disable scripts * Fri Nov 02 2007 Silvan Calarco 0.6.2-2mamba - added support for sysconfig configuration file * Wed Oct 24 2007 Silvan Calarco 0.6.2-1mamba - update to 0.6.2 - removed indirect libGL build - compiz-aiglx renamed to compiz - compiz.sh: added support for LIBGL_ALWAYS_INDIRECT mode, kde-window-decorator-wrapper - compiz.sh: added support for cards whitelist (nvidia,intel,ati,radeon,i810,fglrx) - remove and obsolete kde-session subpackage - added requirement and support for libcompizconfig * Fri Sep 21 2007 Silvan Calarco 0.5.2-4mamba - set gconf dir to the default (/etc/gconf) * Thu Sep 20 2007 Silvan Calarco 0.5.2-3mamba - remove requirement for xorg-server-xgl - added requirement for Mesa-tools - xprofile: check if direct rendering is enabled before trying to load compiz * Sun Sep 02 2007 Silvan Calarco 0.5.2-2mamba - fixed xprofile script: don't set KDEWM if compiz fails to start * Thu Aug 16 2007 Silvan Calarco 0.5.2-1mamba - update to 0.5.2 * Tue Jul 19 2007 Silvan Calarco 0.5.1-1mamba - update to 0.5.1 from git - xprofile/compiz.sh: add check for GLX_EXT_texture_from_pixmap availability - xprofile/compiz.sh: remove internal logfile support, logging goes to ~/.xsession-errors * Fri May 11 2007 Silvan Calarco 0.5.0-1mamba - update to 0.5.0 * Fri Mar 16 2007 Silvan Calarco 0.3.7-7qilnx - build compiz-aiglx dinamically linked to libGL * Tue Mar 06 2007 Silvan Calarco 0.3.7-6qilnx - move xprofile to xprofile.d/compiz.sh * Mon Mar 05 2007 Silvan Calarco 0.3.7-5qilnx - update from git (20070305) - remove gtk-window-decorator * Tue Feb 06 2007 Davide Madrisan 0.3.7-4qilnx - rebuilt with the new installation prefix for kde (/opt/kde3) - enabled svg support - %%post/%%postun script: update ldconf * Fri Jan 12 2007 Davide Madrisan 0.3.7-3qilnx - rebuilt against new libwnck library - added build requirements for libdrm and libdbus-qt3 * Fri Jan 05 2007 Silvan Calarco 0.3.7-2qilnx - add xprofile and put Compiz-KDE session into a severed package * Fri Jan 05 2007 Silvan Calarco 0.3.7-1qilnx - update to version 0.3.7 by autospec * Thu Jan 04 2007 Silvan Calarco 0.3.6-1qilnx - package created by autospec