Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37742199
en ru br
Репозитории ALT
S:3.36.0-alt2
5.1: 2.26.2-alt4
4.1: 2.22.2-alt0.M41.1
4.0: 2.16.0-alt1
3.0: 2.10.2-alt1
www.altlinux.org/Changes

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

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

%define ver_major 2.26

Name: gnome-menus
Version: %ver_major.2
Release: alt4

Summary: GNOME desktop menu
License: GPLv2+
Group: Graphical desktop/GNOME
Url: http://www.gnome.org
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>

Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
Patch1: %name-2.14-alt-add-config-dir.patch
Patch2: %name-alt-applications-menu.patch

BuildPreReq: rpm-build-gnome rpm-build-xdg

# From configure.in

BuildPreReq: intltool >= 0.35
BuildPreReq: glib2-devel >= 2.6.0
BuildPreReq: libgio-devel >= 2.15.2
BuildPreReq: python-devel

BuildRequires: gcc-c++ perl-XML-Parser

%description
This package should not be in a repository. If you see this, please file
a bug to http://bugzilla.altlinux.org against gnome-menus component.

%package default
Summary: GNOME Menus common data
License: GPLv2+
Group: Graphical desktop/GNOME
BuildArch: noarch
Requires: altlinux-menus >= 0.5.0
Requires: %name-common = %version-%release
Provides: gnome-menus = %version-%release
Obsoletes: gnome-menus < 2.26.2-alt2

%description default
The package contains an implementation of the draft "Desktop Menu
Specification" from http://www.freedesktop.org/Standards/menu-spec/

%package common
Summary: GNOME Menus common data
License: GPLv2+
Group: Graphical desktop/GNOME
BuildArch: noarch

%description common
The package contains data common to GNOME menus of any ALT Linux
distribution. Normally you should not install this package manually, it
will be installed as a dependency.

%package -n lib%name
Summary: Desktop Menu Library for GNOME
License: LGPLv2+
Group: System/Libraries

%description -n lib%name
This package provides Desktop Menu Library for GNOME.

%package -n lib%name-devel
Summary: Development files for GNOME Desktop Menu Library
License: LGPLv2+
Group: Development/C
Requires: lib%name = %version-%release
Requires: %name-common = %version-%release

%description -n lib%name-devel
This package provides files required to develop programs that use
Desktop Menu Library.

%setup_python_module %name
%package -n python-module-%name
Summary: Python bindings for %name
Group: Development/Python
Requires: %name = %version-%release

%description -n python-module-%name
This package contains files that are needed to work with GNOME menus from
Python.

%package -n gnome-menu-editor
Summary: A simple GNOME menu editor
Group: Graphical desktop/GNOME
Requires: %name-common = %version-%release

%description -n gnome-menu-editor
This package contains a simple GNOME menu editor.

%prep
%setup -q
%patch1 -p0
%patch2 -p1

# Link with current python

sed -i -e 's,^\(gmenu_la_LIBADD  = $(GLIB_LIBS) $(top_builddir)/libmenu/libgnome-menu.la\),\1 -lpython%__python_version,g' python/Makefile.am
sed -i -e 's,^\(gmenu_la_LIBADD = $(GLIB_LIBS) $(top_builddir)/libmenu/libgnome-menu.la\),\1 -lpython%__python_version,g' python/Makefile.in

%build
%configure \
   --enable-python \
   --disable-static

%make_build

%install
%make_install DESTDIR=%buildroot install

mv %buildroot%_xdgmenusdir/{,gnome-}applications.menu

mkdir -p %buildroot%_xdgmenusdir/settings-merged

%find_lang %name

%files default
%_datadir/desktop-directories/*
%config %_xdgmenusdir/gnome-applications.menu
%config %_xdgmenusdir/settings.menu

%files common -f %name.lang
%dir %_datadir/gnome-menus
%dir %_xdgmenusdir/settings-merged

%files -n lib%name
%_libdir/*.so.*
%doc AUTHORS ChangeLog NEWS README

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
# like the gnome-menu-spec-test
%dir %_datadir/%name/examples
%_datadir/%name/examples/gnome-menus-ls.py

%files -n python-module-%name
%python_sitelibdir/gmenu.so

%exclude %python_sitelibdir/gmenu.la

%define editor_name gmenu-simple-editor

%files -n gnome-menu-editor
%_bindir/%editor_name
%_desktopdir/%editor_name.desktop
%dir %_datadir/gnome-menus/glade
%_datadir/gnome-menus/glade/%editor_name.glade
%dir %python_sitelibdir/GMenuSimpleEditor
%python_sitelibdir/GMenuSimpleEditor/*

%changelog

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

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