xfce4-battery-plugin-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Name: xfce4-battery-plugin
  2. Summary: Battery monitor for the Xfce panel
  3. Summary(ja): Xfce パネル用バッテリー監視プラグイン
  4. Version: 1.0.0
  5. Release: 1%{?_dist_release}
  6. Group: User Interface/Desktops
  7. License: GPLv2+
  8. URL: http://goodies.xfce.org/projects/panel-plugins/%{name}
  9. Source0: http://archive.xfce.org/src/panel-plugins/%{name}/1.0/%{name}-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: gtk2-devel >= 2.6.0
  12. BuildRequires: libxfce4util-devel >= 4.3.90.2
  13. BuildRequires: libxfcegui4-devel >= 4.3.90.2
  14. BuildRequires: xfce4-panel-devel >= 4.3.90.2
  15. BuildRequires: libxml2-devel
  16. BuildRequires: gettext
  17. BuildRequires: perl-XML-Parser
  18. Requires: xfce4-panel >= 4.4.0
  19. Requires(posttrans): gtk2
  20. Requires(postun): gtk2
  21. %description
  22. A battery monitor panel plugin for Xfce4, written by Nick Penwarden and
  23. Edscott Wilson Garcia, compatible with APM and ACPI, for Linux and *BSD.
  24. %description -l ja
  25. Nick Penwarden と Edscott Wilson Garcia が書いた Xfce4 用のバッテリー監視パ
  26. ネルプラグインです。Linux と *BSD の APM と ACPI で動作します。
  27. %prep
  28. %setup -q
  29. %build
  30. %configure --disable-static
  31. make
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. make install DESTDIR=$RPM_BUILD_ROOT
  35. %find_lang %{name}
  36. %post
  37. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  38. %posttrans
  39. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  40. %postun
  41. if [ $1 -eq 0 ] ; then
  42. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  43. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  44. fi
  45. %clean
  46. rm -rf $RPM_BUILD_ROOT
  47. %files -f %{name}.lang
  48. %defattr(-,root,root)
  49. %doc AUTHORS COPYING ChangeLog README
  50. %{_libexecdir}/xfce4/panel-plugins/xfce4-battery-plugin
  51. %{_datadir}/icons/hicolor/*/*/*
  52. %{_datadir}/xfce4/panel-plugins/*.desktop
  53. %changelog
  54. * Sun May 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-1
  55. - updated to 1.0.0
  56. * Mon Jan 24 2005 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl4
  57. - build against Xfce 4.2
  58. * Sat Aug 21 2004 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl2
  59. - build for VineSeedPlus
  60. * Sat Aug 21 2004 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl1
  61. - build for VinePlus 3.0