KShutdown – graphical shutdown utility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kshutdown-mdk.spec 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. Name: kshutdown
  2. Summary: An advanced shut down utility for TDE
  3. Version: 1.0.4
  4. Release: 1mdk
  5. License: GPL
  6. Group: Graphical desktop/TDE
  7. Source: %{name}-%{version}.tar.bz2
  8. BuildRoot: %{_tmppath}/build-root-%{name}
  9. Packager: Zdenko Podobny
  10. Distribution: mdk
  11. Prefix: /usr
  12. Url: http://kshutdown.sourceforge.net
  13. Provides: kshutdown
  14. Requires: tdelibs >= 3.3.0
  15. %description
  16. KShutDown is an advanced shut down utility for TDE.
  17. Features:
  18. - Turn Off Computer (logout and halt the system)
  19. - Restart Computer (logout and reboot the system)
  20. - Lock Session (lock the screen using a screen saver)
  21. - End Current Session (end the current TDE session and logout the user)
  22. - Extras (additional, user commands)
  23. - Time and delay options
  24. - Command line and DCOP support
  25. - System tray and panel applet
  26. - Visual and sound notifications
  27. - TDE Kiosk support
  28. - And more...
  29. %prep
  30. rm -rf $RPM_BUILD_ROOT
  31. mkdir $RPM_BUILD_ROOT
  32. %setup -q
  33. %build
  34. CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
  35. ./configure --prefix=%{prefix}
  36. make -j 2
  37. %install
  38. make DESTDIR=$RPM_BUILD_ROOT install-strip
  39. cd $RPM_BUILD_ROOT
  40. find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs
  41. find . -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp
  42. sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp > $RPM_BUILD_DIR/file.list.%{name}.files
  43. find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs
  44. sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' $RPM_BUILD_DIR/file.list.%{name}.dirs > $RPM_BUILD_DIR/file.list.%{name}
  45. sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name}
  46. sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name}
  47. install -d -m 0755 %buildroot/%_menudir
  48. cat > %buildroot/%_menudir/%{name} <<EOF
  49. ?package(kshutdown): needs=x11 section="System/Other" longtitle="KShutDown - advanced shut down utility" title="KShutDown" command="kshutdown" icon="kshutdown.png"
  50. EOF
  51. %post
  52. %update_menus
  53. %postun
  54. %clean_menus
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. rm -rf $RPM_BUILD_DIR/file.list.%{name}
  58. rm -rf $RPM_BUILD_DIR/file.list.%{name}.libs
  59. rm -rf $RPM_BUILD_DIR/file.list.%{name}.files
  60. rm -rf $RPM_BUILD_DIR/file.list.%{name}.files.tmp
  61. rm -rf $RPM_BUILD_DIR/file.list.%{name}.dirs
  62. %files -f ../file.list.%{name}
  63. %_menudir/*
  64. %defattr(-,root,root,0755)
  65. %changelog
  66. * Sat Nov 26 2005 Konrad Twardowski
  67. - updated description
  68. * Mon Aug 1 2005 Konrad Twardowski
  69. - removed "tdebase" from "Requires"
  70. * Sat Jun 19 2004 Zdenko Podobný <zdpo@mailbox.sk> 0.1.8-1mdk
  71. - initial version