mate-image-viewer-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. Summary: An image viewing and cataloging program for MATE
  2. Name: mate-image-viewer
  3. Version: 1.1.0
  4. Release: 2%{?_dist_release}
  5. Source0: %{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: Applications/Graphics
  8. URL: https://matsusoft.com.ar/projects/mate/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-doc-utils
  11. BuildRequires: mate-conf-devel
  12. BuildRequires: mate-desktop-devel
  13. BuildRequires: mate-icon-theme
  14. BuildRequires: gtk2-devel
  15. BuildRequires: dbus-glib-devel
  16. BuildRequires: libxml2-devel
  17. BuildRequires: librsvg2-devel
  18. BuildRequires: libexif-devel
  19. BuildRequires: lcms-devel
  20. BuildRequires: exempi-devel
  21. BuildRequires: libjpeg-turbo-devel
  22. BuildRequires: gtk-doc
  23. BuildRequires: autoconf
  24. BuildRequires: automake
  25. Requires(post,pre,preun): mate-conf
  26. Requires(post,postun): desktop-file-utils
  27. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  28. Vendor: Project Vine
  29. Distribution: Vine Linux
  30. Packager: Takemikaduchi
  31. %description
  32. This is the Eye of MATE, an image viewer program. It is meant to be
  33. a fast and functional image viewer.
  34. %package devel
  35. Summary: Development tools for mate-image-viewer
  36. Summary(ja): mate-image-viewer の開発環境
  37. Group: Development/Libraries
  38. Requires: %{name} = %{version}-%{release}
  39. Requires: pkgconfig
  40. %description devel
  41. Header files and libraries for building a extension library for the
  42. mate-image-viewer.
  43. %package doc
  44. Summary: Documentation for mate-image-viewer
  45. Summary(ja): mate-image-viewer 用のドキュメント
  46. Group: Documentation
  47. Requires: %{name} = %{version}-%{release}
  48. BuildArch: noarch
  49. %description doc
  50. This package contains documentation for mate-image-viewer.
  51. %prep
  52. %setup -q
  53. %build
  54. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  55. %configure \
  56. --disable-static \
  57. --disable-scrollkeeper
  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 eom
  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. eom.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. eom.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. eom.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 eom.lang
  108. %defattr(-,root,root,-)
  109. %doc COPYING ChangeLog NEWS README
  110. %{_sysconfdir}/mateconf/schemas/eom.schemas
  111. %{_bindir}/eom
  112. %{_libdir}/eom/plugins
  113. %{_datadir}/applications/eom.desktop
  114. %{_datadir}/eom
  115. %{_datadir}/icons/hicolor/*/*/*
  116. %{_datadir}/mate/help/eom
  117. %{_datadir}/omf/eom
  118. %files devel
  119. %defattr(-,root,root,-)
  120. %{_includedir}/eom-2.20
  121. %{_libdir}/pkgconfig/eom.pc
  122. %changelog
  123. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  124. - change category
  125. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  126. - initial build for Vine Linux