mate-power-manager-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. Summary: A Power Manager for MATE
  2. Name: mate-power-manager
  3. Version: 1.12.1
  4. Release: 1%{?_dist_release}
  5. License: GPLv2
  6. Group: Applications/System
  7. URL: http://mate-desktop.org/
  8. Source0: http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz
  9. # patch for Vine
  10. Patch1001: mate-power-manager-1.12.0-use-vine-sleep-helper.patch
  11. Patch1002: mate-power-manager-1.12.0-vine-settings.patch
  12. BuildRequires: mate-common
  13. BuildRequires: mate-doc-utils
  14. BuildRequires: libnotify-devel
  15. BuildRequires: mate-desktop-devel
  16. BuildRequires: mate-panel-devel
  17. BuildRequires: gtk2-devel
  18. BuildRequires: dbus-glib-devel
  19. BuildRequires: libcanberra-devel
  20. BuildRequires: libwnck-devel
  21. BuildRequires: unique-devel
  22. BuildRequires: upower-devel
  23. BuildRequires: popt-devel
  24. BuildRequires: libgnome-keyring-devel
  25. BuildRequires: yelp-tools
  26. BuildRequires: gtk-doc
  27. BuildRequires: autoconf
  28. BuildRequires: automake
  29. Requires: vine-sleep-helper
  30. Requires(posttrans,postun): glib2
  31. Requires(post,postun): desktop-file-utils
  32. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  33. Vendor: Project Vine
  34. Distribution: Vine Linux
  35. Packager: Takemikaduchi
  36. %description
  37. MATE Power Manager is a MATE session daemon that acts as a policy agent on top of
  38. UPower, which requires fairly new versions of the kernel and udev.
  39. MATE Power Manager listens for system events and responds with user-configurable actions.
  40. MATE Power Manager comes in three main parts:
  41. - mate-power-manager: the manager daemon itself
  42. - mate-power-preferences: the control panel program, for configuration
  43. - mate-power-statistics: the statistics graphing program
  44. %prep
  45. %setup -q
  46. %patch1001 -p1 -b .vine
  47. %patch1002 -p1 -b .vine
  48. %build
  49. NOCONFIGURE=1 ./autogen.sh
  50. %configure \
  51. --libexecdir=%{_libexecdir}/mate \
  52. --disable-static
  53. %{__make} %{?_smp_mflags}
  54. %install
  55. %{__rm} -rf ${RPM_BUILD_ROOT}
  56. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  57. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  58. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  59. %find_lang %{name}
  60. %clean
  61. %{__rm} -rf ${RPM_BUILD_ROOT}
  62. %post
  63. /sbin/ldconfig
  64. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  65. touch --no-create %{_datadir}/icons/hicolor
  66. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  67. %postun
  68. /sbin/ldconfig
  69. if [ $1 -eq 0 ]; then
  70. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  71. touch --no-create %{_datadir}/icons/hicolor
  72. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  73. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  74. fi
  75. %posttrans
  76. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  77. %files -f %{name}.lang
  78. %defattr(-,root,root,-)
  79. %doc COPYING ChangeLog NEWS README
  80. %{_sysconfdir}/xdg/autostart/mate-power-manager.desktop
  81. %{_bindir}/mate-power-manager
  82. %{_bindir}/mate-power-preferences
  83. %{_bindir}/mate-power-statistics
  84. %{_libexecdir}/mate/mate-brightness-applet
  85. %{_libexecdir}/mate/mate-inhibit-applet
  86. %{_sbindir}/mate-power-backlight-helper
  87. %{_datadir}/MateConf/gsettings/mate-power-manager.convert
  88. %{_datadir}/applications/mate-power-preferences.desktop
  89. %{_datadir}/applications/mate-power-statistics.desktop
  90. %{_datadir}/dbus-1/services/org.mate.panel.applet.BrightnessAppletFactory.service
  91. %{_datadir}/dbus-1/services/org.mate.panel.applet.InhibitAppletFactory.service
  92. %{_datadir}/dbus-1/services/org.mate.PowerManager.service
  93. %{_datadir}/glib-2.0/schemas/org.mate.power-manager.gschema.xml
  94. %{_datadir}/icons/hicolor/*/*/*
  95. %{_datadir}/help/*
  96. %{_datadir}/mate-panel/applets/org.mate.BrightnessApplet.mate-panel-applet
  97. %{_datadir}/mate-panel/applets/org.mate.InhibitApplet.mate-panel-applet
  98. %{_datadir}/%{name}
  99. %{_datadir}/polkit-1/actions/org.mate.power.policy
  100. %{_mandir}/man1/*.1.gz
  101. %changelog
  102. * Tue Dec 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.1-1
  103. - new upstream release
  104. * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1
  105. - new upstream release
  106. - update Patch1001 (mate-power-manager-1.12.0-use-vine-sleep-helper.patch)
  107. - update Patch1002 (mate-power-manager-1.12.0-vine-settings.patch)
  108. * Wed Sep 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1
  109. - new upstream release
  110. * Sun Aug 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-3
  111. - add Patch1001 (mate-power-manager-1.10.1-use-vine-sleep-helper.patch)
  112. - add Patch1002 (mate-power-manager-1.10.1-vine-settings.patch)
  113. - add Requires: vine-sleep-helper
  114. * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-2
  115. - remove BuildRequires: libmatekeyring-devel
  116. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1
  117. - new upstream release
  118. * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1
  119. - new upstream release
  120. - remove Patch0 (mate-power-manager_dbus_interface_keyboard_backlight_controls.patch)
  121. - add BuildRequires: mate-desktop-devel
  122. * Wed Nov 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1
  123. - new upstream release
  124. - remove Patch1-5
  125. * Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2
  126. - change BuildRequires: upower-devel instead of libupower09-devel
  127. - add BuildRequires: yelp-tools
  128. - add Patch0-5 from fedora
  129. * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  130. - new upstream release
  131. - add BuildRequires: libgnome-keyring-devel, libupower09-devel, itstool
  132. - remove BuildRequires: upower-devel
  133. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.3-1
  134. - new upstream release
  135. * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-1
  136. - new upstream release
  137. * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1
  138. - new upstream release
  139. - remove BuildRequires: mate-conf-devel, libmatenotify-devel
  140. - add BuildRequires: libnotify-devel
  141. * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  142. - new upstream release
  143. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1
  144. - new upstream release
  145. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  146. - change category
  147. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  148. - initial build for Vine Linux