libmate-vl.spec 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. Summary: Common libraries for MATE
  2. Name: libmate
  3. Version: 1.4.0
  4. Release: 1%{?_dist_release}
  5. Source0: http://pub.mate-desktop.org/releases/1.4/%{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: System Environment/Libraries
  8. URL: http://mate-desktop.org/
  9. BuildRequires: mate-common
  10. BuildRequires: libmatecomponent-devel
  11. BuildRequires: mate-conf-devel
  12. BuildRequires: mate-vfs-devel
  13. BuildRequires: glib2-devel
  14. BuildRequires: libcanberra-devel
  15. BuildRequires: popt-devel
  16. BuildRequires: gtk-doc
  17. BuildRequires: autoconf
  18. BuildRequires: automake
  19. Requires(post,pre,preun): mate-conf
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. # defualt settings
  22. Patch100: libmate-1.4.0-default-settings-vine.patch
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. Packager: Takemikaduchi
  26. %description
  27. This is the non-gui part of the library formerly known as
  28. mate-libs.
  29. %package devel
  30. Summary: Development tools for libmate
  31. Summary(ja): libmate の開発環境
  32. Group: Development/Libraries
  33. Requires: %{name} = %{version}-%{release}
  34. Requires: pkgconfig
  35. Requires: mate-corba-devel
  36. Requires: mate-conf-devel
  37. Requires: mate-vfs-devel
  38. Requires: libcanberra-devel
  39. %description devel
  40. Header files and libraries for building a extension library for the
  41. libmate.
  42. %package doc
  43. Summary: Documentation for libmate
  44. Summary(ja): libmate 用のドキュメント
  45. Group: Documentation
  46. Requires: %{name} = %{version}-%{release}
  47. BuildArch: noarch
  48. %description doc
  49. This package contains documentation for libmate.
  50. %prep
  51. %setup -q
  52. %patch100 -p1 -b .vine
  53. %build
  54. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  55. %configure \
  56. --disable-static \
  57. %{__make} %{?_smp_mflags}
  58. %install
  59. %{__rm} -rf ${RPM_BUILD_ROOT}
  60. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  61. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  62. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  63. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  64. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  65. %find_lang %{name}
  66. %clean
  67. %{__rm} -rf ${RPM_BUILD_ROOT}
  68. %post
  69. /sbin/ldconfig
  70. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  71. SCHEMAS=" \
  72. desktop_mate_accessibility_keyboard.schemas \
  73. desktop_mate_accessibility_startup.schemas \
  74. desktop_mate_applications_at_mobility.schemas \
  75. desktop_mate_applications_at_visual.schemas \
  76. desktop_mate_applications_browser.schemas \
  77. desktop_mate_applications_office.schemas \
  78. desktop_mate_applications_terminal.schemas \
  79. desktop_mate_applications_window_manager.schemas \
  80. desktop_mate_background.schemas \
  81. desktop_mate_file_views.schemas \
  82. desktop_mate_interface.schemas \
  83. desktop_mate_lockdown.schemas \
  84. desktop_mate_peripherals_keyboard.schemas \
  85. desktop_mate_peripherals_mouse.schemas \
  86. desktop_mate_sound.schemas \
  87. desktop_mate_thumbnail_cache.schemas \
  88. desktop_mate_thumbnailers.schemas \
  89. desktop_mate_typing_break.schemas"
  90. for S in $SCHEMAS; do
  91. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  92. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  93. %pre
  94. if [ "$1" -gt 1 ]; then
  95. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  96. SCHEMAS=" \
  97. desktop_mate_accessibility_keyboard.schemas \
  98. desktop_mate_accessibility_startup.schemas \
  99. desktop_mate_applications_at_mobility.schemas \
  100. desktop_mate_applications_at_visual.schemas \
  101. desktop_mate_applications_browser.schemas \
  102. desktop_mate_applications_office.schemas \
  103. desktop_mate_applications_terminal.schemas \
  104. desktop_mate_applications_window_manager.schemas \
  105. desktop_mate_background.schemas \
  106. desktop_mate_file_views.schemas \
  107. desktop_mate_interface.schemas \
  108. desktop_mate_lockdown.schemas \
  109. desktop_mate_peripherals_keyboard.schemas \
  110. desktop_mate_peripherals_mouse.schemas \
  111. desktop_mate_sound.schemas \
  112. desktop_mate_thumbnail_cache.schemas \
  113. desktop_mate_thumbnailers.schemas \
  114. desktop_mate_typing_break.schemas"
  115. for S in $SCHEMAS; do
  116. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  117. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  118. fi
  119. %preun
  120. if [ "$1" -eq 0 ]; then
  121. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  122. SCHEMAS=" \
  123. desktop_mate_accessibility_keyboard.schemas \
  124. desktop_mate_accessibility_startup.schemas \
  125. desktop_mate_applications_at_mobility.schemas \
  126. desktop_mate_applications_at_visual.schemas \
  127. desktop_mate_applications_browser.schemas \
  128. desktop_mate_applications_office.schemas \
  129. desktop_mate_applications_terminal.schemas \
  130. desktop_mate_applications_window_manager.schemas \
  131. desktop_mate_background.schemas \
  132. desktop_mate_file_views.schemas \
  133. desktop_mate_interface.schemas \
  134. desktop_mate_lockdown.schemas \
  135. desktop_mate_peripherals_keyboard.schemas \
  136. desktop_mate_peripherals_mouse.schemas \
  137. desktop_mate_sound.schemas \
  138. desktop_mate_thumbnail_cache.schemas \
  139. desktop_mate_thumbnailers.schemas \
  140. desktop_mate_typing_break.schemas"
  141. for S in $SCHEMAS; do
  142. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  143. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  144. fi
  145. %postun -p /sbin/ldconfig
  146. %files -f %{name}.lang
  147. %defattr(-,root,root,-)
  148. %doc COPYING.LIB ChangeLog NEWS README
  149. %{_sysconfdir}/mateconf/schemas/desktop_mate_accessibility_keyboard.schemas
  150. %{_sysconfdir}/mateconf/schemas/desktop_mate_accessibility_startup.schemas
  151. %{_sysconfdir}/mateconf/schemas/desktop_mate_applications_at_mobility.schemas
  152. %{_sysconfdir}/mateconf/schemas/desktop_mate_applications_at_visual.schemas
  153. %{_sysconfdir}/mateconf/schemas/desktop_mate_applications_browser.schemas
  154. %{_sysconfdir}/mateconf/schemas/desktop_mate_applications_office.schemas
  155. %{_sysconfdir}/mateconf/schemas/desktop_mate_applications_terminal.schemas
  156. %{_sysconfdir}/mateconf/schemas/desktop_mate_applications_window_manager.schemas
  157. %{_sysconfdir}/mateconf/schemas/desktop_mate_background.schemas
  158. %{_sysconfdir}/mateconf/schemas/desktop_mate_file_views.schemas
  159. %{_sysconfdir}/mateconf/schemas/desktop_mate_interface.schemas
  160. %{_sysconfdir}/mateconf/schemas/desktop_mate_lockdown.schemas
  161. %{_sysconfdir}/mateconf/schemas/desktop_mate_peripherals_keyboard.schemas
  162. %{_sysconfdir}/mateconf/schemas/desktop_mate_peripherals_mouse.schemas
  163. %{_sysconfdir}/mateconf/schemas/desktop_mate_sound.schemas
  164. %{_sysconfdir}/mateconf/schemas/desktop_mate_thumbnail_cache.schemas
  165. %{_sysconfdir}/mateconf/schemas/desktop_mate_thumbnailers.schemas
  166. %{_sysconfdir}/mateconf/schemas/desktop_mate_typing_break.schemas
  167. %{_sysconfdir}/sound/events/gtk2-mate-events.soundlist
  168. %{_sysconfdir}/sound/events/mate.soundlist
  169. %{_bindir}/mate-open
  170. %{_libdir}/libmate-2.so.*
  171. %{_libdir}/matecomponent/monikers/libmoniker_extra_2.so
  172. %{_libdir}/matecomponent/servers/MATE_Moniker_std.server
  173. %{_datadir}/mate-background-properties/mate-default.xml
  174. %{_mandir}/man7/mate-options.7.gz
  175. %files devel
  176. %defattr(-,root,root,-)
  177. %{_includedir}/libmate-2.0
  178. %{_libdir}/libmate-2.so
  179. %{_libdir}/pkgconfig/libmate-2.0.pc
  180. %files doc
  181. %defattr(-,root,root,-)
  182. %{_datadir}/gtk-doc/html/libmate
  183. %changelog
  184. * Wed Aug 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  185. - new upstream release
  186. - update Patch100 (libmate-1.4.0-default-settings-vine.patch)
  187. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  188. - new upstream release
  189. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.2-1
  190. - initial build for Vine Linux