File lxde-common-branding-openSUSE.spec of Package lxde-common-branding-openSUSE

#
# spec file for package lxde-common-branding-openSUSE (Version 11.3)
#
# Copyright (c) 2010 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-branding-openSUSE
Version:        11.3
Release:        13
License:        GPL
Source0:        lxde-common-0.5.0.tar.bz2
Source1:        suse.png
Source2:        suse-logout.png
Patch0:         lxde-common-startlxde.diff
Patch1:         lxde-common-lxpanel.diff
Patch2:         lxde-common-0.5.0-pcmanfm2.patch
Patch3:         lxde-logout.patch
Patch4:         lxde-common-0.5-openbox-menu.patch
Patch5:         lxde-common-openbox-shortcut.patch
Patch6:         lxde-common-0.5.0-pcmanfm-default.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:        OpenSUSE branding
BuildArch:      noarch
Provides:       lxde-common-branding = %{version}
Conflicts:      otherproviders(lxde-common-branding)
Supplements:    packageand(lxde-common:branding-openSUSE)
Requires:       desktop-data-openSUSE

%description
This branding-style package sets openSUSE style improvments into LXDE.
You should always prefer branding-openSUSE packages to branding-upstream.

%prep
%setup -q -n lxde-common-0.5.0
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
# keep enable-man even if not needed or make will fail
%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
%__cp %SOURCE1 %buildroot/%_datadir/lxde/images/
%__cp %SOURCE2 %buildroot/%_datadir/lxde/images/
#delete not branding files
%__rm -rf %buildroot/%_datadir/applications
%__rm -rf %buildroot/%_datadir/xsessions
%fdupes -s %{buildroot}

%clean
rm -rf %buildroot

%files 
%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
%dir %_datadir/lxde/images
%_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/lxsession/LXDE
%config %_sysconfdir/xdg/lxsession/LXDE/autostart
%config %_sysconfdir/xdg/lxsession/LXDE/desktop.conf
#exclude non branding files
%exclude %_bindir/openbox-lxde
%exclude  %_bindir/startlxde
%exclude  %_datadir/lxde/wallpapers
%exclude %_datadir/lxde/wallpapers/*.jpg
%exclude %_datadir/man/man1/*

%changelog
openSUSE Build Service is sponsored by