tdepowersave
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.

FC6.tdepowersave.spec 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #
  2. # spec file for package tdepowersave (Version 0.7.2)
  3. #
  4. # Copyright (c) hmacht@suse.de, danny.kukawka@web.de
  5. # This file and all modifications and additions to the pristine
  6. # package are under the same license as the package itself.
  7. #
  8. # Please submit bugfixes or comments via http://bugs.opensuse.org
  9. #
  10. # norootforbuild
  11. Name: tdepowersave
  12. License: GPL
  13. Group: System/GUI/KDE
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-build
  15. Summary: KDE Frontend for Power Management, Battery Monitoring and Suspend
  16. Version: 0.7.2
  17. Release: 2.FC6%{?dist}
  18. ExclusiveArch: %ix86 x86_64 ia64 ppc
  19. Requires: hal >= 0.5.8.1 dbus-qt /sbin/pidof /usr/bin/xset
  20. Source: %{name}-%{version}.tar.bz2
  21. BuildRequires: tdelibs-devel
  22. BuildRequires: gettext
  23. BuildRequires: dbus-qt-devel
  24. BuildRequires: automake
  25. BuildRequires: libXext-devel libXScrnSaver-devel libXtst-devel
  26. BuildRequires: hal-devel desktop-file-utils
  27. %description
  28. TDEPowersave provides battery monitoring, CPU frequency control and suspend/standby
  29. triggers and more power management features for KDE. It uses HAL (formerly the
  30. powersave daemon) and supports APM and ACPI for several architectures.
  31. Authors:
  32. --------
  33. Danny Kukawka (dkukawka@suse.de, danny.kukawka@web.de)
  34. Thomas Renninger (trenn@suse.de, mail@renninger.de)
  35. %prep
  36. %setup -n %{name}-%{version} -q
  37. make -f admin/Makefile.common cvs
  38. %build
  39. unset TQTDIR || : ; . /etc/profile.d/qt.sh
  40. %configure \
  41. --disable-rpath \
  42. --enable-new-ldflags \
  43. --disable-debug --disable-warnings \
  44. --disable-dependency-tracking
  45. make %{?_smp_mflags}
  46. %install
  47. make DESTDIR=$RPM_BUILD_ROOT install
  48. desktop-file-install \
  49. --dir $RPM_BUILD_ROOT%{_datadir}/applications/tde \
  50. --vendor="" \
  51. $RPM_BUILD_ROOT%{_datadir}/applications/tde/tdepowersave.desktop
  52. ## File lists
  53. # locale's
  54. %find_lang %{name} || touch %{name}.lang
  55. # HTML
  56. HTML_DIR=$(tde-config --expandvars --install html)
  57. if [ -d $RPM_BUILD_ROOT$HTML_DIR ]; then
  58. for lang_dir in $RPM_BUILD_ROOT$HTML_DIR/* ; do
  59. lang=$(basename $lang_dir)
  60. echo "%lang($lang) %doc $HTML_DIR/$lang/*" >> %{name}.lang
  61. done
  62. fi
  63. %post
  64. touch --no-create %{_datadir}/icons/hicolor || :
  65. %postun
  66. touch --no-create %{_datadir}/icons/hicolor || :
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT
  69. %files -f %{name}.lang
  70. %defattr(-,root,root,-)
  71. %doc README AUTHORS ChangeLog COPYING INSTALL
  72. %{_bindir}/tdepowersave
  73. %{_libdir}/trinity/tdepowersave.*
  74. %{_libdir}/libtdeinit_tdepowersave.*
  75. %{_datadir}/applications/tde/*tdepowersave.desktop
  76. %{_datadir}/apps/tdepowersave/
  77. %{_datadir}/autostart/tdepowersave-autostart.desktop
  78. %{_datadir}/config/tdepowersaverc
  79. %{_datadir}/icons/hicolor/*/*/*
  80. %changelog -n tdepowersave