SHA256
1
0
forked from pool/xdg-utils
xdg-utils/xdg-utils.spec

117 lines
3.5 KiB
RPMSpec

#
# spec file for package xdg-utils
#
# Copyright (c) 2011 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: xdg-utils
BuildRequires: make
License: MIT
Group: System/GUI/Other
Summary: Utilities to uniformly interface desktop environments
Version: 1.0.2
Release: 96
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.bz2
Source1: http://cgit.freedesktop.org/xdg/xdg-utils/plain/scripts/xdg-terminal
Patch0: xdg-su.diff
Patch1: xfce-su.diff
Patch2: CVE-2008-0386.diff
Patch3: xdg-kde4-upstream.patch
# PATCH-FEATURE-UPSTREAM xdg-utils-1.0.2-lxde-support.patch fdo#26058 andrea@opensuse.org
# this patch add lxde support to xdg-su and other scripts
Patch4: %name-1.0.2-lxde-support.patch
# PATCH-FIX-UPSTREAM xdg-utils-1.0.2-bnc591714.patch fdo#27551 andrea@opensuse.org
# this patch fix bnc#591714
Patch5: %name-1.0.2-bnc591714.patch
Patch6: xdg-screensaver-sleep.diff
Patch7: xdg-screensaver-gnome-dbus.diff
Patch8: xdg-screensaver-gnome-perl.diff
Requires: perl, perl-Net-DBus, perl-X11-Protocol
%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
%patch1
%patch2
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6
%patch7
%patch8
%build
%configure
make %{?_smp_flags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%__install -D -m0755 "%{SOURCE1}" "%{buildroot}%{_bindir}/xdg-terminal"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc LICENSE README TODO ChangeLog
%{_bindir}/xdg-terminal
#/usr/bin/xdg-copy
/usr/bin/xdg-desktop-icon
/usr/bin/xdg-desktop-menu
/usr/bin/xdg-email
/usr/bin/xdg-icon-resource
#/usr/bin/xdg-menu
/usr/bin/xdg-mime
/usr/bin/xdg-open
/usr/bin/xdg-su
/usr/bin/xdg-screensaver
#%{_mandir}/man1/xdg-copy.1*
#%{_mandir}/man1/xdg-desktop.1*
%{_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-menu.1*
%{_mandir}/man1/xdg-mime.1*
%{_mandir}/man1/xdg-open.1*
%{_mandir}/man1/xdg-su.1*
%{_mandir}/man1/xdg-screensaver.1*
%changelog