File xdg-menu.spec of Package xdg-menu

# spec file for package xdg-menu
# Copyright (c) 2014 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

Name:           xdg-menu
Version:        0.2
Release:        0
Summary:        XDG Menus for WindowMaker and other Window Managers
License:        GPL-2.0+
Group:          System/GUI/Other
Source0:        %{name}.tar.bz2
Patch0:         %{name}-xfce4.patch
Patch1:         %{name}-box.patch
Patch2:         %{name}-twm.patch
Patch3:         %{name}-xfce4-icon.patch
Patch4:         %{name}-gnome-path.patch
Patch5:         %{name}-icewm.patch
Patch6:         %{name}-pekwm.patch
Patch7:         %{name}-translation-bnc463972.patch
Patch8:         %{name}-accept-defaultlayout-bnc529057.patch
# PATCH-FIX-OPENSUSE xdg-menu-su.patch -- Use "su" instead of "sux" to run commands with root privileges in xdg_menu_su (sux is deprecated)
Patch9:         xdg-menu-su.patch
Requires:       desktop-data
Requires:       perl-XML-Parser
%if 0%{?suse_version} > 1320
Requires:       xterm-bin
Requires:       xterm
Requires:       perl(Locale::gettext)
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package contains a Perl script which converts XDG menus to formats
used by WindowMaker and other window managers.

%setup -q -n xdg-menu
%patch1 -p1


mkdir -p %{buildroot}%{_bindir}
install -pm 0755 * %{buildroot}%{_bindir}


openSUSE Build Service is sponsored by