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

# spec file for package gnome-main-menu (Version 0.9.13)
# Copyright (c) 2009 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

Name:           gnome-main-menu
Version:        0.9.13
Release:        2
License:        GPL v2 or later
Summary:        The GNOME Desktop Menu
Group:          System/GUI/GNOME
Source:         %{name}-%{version}.tar.bz2
# PATCH-FEATURE-UPSTREAM gnome-main-menu-bnc187879-clear-recent-files.diff -- Add the ability to clear the recent-files, taken from git
Patch2:         gnome-main-menu-bnc187879-clear-recent-files.diff
# PATCH-FIX-UPSTREAM gnome-main-menu-bnc537483-force-redraw-workaround.patch -- Force redraw the menu after start application.
Patch3:         gnome-main-menu-bnc537483-force-redraw-workaround.patch
BuildRequires:  NetworkManager-devel
BuildRequires:  fdupes
BuildRequires:  gnome-desktop-devel
BuildRequires:  gnome-panel-devel
BuildRequires:  intltool
BuildRequires:  libglade2-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  libgtop-devel
%if %suse_version > 1110
BuildRequires:  libiw-devel
BuildRequires:  wireless-tools
BuildRequires:  libslab-devel
BuildRequires:  libunique-devel
BuildRequires:  nautilus-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Requires:       %{name}-lang = %{version}
Requires:       tango-icon-theme
# 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

The GNOME Desktop Menu and Application Browser.

%package -n nautilus-gnome-main-menu
License:        GPL v2 or later
Summary:        The GNOME Desktop Menu
Group:          System/GUI/GNOME

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

%setup -q
%patch2 -p1
%patch3 -p1

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

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}
%fdupes %{buildroot}

rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%post -p /sbin/ldconfig

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun -p /sbin/ldconfig

%files -f %{name}.schemas_list
%defattr (-, root, root)

%files lang -f %{name}.lang
%defattr (-, root, root)
%exclude %{_datadir}/locale/en_IGID/LC_MESSAGES/*

%files -n nautilus-gnome-main-menu
%defattr (-, root, root)

openSUSE Build Service is sponsored by