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