diff options
Diffstat (limited to 'kshutdown-mdk.spec')
-rw-r--r-- | kshutdown-mdk.spec | 86 |
1 files changed, 86 insertions, 0 deletions
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} <<EOF +?package(kshutdown): needs=x11 section="System/Other" longtitle="KShutDown - advanced shut down utility" title="KShutDown" command="kshutdown" icon="kshutdown.png" +EOF + +%post +%update_menus + +%postun +%clean_menus + +%clean +rm -rf $RPM_BUILD_ROOT +rm -rf $RPM_BUILD_DIR/file.list.%{name} +rm -rf $RPM_BUILD_DIR/file.list.%{name}.libs +rm -rf $RPM_BUILD_DIR/file.list.%{name}.files +rm -rf $RPM_BUILD_DIR/file.list.%{name}.files.tmp +rm -rf $RPM_BUILD_DIR/file.list.%{name}.dirs + +%files -f ../file.list.%{name} +%_menudir/* +%defattr(-,root,root,0755) + +%changelog +* Sat Nov 26 2005 Konrad Twardowski +- updated description + +* Mon Aug 1 2005 Konrad Twardowski +- removed "kdebase" from "Requires" + +* Sat Jun 19 2004 Zdenko Podobný <[email protected]> 0.1.8-1mdk +- initial version |