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 http://bugs.opensuse.org/
#
Name: gnome-main-menu
Version: 0.9.13
Release: 2
License: GPL v2 or later
Summary: The GNOME Desktop Menu
Url: http://www.gnome.org
Group: System/GUI/GNOME
Source: %{name}-%{version}.tar.bz2
# PATCH-FEATURE-UPSTREAM gnome-main-menu-bnc187879-clear-recent-files.diff dliang@novell.com -- 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 mxwu@novell.com -- 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
%else
BuildRequires: wireless-tools
%endif
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
%gconf_schemas_prereq
%description
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.
%lang_package
%prep
%setup -q
translation-update-upstream
%patch2 -p1
%patch3 -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}
%find_gconf_schemas
%fdupes %{buildroot}
%clean
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)
%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
%defattr (-, root, root)
%exclude %{_datadir}/locale/en_IGID/LC_MESSAGES/*
%files -n nautilus-gnome-main-menu
%defattr (-, root, root)
%{_libdir}/nautilus/extensions-1.0/*.so
%changelog