xfce4-battery-plugin-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. Name: xfce4-battery-plugin
  2. Summary: Battery monitor for the Xfce panel
  3. Summary(ja): Xfce パネル用バッテリー監視プラグイン
  4. Version: 1.0.4
  5. Release: 2%{?_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. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. %description
  24. A battery monitor panel plugin for Xfce4, written by Nick Penwarden and
  25. Edscott Wilson Garcia, compatible with APM and ACPI, for Linux and *BSD.
  26. %description -l ja
  27. Nick Penwarden と Edscott Wilson Garcia が書いた Xfce4 用のバッテリー監視パ
  28. ネルプラグインです。Linux と *BSD の APM と ACPI で動作します。
  29. %prep
  30. %setup -q
  31. %build
  32. %configure --disable-static
  33. make
  34. %install
  35. rm -rf $RPM_BUILD_ROOT
  36. make install DESTDIR=$RPM_BUILD_ROOT
  37. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  38. %find_lang %{name}
  39. %post
  40. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  41. %posttrans
  42. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  43. %postun
  44. if [ $1 -eq 0 ] ; then
  45. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  46. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  47. fi
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %files -f %{name}.lang
  51. %defattr(-,root,root)
  52. %doc AUTHORS COPYING ChangeLog README
  53. %{_libdir}/xfce4/panel/plugins/libbattery.so
  54. %{_datadir}/icons/hicolor/*/*/*
  55. %{_datadir}/xfce4/panel/plugins/battery.desktop
  56. %changelog
  57. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-2
  58. - rebuild with VineSeed environment
  59. * Thu Jun 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-1
  60. - new upstream release
  61. - remove BuildRequires: libxfcegui4-devel
  62. - add BuildRequires: libxfce4ui-devel
  63. * Sun May 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-1
  64. - updated to 1.0.0
  65. * Mon Jan 24 2005 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl4
  66. - build against Xfce 4.2
  67. * Sat Aug 21 2004 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl2
  68. - build for VineSeedPlus
  69. * Sat Aug 21 2004 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl1
  70. - build for VinePlus 3.0