xfce4-power-manager-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. %global minorversion 1.4
  2. %global xfceversion 4.12.0
  3. Name: xfce4-power-manager
  4. Summary: Power management for the Xfce desktop environment
  5. Summary(ja): Xfce デスクトップ環境用の電源管理ツール
  6. Version: 1.4.3
  7. Release: 1%{?_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. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: dbus-devel >= 1.1
  14. BuildRequires: dbus-glib-devel >= 0.84
  15. BuildRequires: desktop-file-utils
  16. BuildRequires: gettext intltool
  17. BuildRequires: glib2-devel >= 2.30.0
  18. BuildRequires: gtk2-devel >= 2.24.0
  19. BuildRequires: libnotify-devel >= 0.4.1
  20. BuildRequires: libXext-devel
  21. BuildRequires: libXrandr-devel >= 1.2.0
  22. BuildRequires: libxfce4ui-devel >= %{xfceversion}
  23. BuildRequires: libxfce4util-devel >= %{xfceversion}
  24. BuildRequires: polkit-devel
  25. BuildRequires: upower-devel >= 0.99.1
  26. BuildRequires: xfce4-panel-devel >= %{xfceversion}
  27. BuildRequires: xfconf-devel >= %{xfceversion}
  28. BuildRequires: xorg-x11-proto-devel
  29. Requires: ConsoleKit
  30. Requires: polkit
  31. Requires: xfce4-panel >= %{xfceversion}
  32. Vendor: Project Vine
  33. Distribution: Vine Linux
  34. %description
  35. This software is a power manager for the Xfce desktop, Xfce power manager manages the power sources on the computer and the devices that can be controlled to reduce their power consumption (such as LCD brightness level, monitor sleep).
  36. In addition, xfce4-power-manager provides a set of freedesktop-compliant DBus interfaces to inform other applications about current power level so that they can adjust their power consumption.
  37. %prep
  38. %setup -q
  39. %build
  40. %configure --enable-silent-rules
  41. make %{?_smp_mflags}
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. make install DESTDIR=$RPM_BUILD_ROOT
  45. rm -f $RPM_BUILD_ROOT%{_libdir}/xfce4/panel/plugins/*.la
  46. %find_lang %{name}
  47. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-settings.desktop
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %post
  51. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  52. %postun
  53. if [ $1 -eq 0 ] ; then
  54. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  55. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  56. fi
  57. %posttrans
  58. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  59. %files -f %{name}.lang
  60. %defattr(-,root,root,-)
  61. %doc AUTHORS COPYING ChangeLog NEWS README TODO
  62. %config %{_sysconfdir}/xdg/autostart/%{name}.desktop
  63. %{_bindir}/%{name}
  64. %{_bindir}/%{name}-settings
  65. %{_sbindir}/xfce4-pm-helper
  66. %{_sbindir}/xfpm-power-backlight-helper
  67. %{_libdir}/xfce4/panel/plugins/lib*.so
  68. %{_datadir}/appdata/%{name}.appdata.xml
  69. %{_datadir}/applications/%{name}-settings.desktop
  70. %{_datadir}/icons/hicolor/*/*/*.*
  71. %{_datadir}/xfce4/panel/plugins/power-manager-plugin.desktop
  72. %{_datadir}/polkit-1/actions/org.xfce.power.policy
  73. %{_mandir}/man1/%{name}-settings.1.*
  74. %{_mandir}/man1/%{name}.1.*
  75. %changelog
  76. * Sun Mar 1 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4.3-1
  77. - new upstream release
  78. * Sat Dec 20 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4.2-1
  79. - new upstream release
  80. - updated summary
  81. * Tue Sep 23 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.4.0-2
  82. - rebuilt with upower-0.99.1
  83. * Tue Sep 16 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.4.0-1
  84. - new upstream release
  85. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.2.0-2
  86. - rebuild with VineSeed environment
  87. * Thu Jun 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.2.0-1
  88. - new upstream release
  89. - remove old patches
  90. - add Patch0 (xfce4-power-manager-1.1.0-fix-desktop.patch) from fedora
  91. * Sun Aug 21 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.10-3
  92. - rebuilt with libnotify-0.7.3
  93. - added Patch1
  94. * Mon May 23 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.10-2
  95. - Initial build for Vine Linux
  96. * Sun Feb 20 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.10-1
  97. - Update to 1.0.10
  98. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
  99. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  100. * Tue Jan 04 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.3-1
  101. - Update to 1.0.3
  102. - No longer require hal because the brightness backend was removed
  103. - Require polkit
  104. * Sun Dec 19 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.2-1
  105. - Update to 1.0.2
  106. * Thu Dec 16 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1-0.1-1
  107. - Update to 1.0.1 on Xfce 4.8 pre2
  108. * Sat Nov 06 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.5-1
  109. - Update to 0.8.5
  110. - Fix for libnotify 0.7.0
  111. - Make build verbose
  112. * Sat Nov 21 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.4.2-1
  113. - Update to 0.8.4.2
  114. * Mon Nov 02 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.4.1-1
  115. - Update to 0.8.4.1
  116. * Tue Sep 29 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.4-1
  117. - Update to 0.8.4
  118. - Drop xfpm_session_set_client_id patch, fixed upstream
  119. * Wed Sep 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.3.1-2
  120. - Fix segfault in xfpm_session_set_client_id
  121. * Sun Aug 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.3.1-1
  122. - Update to 0.8.3.1
  123. * Sat Aug 01 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.3-1
  124. - Update to 0.8.3
  125. * Thu Jul 30 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.2-3
  126. - Patch to include dpmsconst.h instead of dpms.h
  127. * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
  128. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  129. * Thu Jul 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.2-1
  130. - Update to 0.8.2
  131. * Mon Jul 06 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.1.1-1
  132. - Update to 0.8.1.1
  133. * Fri Jul 03 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.1-1
  134. - Update to 0.8.1
  135. - Drop libglade2 requirement
  136. * Wed Jun 10 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-1
  137. - Update to 0.8.0 final
  138. - Update gtk-icon-cache scriptlets
  139. * Wed May 20 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.3.RC2
  140. - Update to 0.8.0RC2
  141. * Tue Apr 28 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.3.RC1
  142. - Update to 0.8.0RC1
  143. * Mon Apr 13 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.2.beta2
  144. - Update to 0.8.0beta2
  145. - Drop xfpm-button-hal.patch, no longer necessary
  146. * Mon Apr 13 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.2.beta1
  147. - Add xfpm-button-hal.patch by Mike Massonnet
  148. * Sun Apr 12 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.1.beta1
  149. - Update to 0.8.0beta1
  150. * Thu Apr 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.1.alpha2
  151. - Update to 0.8.0alpha2
  152. * Thu Apr 02 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.1.alpha
  153. - Update to 0.8.0alpha
  154. * Tue Mar 24 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.5-1
  155. - Update to 0.6.5
  156. - Remove custom autostart file
  157. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-2
  158. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  159. * Thu Feb 19 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.2-1
  160. - Update to 0.6.2
  161. * Sat Feb 7 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.1-1
  162. - Update to 0.6.1
  163. - Include additional desktop file for autostarting the app
  164. * Mon Nov 10 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.0-0.1.RC1
  165. - Update to 0.6.0 RC1
  166. * Fri Oct 31 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.0-0.1.0.beta1
  167. - Initial Fedora package