xfce4-battery-plugin-vl.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. Name: xfce4-battery-plugin
  2. Summary: Battery monitor for the Xfce panel
  3. Summary(ja): Xfce パネル用バッテリー監視プラグイン
  4. Version: 1.0.4
  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.20.0
  12. BuildRequires: libxfce4ui-devel >= 4.8.0
  13. BuildRequires: libxfce4util-devel >= 4.8.0
  14. BuildRequires: xfce4-panel-devel >= 4.8.0
  15. BuildRequires: libxml2-devel
  16. BuildRequires: gettext
  17. BuildRequires: perl-XML-Parser
  18. Requires: xfce4-panel >= 4.8.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 $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  36. %find_lang %{name}
  37. %post
  38. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  39. %posttrans
  40. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  41. %postun
  42. if [ $1 -eq 0 ] ; then
  43. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  44. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  45. fi
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48. %files -f %{name}.lang
  49. %defattr(-,root,root)
  50. %doc AUTHORS COPYING ChangeLog README
  51. %{_libdir}/xfce4/panel/plugins/libbattery.so
  52. %{_datadir}/icons/hicolor/*/*/*
  53. %{_datadir}/xfce4/panel/plugins/battery.desktop
  54. %changelog
  55. * Thu Jun 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-1
  56. - new upstream release
  57. - remove BuildRequires: libxfcegui4-devel
  58. - add BuildRequires: libxfce4ui-devel
  59. * Sun May 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-1
  60. - updated to 1.0.0
  61. * Mon Jan 24 2005 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl4
  62. - build against Xfce 4.2
  63. * Sat Aug 21 2004 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl2
  64. - build for VineSeedPlus
  65. * Sat Aug 21 2004 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl1
  66. - build for VinePlus 3.0