mate-file-manager-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. Summary: The MATE shell and file manager
  2. Name: mate-file-manager
  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. Patch0: mate-file-manager-1.2.2-makefile.patch
  7. License: GPLv2
  8. Group: User Interface/Desktops
  9. URL: http://mate-desktop.org/
  10. BuildRequires: mate-common
  11. BuildRequires: mate-conf-devel
  12. BuildRequires: mate-desktop-devel
  13. BuildRequires: gtk2-devel
  14. BuildRequires: libxml2-devel
  15. BuildRequires: libSM-devel
  16. BuildRequires: unique-devel
  17. BuildRequires: libexif-devel
  18. BuildRequires: exempi-devel
  19. BuildRequires: gtk-doc
  20. BuildRequires: autoconf
  21. BuildRequires: automake
  22. Requires(post,pre,preun): mate-conf
  23. Requires(post,postun): desktop-file-utils
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. Vendor: Project Vine
  26. Distribution: Vine Linux
  27. Packager: Takemikaduchi
  28. %description
  29. This is Caja, the file manager for the MATE desktop.
  30. %package devel
  31. Summary: Development tools for mate-file-manager
  32. Summary(ja): mate-file-manager の開発環境
  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-file-manager.
  39. %package doc
  40. Summary: Documentation for mate-file-manager
  41. Summary(ja): mate-file-manager 用のドキュメント
  42. Group: Documentation
  43. Requires: %{name} = %{version}-%{release}
  44. BuildArch: noarch
  45. %description doc
  46. This package contains documentation for mate-file-manager.
  47. %prep
  48. %setup -q
  49. %patch0 -p1
  50. %build
  51. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  52. %configure \
  53. --libexecdir=%{_libexecdir}/mate \
  54. --disable-static \
  55. --disable-scrollkeeper \
  56. --enable-unique \
  57. --disable-update-mimedb
  58. %{__make} %{?_smp_mflags}
  59. %install
  60. %{__rm} -rf ${RPM_BUILD_ROOT}
  61. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  62. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  63. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  64. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  65. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  66. %find_lang caja
  67. %clean
  68. %{__rm} -rf ${RPM_BUILD_ROOT}
  69. %post
  70. /sbin/ldconfig
  71. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  72. SCHEMAS=" \
  73. apps_caja_preferences.schemas"
  74. for S in $SCHEMAS; do
  75. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  76. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  77. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  78. touch --no-create %{_datadir}/icons/hicolor
  79. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  80. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  81. fi
  82. %pre
  83. if [ "$1" -gt 1 ]; then
  84. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  85. SCHEMAS=" \
  86. apps_caja_preferences.schemas"
  87. for S in $SCHEMAS; do
  88. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  89. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  90. fi
  91. %preun
  92. if [ "$1" -eq 0 ]; then
  93. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  94. SCHEMAS=" \
  95. apps_caja_preferences.schemas"
  96. for S in $SCHEMAS; do
  97. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  98. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  99. fi
  100. %postun
  101. /sbin/ldconfig
  102. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  103. touch --no-create %{_datadir}/icons/hicolor
  104. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  105. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  106. fi
  107. %files -f caja.lang
  108. %defattr(-,root,root,-)
  109. %doc COPYING ChangeLog NEWS README
  110. %{_sysconfdir}/mateconf/schemas/apps_caja_preferences.schemas
  111. %{_bindir}/caja
  112. %{_bindir}/caja-autorun-software
  113. %{_bindir}/caja-connect-server
  114. %{_bindir}/caja-file-management-properties
  115. %{_libdir}/libcaja-extension.so.*
  116. %{_libdir}/girepository-1.0/Caja-2.0.typelib
  117. %{_libexecdir}/mate/caja-convert-metadata
  118. %{_datadir}/applications/*.desktop
  119. %{_datadir}/caja
  120. %{_datadir}/icons/hicolor/*/*/*
  121. %{_datadir}/mime/packages/caja.xml
  122. %{_datadir}/pixmaps/caja
  123. %{_mandir}/man1/*.1.gz
  124. %files devel
  125. %defattr(-,root,root,-)
  126. %{_includedir}/caja
  127. %{_libdir}/libcaja-extension.so
  128. %{_libdir}/pkgconfig/libcaja-extension.pc
  129. %{_datadir}/gir-1.0/Caja-2.0.gir
  130. %files doc
  131. %defattr(-,root,root,-)
  132. %{_datadir}/gtk-doc/html/libcaja-extension
  133. %changelog
  134. * Wed Aug 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  135. - new upstream release
  136. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.2-1
  137. - new upstream release
  138. - add Patch0 (mate-file-manager-1.2.2-makefile.patch)
  139. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  140. - change category
  141. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  142. - initial build for Vine Linux