File xdg-utils.spec of Package xdg-utils.7563

#
# spec file for package xdg-utils
#
# 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 http://bugs.opensuse.org/
#


Name:           xdg-utils
BuildRequires:  make
BuildRequires:  xmlto
BuildRequires:  xz
# for xmlto to be able to generate text from html
BuildRequires:  w3m
Summary:        Utilities to uniformly interface desktop environments
License:        MIT
Group:          System/GUI/Other
Version:        20140630
Release:        0
BuildArch:      noarch
Url:            http://portland.freedesktop.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# http://portland.freedesktop.org/download/xdg-utils-%%{version}.tgz
Source0:        xdg-utils-%{version}.tar.xz
Patch0:         install-some-more-scripts.diff
Patch8:         xdg-screensaver-gnome-perl.diff
# PATCH-FIX-UPSTREAM xdg-screensaver-gnome-dbus.patch fcrozat@suse.com -- No longer call gnome-screensaver-command
Patch9:         xdg-screensaver-gnome-dbus.patch
# PATCH-FIX-SLE xdg-su-prefer-gnomesu-over-xterm.diff alarrosa@suse.com -- Prefer gnomesu if available over xterm and su (bnc#893879)
Patch10:        xdg-su-prefer-gnomesu-over-xterm.diff
# PATCH-FIX-UPSTREAM xdg-open-fix-CVE-2014-9622.diff alarrosa@suse.com -- Fix RCE in xdg-open CVE-2014-9622 (bnc#913676)
Patch11:        xdg-open-fix-CVE-2014-9622.diff
# PATCH-FIX-SLE xdg-mime-fix-one-result.diff alarrosa@suse.com -- Fix to return only one result (bnc#906625)
Patch12:        xdg-mime-fix-one-result.diff
# PATCH-FIX-UPSTREAM 0001-Avoid-argument-injection-vulnerability-in-open_envvar.patch alarrosa@suse.com -- Fix argument injection in BROWSER (boo#1093086, CVE-2017-18266)
Patch13:        0001-Avoid-argument-injection-vulnerability-in-open_envvar.patch
Requires:       perl
Requires:       perl-Net-DBus
Requires:       perl-X11-Protocol
Requires:       which

%description
The xdg-utils package is a set of simple scripts that provide basic
desktop integration functions for any Free Desktop, such as Linux.

They are intended to provide a set of defacto standards.  This means
   that: *  Third party software developers can rely on these
   xdg-utils for all of their simple integration needs.

*  Developers of desktop environments can make sure that their
   environments are well supported

If a desktop developer wants to be certain that their environment
functions with all third party software, then can simply make sure that
these utilities work properly in their environment.

%prep
%setup -q -n %name-%{version}
%patch0 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1

%build
%configure
(cd scripts; touch *.in; make %{?_smp_mflags} scripts)
make %{?_smp_mflags}

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc LICENSE README TODO ChangeLog
%{_bindir}/xdg-desktop-icon
%{_bindir}/xdg-desktop-menu
%{_bindir}/xdg-email
%{_bindir}/xdg-icon-resource
%{_bindir}/xdg-mime
%{_bindir}/xdg-open
%{_bindir}/xdg-su
%{_bindir}/xdg-screensaver
%{_bindir}/xdg-settings
%{_bindir}/xdg-terminal
%{_mandir}/man1/xdg-desktop-icon.1*
%{_mandir}/man1/xdg-desktop-menu.1*
%{_mandir}/man1/xdg-email.1*
%{_mandir}/man1/xdg-icon-resource.1*
%{_mandir}/man1/xdg-mime.1*
%{_mandir}/man1/xdg-open.1*
%{_mandir}/man1/xdg-terminal.1*
%{_mandir}/man1/xdg-screensaver.1*
%{_mandir}/man1/xdg-settings.1*
%{_mandir}/man1/xdg-su.1*

%changelog
openSUSE Build Service is sponsored by