mate-power-manager-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. Summary: A Power Manager for MATE
  2. Name: mate-power-manager
  3. Version: 1.1.0
  4. Release: 2%{?_dist_release}
  5. Source0: %{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: Applications/System
  8. URL: https://matsusoft.com.ar/projects/mate/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-doc-utils
  11. BuildRequires: mate-conf-devel
  12. BuildRequires: libmatekeyring-devel
  13. BuildRequires: libmatenotify-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: gtk-doc
  23. BuildRequires: autoconf
  24. BuildRequires: automake
  25. Requires(post,pre,preun): mate-conf
  26. Requires(post,postun): desktop-file-utils
  27. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  28. Vendor: Project Vine
  29. Distribution: Vine Linux
  30. Packager: Takemikaduchi
  31. %description
  32. MATE Power Manager is a MATE session daemon that acts as a policy agent on top of
  33. UPower, which requires fairly new versions of the kernel and udev.
  34. MATE Power Manager listens for system events and responds with user-configurable actions.
  35. MATE Power Manager comes in three main parts:
  36. - mate-power-manager: the manager daemon itself
  37. - mate-power-preferences: the control panel program, for configuration
  38. - mate-power-statistics: the statistics graphing program
  39. %prep
  40. %setup -q
  41. %build
  42. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  43. %configure \
  44. --libexecdir=%{_libexecdir}/mate \
  45. --disable-static \
  46. --disable-scrollkeeper
  47. %{__make} %{?_smp_mflags}
  48. %install
  49. %{__rm} -rf ${RPM_BUILD_ROOT}
  50. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  51. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  52. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  53. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  54. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  55. %find_lang %{name}
  56. %clean
  57. %{__rm} -rf ${RPM_BUILD_ROOT}
  58. %post
  59. /sbin/ldconfig
  60. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  61. SCHEMAS=" \
  62. mate-power-manager.schemas"
  63. for S in $SCHEMAS; do
  64. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  65. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  66. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  67. touch --no-create %{_datadir}/icons/hicolor
  68. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  69. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  70. fi
  71. %pre
  72. if [ "$1" -gt 1 ]; then
  73. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  74. SCHEMAS=" \
  75. mate-power-manager.schemas"
  76. for S in $SCHEMAS; do
  77. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  78. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  79. fi
  80. %preun
  81. if [ "$1" -eq 0 ]; then
  82. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  83. SCHEMAS=" \
  84. mate-power-manager.schemas"
  85. for S in $SCHEMAS; do
  86. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  87. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  88. fi
  89. %postun
  90. /sbin/ldconfig
  91. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  92. touch --no-create %{_datadir}/icons/hicolor
  93. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  94. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  95. fi
  96. %files -f %{name}.lang
  97. %defattr(-,root,root,-)
  98. %doc COPYING ChangeLog NEWS README
  99. %{_sysconfdir}/mateconf/schemas/mate-power-manager.schemas
  100. %{_sysconfdir}/xdg/autostart/mate-power-manager.desktop
  101. %{_bindir}/mate-power-bugreport.sh
  102. %{_bindir}/mate-power-manager
  103. %{_bindir}/mate-power-preferences
  104. %{_bindir}/mate-power-statistics
  105. %{_libdir}/matecomponent/servers/*.server
  106. %{_libexecdir}/mate/mate-brightness-applet
  107. %{_libexecdir}/mate/mate-inhibit-applet
  108. %{_sbindir}/mate-power-backlight-helper
  109. %{_datadir}/applications/mate-power-preferences.desktop
  110. %{_datadir}/applications/mate-power-statistics.desktop
  111. %{_datadir}/dbus-1/services/mate-power-manager.service
  112. %{_datadir}/icons/hicolor/*/*/*
  113. %{_datadir}/mate/help/mate-power-manager
  114. %{_datadir}/mate-2.0/ui/*.xml
  115. %{_datadir}/%{name}
  116. %{_datadir}/omf/mate-power-manager
  117. %{_datadir}/polkit-1/actions/org.mate.power.policy
  118. %{_mandir}/man1/*.1.gz
  119. %changelog
  120. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  121. - change category
  122. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  123. - initial build for Vine Linux