File lxmenu-data.spec of Package lxmenu-data
#
# spec file for package lxmenu-data (Version 0.1.1)
#
# 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: lxmenu-data
Version: 0.1.1
Release: 4
License: GPL
Source0: %{name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE lxmenu-data-0.1.1-menu-customization.patch -- Guido Berhörster guido+opensuse.org@berhoerster.name
# Clean up lxde menu and improve user experience
Patch0: %name-0.1.1-menu-customization.patch
# PATCH-FIX-UPSTREAM lxmenu-data-0.1.1-fix-translations.patch -- Andrea Florio andrea@opensuse.org
# fix POTFILES.in to generate working po files
Patch1: %name-0.1.1-fix-translations.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc gettext-tools perl perl-XML-Parser pkgconfig
BuildRequires: autoconf automake intltool
BuildArch: noarch
Group: System/GUI/LXDE
Summary: A tool to build desktop menu for LXDE
%description
LXSession is the default X11 session manager of LXDE.
(LXDE: Lightweight X11 Desktop Environment)
http://lxde.sourceforge.net/
This package provides files required to build freedesktop.org
menu spec-compliant desktop menus for LXDE.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
cd po
intltool-update -r
cd ..
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%doc README AUTHORS COPYING
%dir %_sysconfdir/xdg/menus
%config %_sysconfdir/xdg/menus/lxde-applications.menu
%dir %{_datadir}/desktop-directories
%{_datadir}/desktop-directories/*
%changelog