File alacarte.spec of Package alacarte

#
# spec file for package alacarte (Version 0.12.4)
#
# 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:           alacarte
BuildRequires:  fdupes
BuildRequires:  glib2-devel
BuildRequires:  gnome-menus-devel
BuildRequires:  intltool
BuildRequires:  python
BuildRequires:  python-gtk
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Version:        0.12.4
Release:        1
Requires:       %{name}-lang
Url:            http://www.realistanew.com/projects/alacarte
Group:          System/GUI/GNOME
License:        LGPL v2.1 or later
Summary:        Menu editor for GNOME
Source:         %{name}-%{version}.tar.bz2
# PATCH-NEEDS-REBASE alacarte_system_edit_mode.patch sreeves@novell.com (was PATCH-FEATURE-OPENSUSE)
Patch1:         alacarte_system_edit_mode.patch
Requires:       python-gnome-menus python-gtk python-xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif

%description
Alacarte is a simple freedesktop.org compliant menu editor for GNOME
that lets you change your menus, simply and quickly. Just click and
type to edit, add, and delete any menu entry.

%lang_package
%prep
%setup -q
translation-update-upstream
# Needs rebase. Reenable suse_update_desktop_file call below when enabling
# again
# %patch1 -p0

%build
# Patch is disabled
# autoreconf -f  -i
%configure
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file alacarte X-SuSE-ControlCenter-LookAndFeel
# Patch is disabled
# suse_update_desktop_file alacarte-system X-SuSE-ControlCenter-LookAndFeel
%find_lang %{name}
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/alacarte
%{_datadir}/alacarte
%{_datadir}/applications/alacarte.desktop
# Patch is disabled
# %{_datadir}/applications/alacarte-system.desktop
%{_datadir}/icons/hicolor/*/*/*.*
%{python_sitelib}/Alacarte

%files lang -f %name.lang
## bem does not exist in Factory currently, see bnc#501080
#%if %suse_version <= 1110
# exclude locales which don't exist on old versions of openSUSE
%exclude %{_datadir}/locale/bem/LC_MESSAGES/*
#%endif

%changelog
openSUSE Build Service is sponsored by