File plasma-tablet-config.spec of Package plasma-tablet-config
Name: plasma-tablet-config
Summary: Plasma Active Tablet configuration
Version: 0.2.5
Release: 0
License: GPLv2+
Group: System/GUI/KDE
Url: http://plasma.kde.org
Source: %name-%version.tar
Requires: plasma-mobile
Autoreqprov: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Configures the system to run Plasma Active's tablet ui by default
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/
install -d -m 0755 $RPM_BUILD_ROOT/usr/bin
cp TabletBrowser $RPM_BUILD_ROOT/usr/bin
%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/
/usr/bin/*
%changelog