Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37578274
en ru br
ALT Linux repositórios
S:3.36.0-alt2
5.0: 2.26.1-alt1
4.1: 2.22.2-alt0.M41.1
4.0: 2.16.0-alt1
3.0: 2.10.2-alt1

Group :: Desktop gráfico/GNOME
RPM: gnome-menus

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define ver_major 2.26

Name: gnome-menus
Version: %ver_major.1
Release: alt1

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

# From configure.in

%define glib_ver 2.6.0
%define gio_ver 2.15.2

Requires: altlinux-menus

BuildPreReq: rpm-build-gnome

# From configure.in

BuildPreReq: intltool >= 0.35
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libgio-devel >= %gio_ver
BuildPreReq: python-devel

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

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

%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

%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
Autoreq: yes
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

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

%prep
%setup -q
%patch1
%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

install -pD -m644 %buildroot%_sysconfdir/xdg/menus/applications.menu \
%buildroot%_sysconfdir/gnome/xdg/menus/applications-merged/applications.menu

%find_lang %name

%files -f %name.lang
%_datadir/desktop-directories/*
%dir %_sysconfdir/gnome/
%dir %_sysconfdir/gnome/xdg/
%dir %_sysconfdir/gnome/xdg/menus/
%dir %_sysconfdir/gnome/xdg/menus/applications-merged/
%config %_sysconfdir/gnome/xdg/menus/applications-merged/applications.menu
%config %_sysconfdir/xdg/menus/settings.menu
%doc AUTHORS ChangeLog NEWS README

%exclude %_sysconfdir/xdg/menus/applications.menu

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

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
# like the gnome-menu-spec-test
%_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
%_datadir/applications/%editor_name.desktop
%_datadir/gnome-menus/glade/%editor_name.glade
%python_sitelibdir/GMenuSimpleEditor/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009