mate-power-manager-vl.spec 4.8 KB

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