File lxde-common.spec of Package lxde-common
#
# spec file for package lxde-common
#
# Copyright (c) 2012 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: lxde-common
Version: 0.5.5
Release: 0
Url: http://www.lxde.org/
Source0: %name-%version.tar.bz2
Source1: lxde-new-wallpapers.tar.bz2
Source2: lxde-lock-screen.desktop
Patch0: %name-0.5.0-lxde.desktop.patch
Patch1: %name-0.5.5-fix-default-pcmanfm.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: docbook-utils
BuildRequires: docbook-xsl-stylesheets
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: libxslt
BuildRequires: update-desktop-files
Summary: This package provides a set of default configurations for LXDE
License: GPL-2.0
Group: System/GUI/LXDE
BuildArch: noarch
Provides: lxde-settings-daemon >= %version
Obsoletes: lxde-settings-daemon < %version
Requires: lxde-common-branding
%if 0%{?suse_version} >= 1140
Recommends: gtk2-engines
%endif
%description
Lxde-common package provides a set of default configurations for LXDE.
It's an LXDE core package, since without it LXDE cannot run.
%package branding-upstream
Summary: Upstream branding
Group: System/GUI/LXDE
Supplements: packageand(lxde-common:branding-upstream)
Conflicts: otherproviders(lxde-common-branding)
Provides: lxde-common-branding = %{version}
%description branding-upstream
This branding-style package sets default applications in LXDE in openSUSE.
This is a dumb package, which provides only upstream LXDE configurations as preferred defaults.
You most probably don't want this package. You probably want to install distribution default
lxde-common-branding and prefer openSUSE default settings.
%prep
%setup -q -n %name-%version
%patch0 -p1
%patch1 -p1
%build
%configure --enable-man
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
mkdir -p %buildroot/usr/share/applications
install -c -m 644 lxde-logout.desktop %buildroot/%_datadir/applications/lxde-logout.desktop
install -c -m 644 %SOURCE2 %buildroot/%_datadir/applications/
%suse_update_desktop_file %buildroot/%_datadir/applications/lxde-logout.desktop
%suse_update_desktop_file %buildroot/%_datadir/applications/lxde-lock-screen.desktop
# someone decided to not use autoconf, so patch1 doesn't help here
%if 0%{?suse_version} >= 1220
mv %buildroot/%_datadir/xsessions/{LXDE,lxde}.desktop
%endif
%suse_update_desktop_file %buildroot/%_datadir/xsessions/lxde.desktop
cd %buildroot/%_datadir/lxde/wallpapers
tar xjf %SOURCE1
mv %buildroot/%_datadir/lxde/wallpapers/lxde-new-wallpapers/* %buildroot/%_datadir/lxde/wallpapers/
rm -rf %buildroot/%_datadir/lxde/wallpapers/lxde-new-wallpapers
%fdupes -s %{buildroot}
%clean
rm -rf %buildroot
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root)
%_bindir/openbox-lxde
%_bindir/startlxde
%dir %_datadir/lxde
%dir %_datadir/lxde/wallpapers
%_datadir/lxde/wallpapers/*
%_datadir/man/man1/*
%_datadir/xsessions/lxde.desktop
%_datadir/applications/lxde-logout.desktop
%_datadir/applications/lxde-lock-screen.desktop
%files branding-upstream
%defattr(-,root,root)
%_bindir/lxde-logout
%dir %_datadir/lxde/openbox
%_datadir/lxde/openbox/*.xml
%dir %_datadir/lxpanel
%dir %_datadir/lxpanel/profile
%dir %_datadir/lxpanel/profile/LXDE
%_datadir/lxpanel/profile/LXDE/config
%dir %_datadir/lxpanel/profile/LXDE/panels
%_datadir/lxpanel/profile/LXDE/panels/panel
%dir %_datadir/lxde/images
%_datadir/lxde/images/logout-banner.png
%_datadir/lxde/images/lxde-icon.png
%dir %_sysconfdir/xdg/lxsession
%dir %_sysconfdir/xdg/pcmanfm
%dir %_sysconfdir/xdg/lxsession/LXDE
%dir %_sysconfdir/xdg/pcmanfm/LXDE
%config %_sysconfdir/xdg/lxsession/LXDE/autostart
%config %_sysconfdir/xdg/lxsession/LXDE/desktop.conf
%config %_sysconfdir/xdg/pcmanfm/LXDE/pcmanfm.conf
%changelog