xfce4-battery-plugin-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Name: xfce4-battery-plugin
  2. Summary: Battery monitor for the Xfce panel
  3. Summary(ja): Xfce パネル用 バッテリー監視プラグイン
  4. Version: 1.0.5
  5. Release: 1%{?_dist_release}
  6. Group: User Interface/Desktops
  7. License: GPLv2+ and LGPLv2+
  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: glib2-devel >= 2.24.0
  12. BuildRequires: gtk2-devel >= 2.20.0
  13. BuildRequires: libxfce4ui-devel >= 4.8.0
  14. BuildRequires: libxfce4util-devel >= 4.8.0
  15. BuildRequires: xfce4-panel-devel >= 4.8.0
  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 用のバッテリー監視パネルプラグインです。Linux と *BSD の APM と ACPI で動作します。
  28. %prep
  29. %setup -q
  30. %build
  31. %configure --disable-static
  32. make
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make install DESTDIR=$RPM_BUILD_ROOT
  36. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  37. chmod +x $RPM_BUILD_ROOT%{_libdir}/xfce4/panel/plugins/*.so
  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 COPYING.LIB 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 21 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.5-1
  58. - new upstream release
  59. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-2
  60. - rebuild with VineSeed environment
  61. * Thu Jun 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-1
  62. - new upstream release
  63. - remove BuildRequires: libxfcegui4-devel
  64. - add BuildRequires: libxfce4ui-devel
  65. * Sun May 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-1
  66. - updated to 1.0.0
  67. * Mon Jan 24 2005 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl4
  68. - build against Xfce 4.2
  69. * Sat Aug 21 2004 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl2
  70. - build for VineSeedPlus
  71. * Sat Aug 21 2004 UECHI Yasumasa <uechi@potaway.net> 0.2.0-0vl1
  72. - build for VinePlus 3.0