File gnome-menus.spec of Package gnome-menus

#
# spec file for package gnome-menus (Version 2.28.0.1)
#
# 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/
#

# norootforbuild


Name:           gnome-menus
BuildRequires:  fdupes
BuildRequires:  glib2-devel
BuildRequires:  intltool
BuildRequires:  python-devel
BuildRequires:  python-gtk
BuildRequires:  update-desktop-files
License:        GFDL v1.1 ; GPL v2 or later ; LGPL v2.1 or later
Group:          System/GUI/GNOME
Version:        2.28.0.1
Release:        1
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:        GFDL v1.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
#

%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.

%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.

%package branding-upstream
License:        GFDL v1.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(%{name}:branding-upstream)
#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.

%package -n python-gnome-menus
License:        GFDL v1.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.

%package editor
License:        GFDL v1.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.

%package devel
License:        GFDL v1.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.

%lang_package
%prep
%setup -q
%patch3

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

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%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
%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
## ha/ig does not exist in Factory currently
##%if %suse_version <= 1110
# exclude locales which don't exist on old versions of openSUSE
%exclude %{_datadir}/locale/ha/LC_MESSAGES/*
%exclude %{_datadir}/locale/ig/LC_MESSAGES/*
##%endif

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

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

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

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

%changelog
openSUSE Build Service is sponsored by