File lxde-common-branding-openSUSE.spec of Package lxde-common-branding-openSUSE
#
# spec file for package lxde-common-branding-openSUSE
#
# 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
%define upstream_ver 0.5.5
Name: lxde-common-branding-openSUSE
Version: 12.1
Release: 19
License: GPL-2.0
Source0: lxde-common-%{upstream_ver}.tar.bz2
Source1: suse.png
Source2: suse-logout.png
%if 0%{?suse_version} < 1200
Patch0: lxde-common-0.5.5-pcmanfm-default-11.4.patch
%else
Patch0: lxde-common-0.5.5-pcmanfm-default.patch
%endif
Patch1: lxde-common-0.5.5-openbox-menu.patch
Patch2: lxde-common-0.5.5-lxpanel.patch
Patch3: lxde-common-0.5.5-lxde-logout.patch
Patch4: lxde-common-0.5.5-openbox-shortcut.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf automake intltool update-desktop-files
BuildRequires: fdupes
Group: System/GUI/LXDE
Url: http://www.opensuse.org
Summary: openSUSE branding for LXDE
BuildArch: noarch
Provides: lxde-common-branding = %{version}
Conflicts: otherproviders(lxde-common-branding)
Supplements: packageand(lxde-common:branding-openSUSE)
Requires: desktop-data-openSUSE
%if 0%{?suse_version} > 1200
Requires: wallpaper-branding-openSUSE
%endif
%description
This branding-style package sets openSUSE style improvements into LXDE.
You should always prefer branding-openSUSE packages to branding-upstream.
%prep
%setup -q -n lxde-common-%{upstream_ver}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
# keep enable-man even if not needed or make will fail
%configure --enable-man
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__cp %SOURCE1 %buildroot/%_datadir/lxde/images/
%__cp %SOURCE2 %buildroot/%_datadir/lxde/images/
#delete not branding files
%__rm -rf %buildroot/%_datadir/xsessions
%__rm -rf %buildroot/%_bindir/openbox-lxde
%__rm -rf %buildroot/%_bindir/startlxde
%__rm -rf %buildroot/%_datadir/lxde/wallpapers
%__rm -rf %buildroot/%_mandir
%fdupes -s %{buildroot}
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%_bindir/lxde-logout
%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
%dir %_datadir/lxde/images
%dir %_datadir/lxde/openbox
%_datadir/lxde/openbox/*.xml
%_datadir/lxde/images/logout-banner.png
%_datadir/lxde/images/lxde-icon.png
%_datadir/lxde/images/suse-logout.png
%_datadir/lxde/images/suse.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