File plasma-contour-config.spec of Package plasma-contour-config

Name:           plasma-contour-config
Summary:        Plasma Contour configuration
Version:        0.2.3
Release:        0
License:        GPLv2+
Group:          System/GUI/KDE
Url:            http://plasma.kde.org
Source:         %name-%version.tar
Requires:       plasma-mobile plasma-contour

Autoreqprov:    on
BuildRoot:      %{_tmppath}/%{name}-%version-build
BuildArch:      noarch

%description
Configures the system to run with the Plasma Mobile UI.


Authors:
--------
    Sebastian Kügler <sebas@open-slx.com>

%prep
%setup -q

%build
# nothing to do

%install


# default configuration for the desktop
install -d -m 0755 $RPM_BUILD_ROOT/etc/kde4/share/config
cp -a *rc $RPM_BUILD_ROOT/etc/kde4/share/config/
cp -a lowspacesuse $RPM_BUILD_ROOT/etc/kde4/share/config/

# start plasma-mobile instead of plasma-desktop
install -d -m 0755 $RPM_BUILD_ROOT/etc/kde4/Autostart
cp -a *.desktop $RPM_BUILD_ROOT/etc/kde4/Autostart/

install -d -m 0755 $RPM_BUILD_ROOT/usr/share/autostart
cp -a *.desktop $RPM_BUILD_ROOT/usr/share/autostart

# launchers
install -d -m 0755 $RPM_BUILD_ROOT/usr/share/kde4/config/SuSE/default/tablet
cp -a launchers/*.desktop $RPM_BUILD_ROOT/usr/share/kde4/config/SuSE/default/tablet

install -d -m 0755 $RPM_BUILD_ROOT/usr/share/kde4/apps/plasma-mobile
cp -a howto $RPM_BUILD_ROOT/usr/share/kde4/apps/plasma-mobile/

%pre

touch "/tmp/pre-ran"

%post
touch "/tmp/post-ran"

rm /usr/share/autostart/SUSEgreeter.desktop || true


%clean
rm -rf $RPM_BUILD_ROOT

%postun


%files
%defattr(-,root,root)
%config /etc/kde4/
/usr/share/autostart/
/usr/share/kde4/
#/usr/share/kde4/config/SuSE/default
/usr/share/kde4/apps/plasma-mobile/howto/


%changelog
openSUSE Build Service is sponsored by