File meego-menus.spec of Package meego-menus
#
# spec file for package moblin-menus (Version 0.1.6)
#
# Copyright (c) 2010 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: meego-menus
Summary: Configuration and data files for the desktop menus
Group: System/GUI/Other
Version: 0.2.0
Release: 0
License: GPL v2 only
Url: http://www.meego.com
Source0: %{name}-%{version}.tar.bz2
Source1: moblin-YaST.menu
# PATCH-FIX-OPENSUSE suse-menus.patch
Patch1: suse-menus.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: gnome-menus-branding
BuildRequires: intltool
BuildRequires: gettext
Provides: desktop-data
%description
Configuration and data files for the desktop menus in Meego
%prep
%setup -q -n %{name}-%{version}
#%patch1 -p1
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%makeinstall
%find_lang meego-menus || echo -n >> meego-menus.lang
mkdir -p %{buildroot}/%{_datadir}/doc/%{name}-%{version}
for f in `ls %{buildroot}/%{_datadir}/doc/`; do
if [ -f %{buildroot}/%{_datadir}/doc/$f ]; then
mv %{buildroot}/%{_datadir}/doc/$f %{buildroot}/%{_datadir}/doc/%{name}-%{version}
fi
done
mv %{buildroot}/%{_sysconfdir}/xdg/menus/applications.menu %{buildroot}/%{_sysconfdir}/xdg/menus/moblin-applications.menu
install -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/xdg/menus
#rm %{buildroot}/%{_sysconfdir}/xdg/menus/preferences.menu
#rm %{buildroot}/%{_sysconfdir}/xdg/menus/settings.menu
%clean
rm -rf %{buildroot}
%files -f meego-menus.lang
%defattr(-,root,root,-)
%dir %{_sysconfdir}/xdg/menus
%{_sysconfdir}/xdg/menus/*-merged
%{_sysconfdir}/xdg/menus/*.menu
#%exclude %{_sysconfdir}/xdg/menus/preferences.menu
#%exclude %{_sysconfdir}/xdg/menus/settings.menu
%dir %{_datadir}/desktop-directories
%{_datadir}/desktop-directories/*.directory
%changelog