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.1
Release:        3.<RELEASE3>
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
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 -n xfce-utils-%{version}

%build
%configure --docdir=%{_defaultdocdir}/%{name}
make V=1 %{?_smp_mflags}

%install
%make_install
install -p -m 644 ChangeLog README COPYING \
    %{buildroot}%{_defaultdocdir}/%{name}
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
%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)
%{_bindir}/startxfce4
%{_bindir}/xfbrowser4
%{_bindir}/xfce4-about
%{_bindir}/xfhelp4
%{_bindir}/xflock4
%{_bindir}/xfmountdev4
%{_bindir}/xfrun4
%{_bindir}/xfterm4
# should be libexecdir, upstream uses libdir
%dir %{_libdir}/xfce4
%dir %{_libdir}/xfce4/xfconf-migration
%{_libdir}/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)
%doc %{_defaultdocdir}/%{name}

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by