mate-file-archiver-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. Summary: Archive manipulator for MATE
  2. Name: mate-file-archiver
  3. Version: 1.1.0
  4. Release: 2%{?_dist_release}
  5. Source0: %{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: Applications/Archiving
  8. URL: https://matsusoft.com.ar/projects/mate/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-doc-utils
  11. BuildRequires: mate-conf-devel
  12. BuildRequires: gtk2-devel
  13. BuildRequires: libSM-devel
  14. BuildRequires: gtk-doc
  15. BuildRequires: autoconf
  16. BuildRequires: automake
  17. Requires(post,pre,preun): mate-conf
  18. Requires(post,postun): desktop-file-utils
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: Takemikaduchi
  23. %description
  24. Engrampa is an archive manager for the MATE environment. This means
  25. that you can create and modify archives; view the content of an archive;
  26. view and modify a file contained in the archive; extract files from the
  27. archive.
  28. %prep
  29. %setup -q
  30. %build
  31. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  32. %configure \
  33. --libexecdir=%{_libexecdir}/mate \
  34. --disable-static \
  35. --disable-scrollkeeper
  36. %{__make} %{?_smp_mflags}
  37. %install
  38. %{__rm} -rf ${RPM_BUILD_ROOT}
  39. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  40. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  41. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  42. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  43. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  44. %find_lang engrampa
  45. %clean
  46. %{__rm} -rf ${RPM_BUILD_ROOT}
  47. %post
  48. /sbin/ldconfig
  49. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  50. SCHEMAS=" \
  51. engrampa.schemas"
  52. for S in $SCHEMAS; do
  53. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  54. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  55. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  56. touch --no-create %{_datadir}/icons/hicolor
  57. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  58. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  59. fi
  60. %pre
  61. if [ "$1" -gt 1 ]; then
  62. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  63. SCHEMAS=" \
  64. engrampa.schemas"
  65. for S in $SCHEMAS; do
  66. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  67. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  68. fi
  69. %preun
  70. if [ "$1" -eq 0 ]; then
  71. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  72. SCHEMAS=" \
  73. engrampa.schemas"
  74. for S in $SCHEMAS; do
  75. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  76. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  77. fi
  78. %postun
  79. /sbin/ldconfig
  80. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  81. touch --no-create %{_datadir}/icons/hicolor
  82. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  83. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  84. fi
  85. %files -f engrampa.lang
  86. %defattr(-,root,root,-)
  87. %doc COPYING ChangeLog NEWS README
  88. %{_sysconfdir}/mateconf/schemas/engrampa.schemas
  89. %{_bindir}/engrampa
  90. %{_libexecdir}/mate/engrampa/isoinfo.sh
  91. %{_libexecdir}/mate/engrampa/rpm2cpio
  92. %{_datadir}/applications/engrampa.desktop
  93. %{_datadir}/engrampa
  94. %{_datadir}/icons/hicolor/*/*/*
  95. %{_datadir}/mate/help/engrampa
  96. %{_datadir}/omf/engrampa
  97. %changelog
  98. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  99. - change category
  100. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  101. - initial build for Vine Linux