From 48a589b8c526b34e79e8cdddc4cb7f5fc7b76815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 28 Jul 2013 02:30:20 +0200 Subject: Initial import of kshutdown 1.0.4 --- kshutdown-mdk.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 kshutdown-mdk.spec (limited to 'kshutdown-mdk.spec') diff --git a/kshutdown-mdk.spec b/kshutdown-mdk.spec new file mode 100644 index 0000000..5d0c515 --- /dev/null +++ b/kshutdown-mdk.spec @@ -0,0 +1,86 @@ +Name: kshutdown +Summary: An advanced shut down utility for KDE +Version: 1.0.4 +Release: 1mdk +License: GPL +Group: Graphical desktop/KDE +Source: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/build-root-%{name} +Packager: Zdenko Podobny +Distribution: mdk +Prefix: /usr +Url: http://kshutdown.sourceforge.net +Provides: kshutdown +Requires: kdelibs >= 3.3.0 + +%description +KShutDown is an advanced shut down utility for KDE. +Features: +- Turn Off Computer (logout and halt the system) +- Restart Computer (logout and reboot the system) +- Lock Session (lock the screen using a screen saver) +- End Current Session (end the current KDE session and logout the user) +- Extras (additional, user commands) +- Time and delay options +- Command line and DCOP support +- System tray and panel applet +- Visual and sound notifications +- KDE Kiosk support +- And more... + +%prep +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + +%setup -q + +%build +CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \ +./configure --prefix=%{prefix} +make -j 2 + +%install +make DESTDIR=$RPM_BUILD_ROOT install-strip + +cd $RPM_BUILD_ROOT + +find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs +find . -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp +sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp > $RPM_BUILD_DIR/file.list.%{name}.files +find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs +sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' $RPM_BUILD_DIR/file.list.%{name}.dirs > $RPM_BUILD_DIR/file.list.%{name} +sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name} +sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name} + +install -d -m 0755 %buildroot/%_menudir +cat > %buildroot/%_menudir/%{name} < 0.1.8-1mdk +- initial version -- cgit v1.2.1