mate-power-manager-vl.spec 6.4 KB

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