mate-file-manager-vl.spec 4.3 KB

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