File lxde-common.spec of Package lxde-common
#
# spec file for package lxde-common
#
# 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: lxde-common
Version: 0.5.0
Release: 14
License: GPL
Source0: %name-%version.tar.bz2
Source1: lxde-new-wallpapers.tar.bz2
Source2: lxde-lock-screen.desktop
Patch0: %name-startlxde.diff
Patch1: %name-0.5.0-pcmanfm2.patch
Patch2: %name-0.5.0-lxde.desktop.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf automake gtk2-devel intltool pkg-config update-desktop-files
BuildRequires: docbook-utils docbook-xsl-stylesheets fdupes libxslt
Group: System/GUI/LXDE
Summary: This package provides a set of default configuration for LXDE
BuildArch: noarch
Provides: lxde-settings-daemon >= %version
Obsoletes: lxde-settings-daemon < %version
Requires: lxde-common-branding
%description
Lxde-common package provides a set of default configuration for LXDE.
It's an LXDE core package, since without it LXDE cannot run
%package branding-upstream
License: GPL
Group: System/GUI/LXDE
Summary: Upstream branding
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 defaults settings.
%prep
%setup -q -n %name-%version
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
autoreconf -fi
%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/
#%__cp %SOURCE1 %buildroot/%_datadir/lxde/images/
%suse_update_desktop_file %buildroot/%_datadir/applications/lxde-logout.desktop
%suse_update_desktop_file %buildroot/%_datadir/applications/lxde-lock-screen.desktop
%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
%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/pcmanfm
%_datadir/lxde/pcmanfm/pcmanfm.conf
%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/lxsession/LXDE
%config %_sysconfdir/xdg/lxsession/LXDE/autostart
%config %_sysconfdir/xdg/lxsession/LXDE/desktop.conf
%changelog