File gnome-menus-legacy.spec of Package gnome-menus-legacy
#
# spec file for package gnome-menus-legacy
#
# 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-menus-legacy
%define _name gnome-menus
Version: 3.0.1
Release: 8
License: LGPLv2.1+
Summary: The GNOME Desktop Menu - Legacy compatibility version
Url: http://www.gnome.org
Group: System/GUI/GNOME
Source: %{_name}-%{version}.tar.bz2
Source99: baselibs.conf
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch3: gnome-menus-x-suse-unimportant.patch
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
BuildRequires: python-devel
BuildRequires: python-gtk
%if 0%{?BUILD_FROM_VCS}
BuildRequires: gnome-common
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
http://www.freedesktop.org/Standards/menu-spec
This package is provided for backwards compatibility only and is
likely to disappear soon.
%package -n libgnome-menu2
License: LGPLv2.1+
Summary: The GNOME Desktop Menu
Group: System/GUI/GNOME
Requires: %{_name} >= %{version}
# bug437293
%ifarch ppc64
Obsoletes: gnome-menus-64bit
%endif
#
%description -n libgnome-menu2
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
http://www.freedesktop.org/Standards/menu-spec
This package is provided for backwards compatibility only and is
likely to disappear soon.
%package -n python-gnome-menus
License: LGPLv2.1+
Summary: Python Bindings for the GNOME Desktop Menu
Group: System/GUI/GNOME
Requires: libgnome-menu2
Enhances: %{name}
%py_requires
%description -n python-gnome-menus
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
http://www.freedesktop.org/Standards/menu-spec
This package is provided for backwards compatibility only and is
likely to disappear soon.
%package devel
License: LGPLv2.1+
Summary: The GNOME Desktop Menu
Group: System/GUI/GNOME
Requires: glib2-devel
Requires: libgnome-menu2 = %{version}
%description devel
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
http://www.freedesktop.org/Standards/menu-spec
This package is provided for backwards compatibility only and is
likely to disappear soon.
%prep
%setup -q -n %{_name}-%{version}
%patch3
%if 0%{?BUILD_FROM_VCS}
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
%endif
%build
%configure\
--disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
## In the legacy package, we only care about the library itself; other files
## will come with the non-legacy package
# Remove .menu and .directory files
rm %{buildroot}%{_sysconfdir}/xdg/menus/applications.menu
rm %{buildroot}%{_datadir}/desktop-directories/*.directory
# Remove editor files
rm %{buildroot}%{_bindir}/gmenu-simple-editor
rm %{buildroot}%{_datadir}/applications/gmenu-simple-editor.desktop
rm -r %{buildroot}%{_datadir}/gnome-menus/ui/
rm -r %{buildroot}%{py_sitedir}/GMenuSimpleEditor/
# Remove translations that are only for the editor
rm %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/gnome-menus.mo
# Remove examples with python bindings as we don't encourage people to use
# those anymore
rm %{buildroot}%{_datadir}/gnome-menus/examples/gnome-menus-ls.py
%clean
rm -rf %{buildroot}
%post -n libgnome-menu2 -p /sbin/ldconfig
%postun -n libgnome-menu2 -p /sbin/ldconfig
%files -n libgnome-menu2
%defattr (-, root, root)
%doc AUTHORS COPYING.LIB ChangeLog NEWS README
%{_libdir}/libgnome-menu.so.2*
%{_libdir}/girepository-1.0/GMenu-2.0.typelib
%files -n python-gnome-menus
%defattr (-, root, root)
%{py_sitedir}/gmenu.so
%files devel
%defattr (-, root, root)
%{_includedir}/gnome-menus/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/GMenu-2.0.gir
%changelog