xfce4-power-manager-vl.spec 6.6 KB

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