mate-settings-daemon-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. Summary: The MATE Settings daemon
  2. Name: mate-settings-daemon
  3. Version: 1.1.0
  4. Release: 2%{?_dist_release}
  5. Source0: %{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: System Environment/Daemons
  8. URL: https://matsusoft.com.ar/projects/mate/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-conf-devel
  11. BuildRequires: mate-desktop-devel
  12. BuildRequires: libmatenotify-devel
  13. BuildRequires: libmatekbd-devel
  14. BuildRequires: gtk2-devel
  15. BuildRequires: dbus-glib-devel
  16. BuildRequires: libSM-devel
  17. BuildRequires: libXxf86misc-devel
  18. BuildRequires: polkit-devel
  19. BuildRequires: nss-devel
  20. BuildRequires: gtk-doc
  21. BuildRequires: autoconf
  22. BuildRequires: automake
  23. Requires(post,pre,preun): mate-conf
  24. Requires(post,postun): desktop-file-utils
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. Packager: Takemikaduchi
  29. %description
  30. %package devel
  31. Summary: Development tools for mate-settings-daemon
  32. Summary(ja): mate-settings-daemon の開発環境
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. Requires: pkgconfig
  36. %description devel
  37. Header files and libraries for building a extension library for the
  38. mate-settings-daemon.
  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. apps_mate_settings_daemon_housekeeping.schemas \
  63. apps_mate_settings_daemon_keybindings.schemas \
  64. apps_mate_settings_daemon_xrandr.schemas \
  65. desktop_mate_font_rendering.schemas \
  66. desktop_mate_keybindings.schemas \
  67. desktop_mate_peripherals_smartcard.schemas \
  68. desktop_mate_peripherals_touchpad.schemas \
  69. mate-settings-daemon.schemas"
  70. for S in $SCHEMAS; do
  71. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  72. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  73. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  74. touch --no-create %{_datadir}/icons/hicolor
  75. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  76. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  77. fi
  78. %pre
  79. if [ "$1" -gt 1 ]; then
  80. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  81. SCHEMAS=" \
  82. apps_mate_settings_daemon_housekeeping.schemas \
  83. apps_mate_settings_daemon_keybindings.schemas \
  84. apps_mate_settings_daemon_xrandr.schemas \
  85. desktop_mate_font_rendering.schemas \
  86. desktop_mate_keybindings.schemas \
  87. desktop_mate_peripherals_smartcard.schemas \
  88. desktop_mate_peripherals_touchpad.schemas \
  89. mate-settings-daemon.schemas"
  90. for S in $SCHEMAS; do
  91. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  92. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  93. fi
  94. %preun
  95. if [ "$1" -eq 0 ]; then
  96. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  97. SCHEMAS=" \
  98. apps_mate_settings_daemon_housekeeping.schemas \
  99. apps_mate_settings_daemon_keybindings.schemas \
  100. apps_mate_settings_daemon_xrandr.schemas \
  101. desktop_mate_font_rendering.schemas \
  102. desktop_mate_keybindings.schemas \
  103. desktop_mate_peripherals_smartcard.schemas \
  104. desktop_mate_peripherals_touchpad.schemas \
  105. mate-settings-daemon.schemas"
  106. for S in $SCHEMAS; do
  107. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  108. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  109. fi
  110. %postun
  111. /sbin/ldconfig
  112. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  113. touch --no-create %{_datadir}/icons/hicolor
  114. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  115. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  116. fi
  117. %files -f %{name}.lang
  118. %defattr(-,root,root,-)
  119. %doc COPYING ChangeLog NEWS README
  120. %{_sysconfdir}/dbus-1/system.d/org.mate.SettingsDaemon.DateTimeMechanism.conf
  121. %{_sysconfdir}/mateconf/schemas/apps_mate_settings_daemon_housekeeping.schemas
  122. %{_sysconfdir}/mateconf/schemas/apps_mate_settings_daemon_keybindings.schemas
  123. %{_sysconfdir}/mateconf/schemas/apps_mate_settings_daemon_xrandr.schemas
  124. %{_sysconfdir}/mateconf/schemas/desktop_mate_font_rendering.schemas
  125. %{_sysconfdir}/mateconf/schemas/desktop_mate_keybindings.schemas
  126. %{_sysconfdir}/mateconf/schemas/desktop_mate_peripherals_smartcard.schemas
  127. %{_sysconfdir}/mateconf/schemas/desktop_mate_peripherals_touchpad.schemas
  128. %{_sysconfdir}/mateconf/schemas/mate-settings-daemon.schemas
  129. %{_sysconfdir}/xdg/autostart/mate-settings-daemon.desktop
  130. %{_libdir}/%{name}-%{version}
  131. %{_libexecdir}/mate/mate-settings-daemon
  132. %{_libexecdir}/mate/gsd-locate-pointer
  133. %{_libexecdir}/mate/gsd-datetime-mechanism
  134. %{_datadir}/dbus-1/services/org.mate.SettingsDaemon.service
  135. %{_datadir}/dbus-1/system-services/org.mate.SettingsDaemon.DateTimeMechanism.service
  136. %{_datadir}/icons/mate/*/*/*
  137. %{_datadir}/%{name}
  138. %{_datadir}/mate-control-center/keybindings/50-accessibility.xml
  139. %{_datadir}/polkit-1/actions/org.mate.settingsdaemon.datetimemechanism.policy
  140. %files devel
  141. %defattr(-,root,root,-)
  142. %{_includedir}/mate-settings-daemon
  143. %{_libdir}/pkgconfig/mate-settings-daemon.pc
  144. %changelog
  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