Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37706957
en ru br
Репозитории ALT
S:0.9.14.2-alt1
5.1: 0.8.4-alt1
4.1: 0.7.4-alt1.M41.1
4.0: 0.5.0-alt1
www.altlinux.org/Changes

Другие репозитории
Upstream:0.7.2

Группа :: Система/X11
Пакет: compiz

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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
%define default_plugins animation,core,dbus,decoration,expo,glib,gnomecompat,imgjpeg,move,place,png,regex,resize,scale,svg,switcher,text,wall,wobbly,workarounds

Name: compiz
Version: 0.8.4
Release: alt1
Summary: OpenGL window and compositing manager
License: MIT/X11 GPL
Group: System/X11
Url: http://www.compiz-fusion.org/
Packager: Valery Inozemtsev <shrek at altlinux.ru>

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

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

BuildRequires(Pre): libGConf-devel
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 kde4libs-devel kde4base-workspace-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 simple-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 >= %version

%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 >= %version simple-ccsm

%description kde
Compiz window decorator for KDE

%package kde4
Summary: KDE4 Compiz window decorator
Group: Graphical desktop/KDE
Requires: %name = %version-%release
Requires: compizconfig-backend-kconfig4 >= %version simple-ccsm

%description kde4
Compiz window decorator for KDE4

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

%description devel
Development files for Compiz

%package -n rpm-build-%name
Summary: RPM macros for sawfish-related packages
Group: Development/Other

%description -n rpm-build-%name
RPM macros for sawfish-related packages

%prep
%setup -q
%patch -p1

%build
%autoreconf
%configure \
--with-default-plugins="%default_plugins" \
--enable-librsvg \
--enable-gtk \
--enable-gnome \
--enable-metacity \
--enable-gconf \
--enable-gnome-keybindings \
--enable-kde \
--enable-kde4 \
--disable-static

%make_build

echo "%%compiz_core_abi_version $(sed -ne 's|^#define[[:space:]]*CORE_ABIVERSION[[:space:]]*\(.*\)|\1|p' include/%name-core.h)" > %name-core.rpmmacros

%install
%make DESTDIR=%buildroot install

# rpm macros

install -pD -m644 %name-core.rpmmacros %buildroot%_rpmmacrosdir/%name-core

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"
exec /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
%exclude %_libdir/%name/libgnomecompat.so
%exclude %_libdir/%name/libglib.so
%_libdir/%name/lib*.so
%_datadir/%name
%exclude %_datadir/%name/kc*
%exclude %_datadir/%name/gconf.xml
%exclude %_datadir/%name/gnomecompat.xml
%exclude %_datadir/%name/glib.xml

%files gnome
%_sysconfdir/gconf/schemas/*.schemas
%exclude %_sysconfdir/gconf/schemas/*kconfig.schemas
%_libdir/%name/libgconf.so
%_libdir/%name/libgnomecompat.so
%_libdir/%name/libglib.so
%_libdir/window-manager-settings/*.so
%_desktopdir/%name.desktop
%_datadir/%name/gconf.xml
%_datadir/%name/gnomecompat.xml
%_datadir/%name/glib.xml
%_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/%name/kc*
%_datadir/config/*
%_datadir/config.kcfg/%name-*

%files kde4
%_bindir/kde4-window-decorator

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

%files -n rpm-build-%name
%_rpmmacrosdir/%name-core

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin