File xfce-utils.spec of Package xfce-utils
#
# spec file for package xfce-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/
#
Name: xfce-utils
Version: 4.8.3
Release: 1
License: GPLv2+
Summary: Collection of Scripts and Utilities for the Xfce Desktop Environment
Url: http://www.xfce.org/projects/xfce-utils/
Group: System/GUI/XFCE
Source: xfce-utils-%{version}.tar.bz2
Source1: xflock4.sh
Source100: %{name}-rpmlintrc
# PATCH-FIX-UPSTREAM xfce-utils-4.8.3-fix-xfhelp4-invocation.patch gber@opensuse.org -- Fix the invocation of xfhelp4 with a HTML file commonly used by Xfce components
Patch0: xfce-utils-4.8.3-fix-xfhelp4-invocation.patch
# PATCH-FIX-OPENSUSE xfce-utils-adapt-session-script.patch gber@opensuse.org -- Adapt upstream sessions script to openSUSE
Patch1: xfce-utils-adapt-session-script.patch
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxfce4ui-1)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-lang = %{version}
Recommends: %{name}-doc = %{version}
%description
This is a collection of scripts and utilities for the Xfce desktop environment,
including an about dialog, an application launcher, and several useful scripts
that are also used by other Xfce components such as the panel and the desktop
menu.
%package doc
License: GPLv2+
Summary: Documentation for xfce-utils
Group: Documentation/HTML
BuildArch: noarch
Requires: %{name} = %{version}
%description doc
This is a collection of scripts and utilities for the Xfce desktop environment,
including an about dialog, an application launcher, and several useful scripts
that are also used by other Xfce components such as the panel and the desktop
menu.
This package provides the documentation for xfce-utils.
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%configure \
--docdir=%{_datadir}/xfce4/xfce-utils \
--with-helper-path-prefix=%{_libexecdir} \
--with-vendor-info=openSUSE
make V=1 %{?_smp_mflags}
%install
%make_install
install -p -m 755 %{SOURCE1} %{buildroot}%{_bindir}/xflock4
%suse_update_desktop_file xfce4-about -r X-XFCE X-Xfce-Toplevel
%suse_update_desktop_file xfrun4 -r X-XFCE X-Xfce-Toplevel
%suse_update_desktop_file xfhelp4 -r X-XFCE X-Xfce-Toplevel
%suse_update_desktop_file xfconf-migration-4.6
chmod +x %{buildroot}%{_sysconfdir}/xdg/xfce4/xinitrc
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang xfce-utils
# temporarily disabled due to bnc#705989
#%%fdupes %{buildroot}%{_datadir}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/startxfce4
%{_bindir}/xfbrowser4
%{_bindir}/xfce4-about
%{_bindir}/xfhelp4
%{_bindir}/xflock4
%{_bindir}/xfmountdev4
%{_bindir}/xfrun4
%{_bindir}/xfterm4
%dir %{_libexecdir}/xfce4
%dir %{_libexecdir}/xfce4/xfconf-migration
%{_libexecdir}/xfce4/xfconf-migration/xfconf-migration-4.6.pl
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.xfce.RunDialog.service
%{_datadir}/icons/hicolor/48x48/apps/xfce4-logo.png
%{_datadir}/xsessions/xfce.desktop
%config %{_sysconfdir}/xdg/autostart/xfconf-migration-4.6.desktop
%config %{_sysconfdir}/xdg/xfce4/Xft.xrdb
%{_sysconfdir}/xdg/xfce4/xinitrc
%files doc
%defattr(-,root,root)
%dir %{_datadir}/xfce4
%dir %{_datadir}/xfce4/xfce-utils
%doc %{_datadir}/xfce4/xfce-utils/html/
%files lang -f %{name}.lang
%changelog