File gnome-main-menu.spec of Package gnome-main-menu

#
# spec file for package gnome-main-menu
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           gnome-main-menu
Version:        0.9.15
Release:        7
License:        GPLv2+
Summary:        The GNOME Desktop Menu
Url:            http://www.gnome.org
Group:          System/GUI/GNOME
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gnome-main-menu-focus-on-menu-unmap.patch bnc#534964 dliang@novell.com -- gnome-main-menu not auto-hiding after right click
Patch0:         gnome-main-menu-focus-on-menu-unmap.patch
# PATCH-FIX-UPSTREAM gnome-main-menu-fix-nautilus-sendto.patch bnc#647263 vuntz@opensuse.org -- Fix usage of nautilus-sendto, taken from upstream
Patch1:         gnome-main-menu-fix-nautilus-sendto.patch
# PATCH-FIX-UPSTREAM gnome-main-menu-tracker-needle.patch bnc#661800 badshah400@gmail.com -- Use tracker-needle instead of tracker-search-tool for search entry
Patch2:         gnome-main-menu-tracker-needle.patch
# PATCH-FIX-UPSTREAM gnome-main-menu-theming-button.patch bnc#642956 vuntz@opensuse.org -- Name the widget for the main menu button so that theming works
Patch3:         gnome-main-menu-theming-button.patch
# PATCH-FIX-UPSTREAM gnome-main-menu-firefox.patch bnc#664211 andreas.hanke@gmx-topmail.de -- MozillaFirefox.desktop renamed to firefox.desktop
Patch4:         gnome-main-menu-firefox.patch
BuildRequires:  fdupes
BuildRequires:  intltool
%if %suse_version > 1110
BuildRequires:  libiw-devel
%else
BuildRequires:  wireless-tools
%endif
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(NetworkManager)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gnome-desktop-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libgtop-2.0)
BuildRequires:  pkgconfig(libnautilus-extension)
BuildRequires:  pkgconfig(libnm-glib)
BuildRequires:  pkgconfig(libpanelapplet-2.0)
BuildRequires:  pkgconfig(libslab)
BuildRequires:  pkgconfig(unique-1.0)
BuildRequires:  pkgconfig(x11)
Requires:       tango-icon-theme
Recommends:     %{name}-lang
Recommends:     tracker-gui
# As of Sep 2008, we don't need libssui anymore and we actually conflict with
# libssui for .desktop files.
# we dont really have the libraries in the package but the functionality
Provides:       libssui = 0.5.7
Obsoletes:      libssui < 0.5.7
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
The GNOME Desktop Menu and Application Browser.

%package -n nautilus-gnome-main-menu
License:        GPLv2+
Summary:        The GNOME Desktop Menu
Group:          System/GUI/GNOME

%description -n nautilus-gnome-main-menu
The GNOME Desktop Menu and Application Browser.

%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%configure --with-pic \
	--libexecdir=%{_libexecdir}/%{name} \
	--enable-nautilus-extension \
	--disable-static
%__make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file application-browser
%suse_update_desktop_file gnome-screensaver-lock
%suse_update_desktop_file gnome-session-logout
%suse_update_desktop_file gnome-session-shutdown
%suse_update_desktop_file trigger-panel-run-dialog
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%post
%desktop_database_post

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun
%desktop_database_postun

%files -f %{name}.schemas_list
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/application-browser
%{_bindir}/trigger-panel-run-dialog
%{_libdir}/bonobo/servers/GNOME_MainMenu.server
%{_libexecdir}/gnome-main-menu/
%{_datadir}/applications/*.desktop
%{_datadir}/gnome-2.0/ui/GNOME_MainMenu_ContextMenu.xml
%{_datadir}/gnome-main-menu/

%files lang -f %{name}.lang

%files -n nautilus-gnome-main-menu
%defattr (-, root, root)
%{_libdir}/nautilus/extensions-2.0/*.so

%changelog
openSUSE Build Service is sponsored by