battfink-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. %define version 0.4
  2. %define name battfink
  3. Summary: Battfink is a power management preference dialog.
  4. Summary(ja): Battfink パワーマネージメント設定ダイアログ
  5. Name: %{name}
  6. Version: %{version}
  7. Release: 0vl1
  8. URL: http://ftp.gnome.org/pub/GNOME/sources/battfink/%{version}/
  9. Source: http://ftp.gnome.org/pub/GNOME/sources/battfink/%{version}/%{name}-%{version}.tar.bz2
  10. License: GPL
  11. Group: Applications/System
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildPrereq: gtk2-devel, libglade2-devel, libgnomeui-devel, GConf2-devel
  14. BuildPrereq: desktop-file-utils
  15. Requires: apmd, gtk2, libglade2, libgnomeui, GConf2
  16. PreReq: scrollkeeper
  17. %description
  18. Battfink is a power management preference dialog that allows you to
  19. manage the power saving options for your desktop.
  20. Battfink allows you to configure your display power saving options,
  21. setting timeouts for standby, suspend and power off.
  22. Battfink also allows you to display a notification icon in the
  23. Panel Notification Area for your battery status. If a battery is
  24. not available, then a simple plug icon will be displayed to show
  25. that the system is running on AC power.
  26. %prep
  27. %setup -q
  28. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %{__rm} -rf $RPM_BUILD_ROOT
  29. %build
  30. %configure
  31. %{__make}
  32. %install
  33. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %{__rm} -rf $RPM_BUILD_ROOT
  34. %makeinstall
  35. desktop-file-install --vendor gnome --delete-original \
  36. --dir $RPM_BUILD_ROOT%{_datadir}/control-center-2.0/capplets \
  37. $RPM_BUILD_ROOT%{_datadir}/control-center-2.0/capplets/*
  38. %clean
  39. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %{__rm} -rf $RPM_BUILD_ROOT
  40. %post
  41. scrollkeeper-update > /dev/null 2>&1 || :
  42. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  43. SCHEMAS="%{name}.schemas"
  44. for S in $SCHEMAS; do
  45. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
  46. done
  47. %postun
  48. scrollkeeper-update > /dev/null 2>&1 || :
  49. %files
  50. %defattr(-,root,root)
  51. %doc AUTHORS COPYING ChangeLog HACKING INSTALL
  52. %doc NEWS README TODO
  53. %{_sysconfdir}/gconf/schemas/%{name}.schemas
  54. %{_bindir}/%{name}
  55. %{_libdir}/bonobo/servers/*
  56. %{_datadir}/%{name}/
  57. %{_datadir}/control-center-2.0/capplets/*.desktop
  58. %{_datadir}/locale/*/LC_MESSAGES/*.mo
  59. %{_datadir}/omf/%{name}/*
  60. %{_datadir}/pixmaps/%{name}.png
  61. %changelog
  62. * Sat Apr 19 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4-0vl1
  63. - initial build