xfce4-power-manager-vl.spec 7.4 KB

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