File gnome-menus.spec of Package gnome-menus

#
# spec file for package gnome-menus (Version 2.24.1)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           gnome-menus
BuildRequires:  fdupes
BuildRequires:  glib2-devel
BuildRequires:  gnome-common
BuildRequires:  intltool
BuildRequires:  perl-XML-Parser
BuildRequires:  python-devel
BuildRequires:  python-gtk
BuildRequires:  update-desktop-files
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later; LGPL v2.1 or later
Group:          System/GUI/GNOME
Version:        2.24.1
Release:        2
Summary:        The GNOME Desktop Menu
Source:         %{name}-%{version}.tar.bz2
Url:            http://www.gnome.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch3:         gnome-menus-x-suse-unimportant.patch
Requires:       %{name}-lang = %{version}
Requires:       %{name}-branding

%package -n libgnome-menu2
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later; LGPL v2.1 or later
Summary:        The GNOME Desktop Menu
Group:          System/GUI/GNOME
Requires:       %{name} >= %{version}
# bug437293
%ifarch ppc64
Obsoletes:      gnome-menus-64bit
%endif
%ifarch  %ix86 ppc
Obsoletes:      gnome-menus-32bit
%endif
#

%description -n libgnome-menu2
This package is free software and is part of the GNOME project.

The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:

http://www.freedesktop.org/Standards/menu-spec

Also contained here are the GNOME menu layout configuration files,
.directory files, and assorted menu-related utility programs.



Authors:
--------
    Havoc Pennington <hp@redhat.com>
    Mark McLoughlin <mark@skynet.ie>

%description
This package is free software and is part of the GNOME project.

The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:

http://www.freedesktop.org/Standards/menu-spec

Also contained here are the GNOME menu layout configuration files,
.directory files, and assorted menu-related utility programs.



Authors:
--------
    Havoc Pennington <hp@redhat.com>
    Mark McLoughlin <mark@skynet.ie>

%package branding-upstream
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later; LGPL v2.1 or later
Summary:        Upstream Branding of The GNOME Desktop Menu
Group:          System/GUI/GNOME
Provides:       %{name}-branding = %{version}
Conflicts:      otherproviders(%{name}-branding)
Supplements:    packageand(branding-upstream:%{name})
#BRAND: This package contains set of needed .menu files in
#BRAND: /etc/xdg/menus. .directory files in
#BRAND: %{_datadir}/desktop-directories/Multimedia.directory are part of
#BRAND: the main package. If you need custom one, simply it put there
#BRAND: and modify .menu file to refer to it.

%description branding-upstream
This package is free software and is part of the GNOME project.

The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:

http://www.freedesktop.org/Standards/menu-spec

Also contained here are the GNOME menu layout configuration files,
.directory files, and assorted menu-related utility programs.



Authors:
--------
    Havoc Pennington <hp@redhat.com>
    Mark McLoughlin <mark@skynet.ie>

%package -n python-gnome-menus
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later; LGPL v2.1 or later
Summary:        Python Bindings for the GNOME Desktop Menu
Group:          System/GUI/GNOME
Enhances:       %{name}
Requires:       libgnome-menu2
Requires:       python-gtk
%py_requires

%description -n python-gnome-menus
This package is free software and is part of the GNOME project.

The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:

http://www.freedesktop.org/Standards/menu-spec

Also contained here are the GNOME menu layout configuration files,
.directory files, and assorted menu-related utility programs.



Authors:
--------
    Havoc Pennington <hp@redhat.com>
    Mark McLoughlin <mark@skynet.ie>

%package editor
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later; LGPL v2.1 or later
Summary:        Editor for the GNOME Desktop Menu
Group:          System/GUI/GNOME
Enhances:       %{name}
Requires:       python-gnome-menus
%py_requires

%description editor
This package is free software and is part of the GNOME project.

The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:

http://www.freedesktop.org/Standards/menu-spec

Also contained here are the GNOME menu layout configuration files,
.directory files, and assorted menu-related utility programs.



Authors:
--------
    Havoc Pennington <hp@redhat.com>
    Mark McLoughlin <mark@skynet.ie>

%package devel
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later; LGPL v2.1 or later
Summary:        The GNOME Desktop Menu
Group:          System/GUI/GNOME
Requires:       libgnome-menu2 = %{version} glib2-devel

%description devel
This package is free software and is part of the GNOME project.

The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:

http://www.freedesktop.org/Standards/menu-spec

Also contained here are the GNOME menu layout configuration files,
.directory files, and assorted menu-related utility programs.



Authors:
--------
    Havoc Pennington <hp@redhat.com>
    Mark McLoughlin <mark@skynet.ie>

%lang_package
%prep
%setup -q
%patch3

%build
autoreconf -f -i
%configure\
	--disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall
