mate-power-manager-vl.spec 4.4 KB

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