xfce4-power-manager-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. %global minorversion 1.2
  2. %global xfceversion 4.10
  3. Name: xfce4-power-manager
  4. Summary: Power management for the Xfce desktop environment
  5. Summary(ja): Xfce デスクトップ環境用電源管理ツール
  6. Version: 1.2.0
  7. Release: 3%{?_dist_release}
  8. Group: User Interface/Desktops
  9. License: GPLv2+
  10. URL: http://goodies.xfce.org/projects/applications/%{name}
  11. Source0: http://archive.xfce.org/src/apps/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2
  12. Patch0: xfce4-power-manager-1.1.0-fix-desktop.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: xfconf-devel >= %{xfceversion}
  15. BuildRequires: xfce4-panel-devel >= %{xfceversion}
  16. BuildRequires: dbus-devel >= 0.60
  17. BuildRequires: dbus-glib-devel >= 0.70
  18. BuildRequires: libnotify-devel >= 0.4.1
  19. BuildRequires: libxfce4ui-devel >= %{xfceversion}
  20. BuildRequires: libXrandr-devel >= 1.2.0
  21. BuildRequires: xorg-x11-proto-devel
  22. BuildRequires: gettext intltool desktop-file-utils
  23. Requires: xfce4-panel >= %{xfceversion}
  24. #Requires: xfce4-doc
  25. Requires: polkit
  26. %description
  27. Xfce Power Manager uses the information and facilities provided by HAL to
  28. display icons and handle user callbacks in an interactive Xfce session.
  29. Xfce Power Preferences allows authorised users to set policy and change
  30. preferences.
  31. %prep
  32. %setup -q
  33. %patch0 -p1
  34. %build
  35. %configure
  36. make %{?_smp_mflags} V=1
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
  40. %find_lang %{name}
  41. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-settings.desktop
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %post
  45. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  46. %postun
  47. if [ $1 -eq 0 ] ; then
  48. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  49. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  50. fi
  51. %posttrans
  52. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  53. %files -f %{name}.lang
  54. %defattr(-,root,root,-)
  55. %doc AUTHORS COPYING ChangeLog NEWS README TODO
  56. %{_bindir}/%{name}
  57. %{_bindir}/%{name}-settings
  58. %{_bindir}/xfce4-power-information
  59. %{_sbindir}/xfpm-power-backlight-helper
  60. %config %{_sysconfdir}/xdg/autostart/%{name}.desktop
  61. %{_libdir}/xfce4/panel-plugins/xfce4-brightness-plugin
  62. %{_datadir}/applications/%{name}-settings.desktop
  63. %{_datadir}/icons/hicolor/*/*/*.*
  64. %{_datadir}/xfce4/panel-plugins/xfce4-brightness-plugin.desktop
  65. %{_datadir}/polkit-1/actions/org.xfce.power.policy
  66. %doc %{_datadir}/xfce4/doc/C/images/*.png
  67. %doc %{_datadir}/xfce4/doc/C/%{name}.html
  68. %{_mandir}/man1/%{name}-settings.1.*
  69. %{_mandir}/man1/%{name}.1.*
  70. %changelog
  71. * Thu Jun 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.2.0-1
  72. - new upstream release
  73. - remove old patches
  74. - add Patch0 (xfce4-power-manager-1.1.0-fix-desktop.patch) from fedora
  75. * Sun Aug 21 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.10-3
  76. - rebuilt with libnotify-0.7.3
  77. - added Patch1
  78. * Mon May 23 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.10-2
  79. - Initial build for Vine Linux
  80. * Sun Feb 20 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.10-1
  81. - Update to 1.0.10
  82. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  84. * Tue Jan 04 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.3-1
  85. - Update to 1.0.3
  86. - No longer require hal because the brightness backend was removed
  87. - Require polkit
  88. * Sun Dec 19 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.2-1
  89. - Update to 1.0.2
  90. * Thu Dec 16 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1-0.1-1
  91. - Update to 1.0.1 on Xfce 4.8 pre2
  92. * Sat Nov 06 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.5-1
  93. - Update to 0.8.5
  94. - Fix for libnotify 0.7.0
  95. - Make build verbose
  96. * Sat Nov 21 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.4.2-1
  97. - Update to 0.8.4.2
  98. * Mon Nov 02 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.4.1-1
  99. - Update to 0.8.4.1
  100. * Tue Sep 29 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.4-1
  101. - Update to 0.8.4
  102. - Drop xfpm_session_set_client_id patch, fixed upstream
  103. * Wed Sep 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.3.1-2
  104. - Fix segfault in xfpm_session_set_client_id
  105. * Sun Aug 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.3.1-1
  106. - Update to 0.8.3.1
  107. * Sat Aug 01 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.3-1
  108. - Update to 0.8.3
  109. * Thu Jul 30 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.2-3
  110. - Patch to include dpmsconst.h instead of dpms.h
  111. * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
  112. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  113. * Thu Jul 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.2-1
  114. - Update to 0.8.2
  115. * Mon Jul 06 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.1.1-1
  116. - Update to 0.8.1.1
  117. * Fri Jul 03 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.1-1
  118. - Update to 0.8.1
  119. - Drop libglade2 requirement
  120. * Wed Jun 10 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-1
  121. - Update to 0.8.0 final
  122. - Update gtk-icon-cache scriptlets
  123. * Wed May 20 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.3.RC2
  124. - Update to 0.8.0RC2
  125. * Tue Apr 28 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.3.RC1
  126. - Update to 0.8.0RC1
  127. * Mon Apr 13 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.2.beta2
  128. - Update to 0.8.0beta2
  129. - Drop xfpm-button-hal.patch, no longer necessary
  130. * Mon Apr 13 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.2.beta1
  131. - Add xfpm-button-hal.patch by Mike Massonnet
  132. * Sun Apr 12 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.1.beta1
  133. - Update to 0.8.0beta1
  134. * Thu Apr 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.1.alpha2
  135. - Update to 0.8.0alpha2
  136. * Thu Apr 02 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.1.alpha
  137. - Update to 0.8.0alpha
  138. * Tue Mar 24 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.5-1
  139. - Update to 0.6.5
  140. - Remove custom autostart file
  141. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-2
  142. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  143. * Thu Feb 19 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.2-1
  144. - Update to 0.6.2
  145. * Sat Feb 7 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.1-1
  146. - Update to 0.6.1
  147. - Include additional desktop file for autostarting the app
  148. * Mon Nov 10 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.0-0.1.RC1
  149. - Update to 0.6.0 RC1
  150. * Fri Oct 31 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.0-0.1.0.beta1
  151. - Initial Fedora package