%find_lang %{name}
# Rename applications.menu to not collide with other desktops:
mv $RPM_BUILD_ROOT/%{_sysconfdir}/xdg/menus/applications.menu $RPM_BUILD_ROOT/%{_sysconfdir}/xdg/menus/gnome-applications.menu
rm $RPM_BUILD_ROOT%{py_sitedir}/*.*a
%fdupes $RPM_BUILD_ROOT
%suse_update_desktop_file gmenu-simple-editor

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libgnome-menu2 -p /sbin/ldconfig

%postun -n libgnome-menu2 -p /sbin/ldconfig

%files
%defattr (-, root, root)
%doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README
%dir %{_datadir}/desktop-directories
%{_datadir}/desktop-directories/*.directory
%dir %{_sysconfdir}/xdg/menus

%files -n libgnome-menu2
%defattr (-, root, root)
%{_libdir}/libgnome-menu.so.2*

%files lang -f %{name}.lang

%files branding-upstream
%defattr (-, root, root)
%{_sysconfdir}/xdg/menus/*.menu

%files -n python-gnome-menus
%defattr (-, root, root)
%{py_sitedir}/gmenu.so

%files editor
%defattr (-, root, root)
%{_bindir}/gmenu-simple-editor
%{_datadir}/applications/gmenu-simple-editor.desktop
%dir %{_datadir}/gnome-menus
%dir %{_datadir}/gnome-menus/glade
%{_datadir}/gnome-menus/glade/gmenu-simple-editor.glade
%{py_sitedir}/GMenuSimpleEditor

%files devel
%defattr (-, root, root)
%{_includedir}/gnome-menus
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc

%changelog
* Mon Nov 24 2008 olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
* Fri Oct 24 2008 vuntz@novell.com
- Split the python bindings from gnome-menus-editor to
  python-gnome-menus. We can have alacarte depending on
  python-gnome-menus this way.
* Wed Oct 22 2008 maw@suse.de
- Update to version 2.24.1:
  + Updated translations.
* Mon Oct 06 2008 sbrabec@suse.cz
- Conflict with other branding providers (FATE#304881).
* Wed Sep 24 2008 mboman@suse.de
- Update to version 2.24.0:
  + Updated translations
* Fri Sep 12 2008 vuntz@novell.com
- Update to version 2.23.92:
  + Updated translations
* Tue Sep 02 2008 mboman@novell.com
- Update to version 2.23.91:
  + Updated translations
* Mon Aug 04 2008 captain.magnus@opensuse.org
- Update to version 2.23.6
  + Fix the icon for the accessibility menu (Matthias Clasen)
  + Updated translations
- Update to version 2.23.5
  + Updated translations.
* Thu Jul 31 2008 sbrabec@suse.cz
- Make package branding-able (fate#303889).
- Split editor and menu editor python library to a separate
  package gnome-menus-editor.
* Tue Jun 24 2008 maw@suse.de
- Update to version 2.23.4:
  + Updated translations.
* Wed Jun 18 2008 maw@suse.de
- Update to version 2.23.3:
  + Features:
  * Implement handling of $XDG_MENU_PREFIX from the xdg menu
  specification
  * Do not show separators at the beginning/end of a menu, or
  after another separator, but add an option to show them
  + Fixes:
  * Fix the values of <DefaultLayout> (ie, show_empty, inline,
  inline_limit, etc.) not being inherited by submenus when the
  <DefaultLayout> node is after the <Menu> node in the .menu
  file
  * Fix a bug where the fallback on the filename in <MergeFile>
  couldn't be used
  * Call g_type_init() because GIO needs it and we use GIO for
  file monitoring
  * Fix a crash when a file notification is emitted with a
  non-ascii filename
  * Remove entries from the excluded set if they are included
  after they were excluded (eg:
  <Exclude>something</Exclude><Include>something</Include>)
  * Implicitly add <Merge> nodes to <Layout> and <DefaultLayout>
  that are missing some
  * Correctly order the move operations to execute so that
  moving something and moving it back again works as undo
  * Simplify some code
  * Plug leak
  + Layout:
  * Do not show accessibility items in the accessories submenu
  * Merge menus and files at the end of the layout of
  settings.menu
  * Explicitly do not include gnomecc.menu in the preferences
  menu instead of explicitly excluding it, so that alacarte
  doesn't know it was excluded
  * Rename many .directory files so they use fd.o Categories
  as name
  * Remove preferences.menu and directly include things in
  settings.menu
  * Update a few icons used in .directory files according to
  the icon naming spec
  * Remove the accessibility submenu from Preferences, since
  it's empty now anyway
  + Misc
  * Remove shebangs from non-executable Python scripts
  + Updated translations
- Respin gnome-menus-x-suse-unimportant.patch
- Drop obsolete patch: gnome-menus-xdg-menu-prefix.patch.
* Thu May 22 2008 vuntz@suse.de
- Add back Hidden.directory since the removal of this has a side
  effect on the menu in KDE (GNOME Settings now appears there, not
  quite sure why it doesn't do so in GNOME...). Bug reported on
  IRC.
* Mon May 19 2008 vuntz@suse.de
- Tiny fix in gnome-menus-xdg-menu-prefix.patch (taken from svn).
* Mon May 19 2008 vuntz@suse.de
- Update gnome-menus-xdg-menu-prefix.patch to handle <MergeFile>
  too (taken from upstream).
- Remove a comment in the spec file that is now wrong.
* Sat May 17 2008 vuntz@suse.de
- Basically an update to fix the look of the panel menu, will
  tremendously with bnc#329630.
- Add gnome-menus-xdg-menu-prefix.patch from upstream to prepend
  $XDG_MENU_PREFIX to applications.menu when the environment
  variable is set.
- Drop gnome-desktop-ximian-menus.patch: it's been unused for a
  while since we were not using the upstream menu files. No need in
  keeping it.
- Stop shipping our own applications.menu. It's not even valid, it
  seems (nothing displayed in GNOME...). Instead, keep the upstream
  one as gnome-applications.menu
- Drop gnome-menus-preferences-no-merge.patch: no need to patch
  preferences.menu since we ship our own and overwrite the patched
  one...
- Drop the Hidden stuff (and file Hidden.directory): it's useless
  since we don't ship preferences-gnome.menu since January 2007.
- Change settings.menu to include preferences.menu instead of just
  including the yast desktop file.
- Change the icons in the .directory files we ship to the ones used
  by upstream for better consistency. They were only visible in
  alacarte before, which explains why we've kept the old ones so
  long.
* Fri Apr 11 2008 maw@suse.de
- Update to version 2.22.1:
  + Minor fixes
  + Updated translations.
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Wed Apr 02 2008 vuntz@suse.de
- Do not own uz@cyrillic locale directories. It's part of the
  filesystem package now.
* Thu Mar 13 2008 vuntz@suse.de
- Update to version 2.22.0:
  + Updated translations.
* Tue Mar 04 2008 maw@suse.de
- Update to version 2.21.92:
  + Updated translations.
* Thu Feb 21 2008 maw@suse.de
- Fix lang subpackage.
* Wed Feb 20 2008 maw@suse.de
- Fix silly build error.
* Mon Feb 18 2008 maw@suse.de
- Update to version 2.21.91:
  + Remove the various monitor backends, and unconditionnaly use gio
  + Don't install gnome-menu-spec-test
  + Add a hard dep on gio
  + Updated translations.
* Wed Jan 30 2008 sreeves@suse.de
- split out shared library according to shared library package policy
  split is needed for BNC#274974
  add call to suse_update_desktop_files for existing .desktop file
  remove our patch using gnomevfs and change to upstream default of gio
* Tue Jan 29 2008 rodrigo@suse.de
- Updated to version 2.21.90:
  * When using gio, require version 2.15.2
  * Updated translations
* Tue Sep 18 2007 sbrabec@suse.cz
- Updated to version 2.20.0:
  * translations update
* Mon Sep 10 2007 mauro@suse.de
- Update to version 2.19.92:
  + Fix potential crash
  + Updated translations
* Thu Aug 30 2007 maw@suse.de
- Update to version 2.19.90:
  + Updated translations.
* Sat Aug 18 2007 aj@suse.de
- Fix build.
* Wed Aug 08 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage
- s#%%run_ldconfig#/sbin/ldconfig/ in %%post and %%postun.
* Fri Aug 03 2007 mauro@suse.de
- Update to version 2.19.6
- Bugfix for #448361.
* Wed Jul 11 2007 maw@suse.de
- Obsoletes: gnome-core is obsolete.
* Mon Jul 09 2007 maw@suse.de
- Update to version 2.19.4
- Crashes in python bindings and inotify backend fixed
- Updated translations
* Fri Apr 27 2007 sbrabec@suse.cz
- Do not call meinproc (#227624).
* Fri Mar 30 2007 maw@suse.de
- Update to version 2.18.0
- Updated Ukranian translation
- Reverts to the default use of the shell.
* Tue Feb 27 2007 maw@suse.de
- Update to version 2.17.91.
  * Rework the layout so that it's easy to have the old layout. The
  control center will ship its own menu file to have the layout for the
  shell. (Denis Washington)
  * New menu layout for the control center capplets (Denis Washington)
  * Flesh out inotify support (use --enable-inotify) (Mark)
  * Don't load incorrectly encoded .desktop files (Mark)
  * Fix compile warning (Mark)
* Tue Feb 13 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552#c17).
* Tue Jan 09 2007 sbrabec@suse.cz
- More spec file cleanups.
* Wed Dec 13 2006 maw@suse.de
- Move to /usr
- Do some spec cleanup.
* Tue Nov 21 2006 sbrabec@suse.cz
- Do not explicitly require mDNSResponder-lib blocking avahi compat
  package.
* Fri Oct 13 2006 danw@suse.de
- Remove dead patches
* Mon Oct 02 2006 jhargadon@suse.de
- update to version 2.16.1
- updated translations
* Mon Sep 25 2006 jhargadon@suse.de
- added %%py_requires to the specfile for bug #207922
* Thu Sep 14 2006 jhargadon@suse.de
- update to version 2.16.0
- updated translations
* Mon Aug 21 2006 jhargadon@suse.de
- update to version 2.15.91
- update translations
* Tue Aug 01 2006 gekker@suse.de
- Update to version 2.15.90
  * Correctly update LT_VERSION (Vincent)
  * Add new API to know if an application should be launched in a
  terminal and to know the path to the desktop file (Travis Watkins)
  * Complete python bindings for the "No Display" flag (Travis Watkins)
  * Allow specifying alternate menu files as command line arguments
  * Start inotify support
  * Add "include NoDisplay" flag (Mark McLoughlin)
  * Fix issue where menu wouldn't fully reload after lots of
  file change events (Mark McLoughlin, Frederic Crozat)
  * Remove some unused code (Kjartan Maraas)
  * Fix incorrect escaping of C format string (The Written Word)
  * Update translations
* Tue May 02 2006 sbrabec@suse.cz
- Moved system language settings from Personal to System (#171526).
* Wed Apr 19 2006 sreeves@suse.de
- Fix for 152999 - Add "yast2 lan" to CC
  Fix for 152681 - Add "yast2 modem" and "yast2 dsl" to CC
* Wed Mar 29 2006 sreeves@suse.de
- Look for new X-SuSE-ControlCenter-* category in preferences.menu
* Tue Feb 21 2006 sbrabec@suse.cz
- Added infrastructure to allow translation of control center
  labels (144946#c12).
* Sun Feb 05 2006 aj@suse.de
- Cleanup Requires.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Dec 17 2005 sreeves@suse.de
- Add additional yast items into control-center as per the spec
* Mon Sep 26 2005 mls@suse.de
- make devel package require base package
* Fri Sep 09 2005 jpr@suse.de
- Revert patch for #113531
* Tue Sep 06 2005 sbrabec@suse.cz
- Updated to version 2.12.0.
* Wed Aug 31 2005 clahey@suse.de
- Switch from fam to gnome-vfs.  Thanks cutch.  Fixes bug #112846.
* Wed Aug 31 2005 clahey@suse.de
- Patch from Meeks.  Fixes bug #113531
* Tue Aug 23 2005 gekker@suse.de
- Update to version 2.11.92
- Remove upstreamed patch
* Thu Aug 18 2005 clahey@suse.de
- Add patch to get rid of Applications->Applications.
* Tue Aug 16 2005 sbrabec@suse.cz
- Do not require kdebase3.
* Tue Aug 02 2005 gekker@suse.de
- Update to 2.11.90
* Fri Jun 17 2005 gekker@suse.de
- Update to 2.11.1.1
* Mon Mar 14 2005 clahey@suse.de
- Add hack to hide menus items with X-SuSE-Unimportant.
* Sat Mar 12 2005 clahey@suse.de
- Don't merge in default merge dirs in preferences.gnome.menu.
  Fixes 72148.
* Wed Mar 09 2005 clahey@suse.de
- Replace the first section of Desktop menu with gnomecc and YaST.
* Wed Mar 09 2005 gekker@suse.de
- Update to version 2.10.0 (GNOME 2.10).
* Tue Mar 08 2005 clahey@suse.de
- Replaced individual patches with a backport of the fixes in
  gnome-menus 2.10.1.
* Fri Mar 04 2005 clahey@suse.de
- Add patches from gnome cvs for gnome bugs 168444 and 168445.
* Thu Mar 03 2005 gekker@suse.de
- Update to version 2.9.92
- Remove upstreamed patch
* Thu Feb 24 2005 clahey@suse.de
- Include the gnome preferences hidden in our preferences so that
  they won't appear in OnlyUnallocated <All/>.
* Mon Feb 21 2005 gekker@suse.de
- Add patch for menus showing up twice in some cases (167758 b.g.o)
* Wed Feb 16 2005 gekker@suse.de
- Fix control-center2 to show it's capplets (50904).
* Sun Feb 06 2005 gekker@suse.de
- Update to version 2.9.90
* Fri Feb 04 2005 clahey@suse.de
- Updated preferences.menu to be more correct.
* Mon Jan 24 2005 clahey@suse.de
- Added applications.menu.
* Fri Jan 21 2005 gekker@suse.de
- Adding package gnome-menus to distro
- Initial version 2.9.4
openSUSE Build Service is sponsored by