Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37601454
en ru br
Репозитории ALT
5.1: 2.26.0-alt1
4.1: 2.22.0-alt1.1
4.0: 2.16.5-alt2
3.0: 2.10.2-alt1
www.altlinux.org/Changes

Группа :: Графические оболочки/GNOME
Пакет: metacity

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define ver_major 2.16
%def_disable static
%def_disable compositor
%def_enable render
%def_enable shape
%def_enable gconf

Name: metacity
Version: %ver_major.5
Release: alt2

Summary: Metacity window manager
License: GPL
Group: Graphical desktop/GNOME
Url: http://people.redhat.com/~hp/%name

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Patch: metacity-2.13-configure-sm.patch
Patch2: metacity-2.13-keys-end-cycling.patch

%define theme_prefix theme
%define old_theme_prefix themes

# From configure.in

%define gtk_ver 2.10.0
%define pango_ver 1.2.0
%define GConf_ver 1.2.0
%define glib_ver 2.6.0
%define startup_notification_ver 0.8
%define xcomposite_ver 0.2

Requires: %name-theme = %version-%release
Requires: lib%name = %version-%release

# From configure.in

BuildPreReq: intltool >= 0.34.90
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: pango-devel >= %pango_ver
%if_enabled gconf
BuildPreReq: libGConf2-devel >= %GConf_ver
# This is for compatibility with previous GConf packages where RPM macros
# lived in GConf2 package, not in libGConf2-devel.
BuildPreReq: GConf2 >= %GConf_ver
%endif
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libstartup-notification-devel >= %startup_notification_ver
%if_enabled compositor
BuildPreReq: libXcomposite-devel >= %xcomposite_ver
BuildPreReq: libXfixes-devel
BuildPreReq: libXrender-devel
BuildPreReq: libXdamage-devel
%endif
%{?_enable_render:BuildPreReq: libXrender-devel}
BuildPreReq: libXcursor-devel libXt-devel
BuildPreReq: libXinerama-devel
%{?_enable_shape:BuildPreReq: libXext-devel}
BuildPreReq: libXrandr-devel libX11-devel libSM-devel libICE-devel perl-XML-Parser

%description
Metacity is a simple window manager that integrates nicely with
GNOME 2. It can also be used as a standalone, EWMH-compliant window
manager.
Note: to use Metacity with GNOME, you should install %name-gnome package.

%package -n lib%name
Summary: Shared library for Metacity
Group: System/Libraries

%description -n lib%name
This package contains shared library needed to run Metacity.

%package -n lib%name-devel
Summary: Development files for lib%name
Group: Development/C
Requires: lib%name = %version-%release
Requires: libgtk+2-devel >= %gtk_ver

%description -n lib%name-devel
This package contains headers and development libraries for lib%name

%package -n lib%name-devel-static
Summary: Static version of lib%name
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
This package contains the lib%name static library.

%package gnome
Summary: GNOME-specific parts of Metacity
Group: Graphical desktop/GNOME
Provides: gnome-wm

%if_enabled gconf
PreReq: GConf2 >= %GConf_ver
%endif
Requires: %name = %version-%release
Requires: gnome-filesystem

%description gnome
This package contains everything necessary to use Metacity in GNOME desktop
environment.

%package %{theme_prefix}s-default
Summary: Metacity default themes
Group: Graphical desktop/GNOME
Obsoletes: %name-themes < 2.14.0
Provides: %name-themes = %version-%release
Requires: %name-%theme_prefix-atlanta = %version-%release %name-%theme_prefix-bright = %version-%release
Requires: %name-%theme_prefix-crux = %version-%release %name-%theme_prefix-esco = %version-%release
Requires: %name-%theme_prefix-gorilla = %version-%release %name-%theme_prefix-metabox = %version-%release
Requires: %name-%theme_prefix-simple = %version-%release

%description %{theme_prefix}s-default
This is virtual package that provides default themes for Metacity.

%package %theme_prefix-atlanta
Summary: Metacity theme - Atlanta
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-atlanta = %version-%release
Provides: %name-%old_theme_prefix-atlanta = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-atlanta
This package contains a simple low-overhead default theme for Metacity.

%package %theme_prefix-bright
Summary: Metacity theme - Bright
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-bright = %version-%release
Provides: %name-%old_theme_prefix-bright = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-bright
This package contains a simple theme based on Havoc Pennington's Atlanta.

%package %theme_prefix-crux
Summary: Metacity theme - Crux
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-crux = %version-%release
Provides: %name-%old_theme_prefix-crux = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-crux
This package contains a port of the Crux theme by Arlo Rose and John
Harper.

%package %theme_prefix-esco
Summary: Metacity theme - Esco
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-esco = %version-%release
Provides: %name-%old_theme_prefix-esco = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-esco
This package contains a simple theme designed to look really good match
GTK+ well.

%package %theme_prefix-gorilla
Summary: Metacity theme - AgingGorilla
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-gorilla = %version-%release
Provides: %name-%old_theme_prefix-gorilla = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-gorilla
This package contains a port of the Gorilla theme by Jacub Steiner

%package %theme_prefix-metabox
Summary: Metacity theme - Metabox
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-metabox = %version-%release
Provides: %name-%old_theme_prefix-metabox = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-metabox
This package contains a theme that looks a little like BlackBox.

%package %theme_prefix-simple
Summary: Metacity theme - Simple
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-simple = %version-%release
Provides: %name-%old_theme_prefix-simple = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-simple
This package contains default GNOME window theme. It based on Atlanta
theme.

%prep
%setup -q
%patch
%patch2

%build
%__autoconf
%configure \
   %{subst_enable compositor} \
   %{subst_enable render} \
   %{subst_enable shape} \
   %{subst_enable gconf} \
   %{subst_enable static} \
   --enable-sm \
   --enable-startup-notification \
   --enable-xsync \
   --enable-xinerama \
   --enable-man \
   --disable-schemas-install

%make_build

%install
%makeinstall
bzip2 -9f ChangeLog
%find_lang %name

%if_enabled gconf
%post gnome
%gconf2_install %name
%endif

%if_enabled gconf
%preun gnome
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%endif

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files -f %name.lang
%_bindir/*
%_libexecdir/%name-dialog
%_datadir/%name
%_man1dir/*
%doc README AUTHORS NEWS ChangeLog*

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%doc doc/*.txt doc/*.dtd HACKING

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

%files gnome
%dir %_datadir/gnome/wm-properties
%_datadir/gnome/wm-properties/%name.desktop
%config %_sysconfdir/gconf/schemas/*

%files %{theme_prefix}s-default

%files %theme_prefix-gorilla
%_datadir/themes/AgingGorilla/*

%files %theme_prefix-atlanta
%_datadir/themes/Atlanta/*

%files %theme_prefix-bright
%_datadir/themes/Bright/*

%files %theme_prefix-crux
%_datadir/themes/Crux/*

%files %theme_prefix-esco
%_datadir/themes/Esco/*

%files %theme_prefix-metabox
%_datadir/themes/Metabox/*

%files %theme_prefix-simple
%_datadir/themes/Simple/*

%changelog

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

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