Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37627877
en ru br
ALT Linux repos
S:0.9.14.2-alt1
5.0: 0.8.2-alt6
4.1: 0.7.4-alt1.M41.1
4.0: 0.5.0-alt1

Other repositories
Upstream:0.7.2

Group :: System/X11
RPM: compiz

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define gnome_plugins compiz-annotate compiz-blur compiz-clone compiz-commands compiz-core compiz-cube compiz-dbus compiz-decoration compiz-fade compiz-fs compiz-gconf compiz-glib compiz-gnomecompat compiz-ini compiz-inotify compiz-minimize compiz-move compiz-obs compiz-place compiz-png compiz-regex compiz-resize compiz-rotate compiz-scale compiz-screenshot compiz-svg compiz-switcher compiz-video compiz-water compiz-wobbly compiz-zoom gwd

Name: compiz
Version: 0.8.2
Release: alt6

Summary: OpenGL window and compositing manager
License: MIT/X11 GPL
Group: System/X11
Url: http://www.compiz-fusion.org/
Packager: XOrg Maintainer Team <xorg at packages.altlinux.org>

Obsoletes: compiz-manager
Provides: compiz-manager = %version-%release

Source: %name-%version.tar
Patch: %name-%version-%release.patch

BuildRequires: GConf gcc-c++ intltool gnome-control-center-devel kdebase-devel libGL-devel libXcomposite-devel
BuildRequires: libdbus-glib-devel libdbus-qt-devel libgnome-desktop-devel libmetacity-devel librsvg-devel
BuildRequires: libwnck-devel libxslt-devel xorg-xextproto-devel

%description
Compiz is an OpenGL compositing manager that use GLX_EXT_texture_from_pixmap
for binding redirected top-level windows to texture objects. It has a flexible
plug-in system and it is designed to run well on most graphics hardware.

%package gnome
Summary: Gnome Window Manager
Group: Graphical desktop/GNOME
Requires: %name = %version-%release %name-gtk = %version-%release ccsm

%description gnome
Compiz Window Manager for Gnome

%package gtk
Summary: Gtk Compiz window decorator
Group: Graphical desktop/GNOME
Requires: %name = %version-%release
Requires: compizconfig-backend-gconf >= 0.7.7

%description gtk
Compiz window decorator for Gtk

%package kde
Summary: KDE Compiz window decorator
Group: Graphical desktop/KDE
Requires: %name = %version-%release
Requires: compizconfig-backend-kconfig >= 0.7.7 ccsm

%description kde
Compiz window decorator for KDE

%package devel
Summary: Development file for Compiz
Group: Development/C
Requires: %name = %version-%release

%description devel
Development file for Compiz

%prep
%setup -q
%patch -p1

%build
%autoreconf
%configure \
--enable-librsvg \
--enable-gtk \
--enable-gnome \
--enable-metacity \
--enable-gconf \
--enable-gnome-keybindings \
--enable-kde \
--disable-kde4 \
--disable-static

%make_build

%install
%make DESTDIR=%buildroot install

mkdir -p %buildroot%_sysconfdir/X11/wmsession.d
cat > %buildroot%_sysconfdir/X11/wmsession.d/30Compiz <<EOF
NAME=Compiz
ICON=/usr/share/icons/default.kde/64x64/apps/kmenu.png
DESC=Compiz manager
EXEC=/usr/bin/startcompiz
SCRIPT:
exec /usr/bin/startcompiz
EOF

cat > %buildroot%_bindir/startcompiz <<EOF
#/bin/sh

export KDEWM="/usr/bin/compiz --kwd ccp"
/usr/bin/startkde
EOF

%find_lang %name

%post gnome
%gconf2_install %gnome_plugins

%preun gnome
if [ $1 = 0 ]; then
%gconf2_uninstall %gnome_plugins
fi

%files -f %name.lang
%doc AUTHORS COPYING COPYING.GPL COPYING.MIT README TODO NEWS
%_bindir/%name
%dir %_libdir/%name
%_libdir/*.so.*
%exclude %_libdir/%name/libkconfig.so
%exclude %_libdir/%name/libgconf.so
%_libdir/%name/lib*.so
%_datadir/%name

%files gnome
%_sysconfdir/gconf/schemas/*.schemas
%exclude %_sysconfdir/gconf/schemas/*kconfig.schemas
%_libdir/%name/libgconf.so
%_libdir/window-manager-settings/*.so
%_desktopdir/%name.desktop
%_datadir/gnome-control-center/keybindings/*.xml
%_datadir/gnome/wm-properties/%name-wm.desktop

%files gtk
%_bindir/gtk-window-decorator

%files kde
%_sysconfdir/X11/wmsession.d/30Compiz
%attr(0755,root,root)  %_bindir/startcompiz
%_bindir/kde-window-decorator
%_libdir/%name/libkconfig.so
%_datadir/config/*
%_datadir/config.kcfg/%name-*

%files devel
%_includedir/compiz
%_libdir/*.so
%_pkgconfigdir/*.pc

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin