mate-document-viewer-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. Summary: Simply a document viewer for MATE
  2. Name: mate-document-viewer
  3. Version: 1.1.0
  4. Release: 2%{?_dist_release}
  5. Source0: %{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: Applications/Publishing
  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-icon-theme
  13. BuildRequires: mate-file-manager-devel
  14. BuildRequires: libmatekeyring-devel
  15. BuildRequires: gtk2-devel
  16. BuildRequires: libxml2-devel
  17. BuildRequires: libSM-devel
  18. BuildRequires: poppler-devel
  19. BuildRequires: libtiff-devel
  20. BuildRequires: djvulibre-devel
  21. BuildRequires: libspectre-devel
  22. BuildRequires: libkpathsea-devel
  23. BuildRequires: gtk-doc
  24. BuildRequires: autoconf
  25. BuildRequires: automake
  26. Requires(post,pre,preun): mate-conf
  27. Requires(post,postun): desktop-file-utils
  28. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  29. Vendor: Project Vine
  30. Distribution: Vine Linux
  31. Packager: Takemikaduchi
  32. %description
  33. he MATE Display Manager is a system service that is responsible for
  34. providing graphical log-ins and managing local and remote displays.
  35. %package devel
  36. Summary: Development tools for mate-document-viewer
  37. Summary(ja): mate-document-viewer の開発環境
  38. Group: Development/Libraries
  39. Requires: %{name} = %{version}-%{release}
  40. Requires: pkgconfig
  41. %description devel
  42. Header files and libraries for building a extension library for the
  43. mate-document-viewer.
  44. %prep
  45. %setup -q
  46. %build
  47. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  48. %configure \
  49. --libexecdir=%{_libexecdir}/mate \
  50. --disable-static \
  51. --disable-scrollkeeper
  52. %{__make} %{?_smp_mflags}
  53. %install
  54. %{__rm} -rf ${RPM_BUILD_ROOT}
  55. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  56. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  57. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  58. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  59. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  60. %find_lang atril
  61. %clean
  62. %{__rm} -rf ${RPM_BUILD_ROOT}
  63. %post
  64. /sbin/ldconfig
  65. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  66. SCHEMAS=" \
  67. atril-thumbnailer-comics.schemas \
  68. atril-thumbnailer-djvu.schemas \
  69. atril-thumbnailer-dvi.schemas \
  70. atril-thumbnailer-ps.schemas \
  71. atril-thumbnailer.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. atril-thumbnailer-comics.schemas \
  85. atril-thumbnailer-djvu.schemas \
  86. atril-thumbnailer-dvi.schemas \
  87. atril-thumbnailer-ps.schemas \
  88. atril-thumbnailer.schemas"
  89. for S in $SCHEMAS; do
  90. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  91. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  92. fi
  93. %preun
  94. if [ "$1" -eq 0 ]; then
  95. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  96. SCHEMAS=" \
  97. atril-thumbnailer-comics.schemas \
  98. atril-thumbnailer-djvu.schemas \
  99. atril-thumbnailer-dvi.schemas \
  100. atril-thumbnailer-ps.schemas \
  101. atril-thumbnailer.schemas"
  102. for S in $SCHEMAS; do
  103. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  104. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  105. fi
  106. %postun
  107. /sbin/ldconfig
  108. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  109. touch --no-create %{_datadir}/icons/hicolor
  110. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  111. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  112. fi
  113. if [ $1 -eq 0 ]; then
  114. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  115. fi
  116. %posttrans
  117. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  118. %files -f atril.lang
  119. %defattr(-,root,root,-)
  120. %doc COPYING ChangeLog NEWS README
  121. %{_sysconfdir}/mateconf/schemas/atril-thumbnailer-comics.schemas
  122. %{_sysconfdir}/mateconf/schemas/atril-thumbnailer-djvu.schemas
  123. %{_sysconfdir}/mateconf/schemas/atril-thumbnailer-dvi.schemas
  124. %{_sysconfdir}/mateconf/schemas/atril-thumbnailer-ps.schemas
  125. %{_sysconfdir}/mateconf/schemas/atril-thumbnailer.schemas
  126. %{_bindir}/atril
  127. %{_bindir}/atril-previewer
  128. %{_bindir}/atril-thumbnailer
  129. %{_libdir}/libatrildocument.so.*
  130. %{_libdir}/libatrilview.so.*
  131. %{_libdir}/atril
  132. %{_libdir}/caja/extensions-2.0/libatril-properties-page.so
  133. %{_libexecdir}/mate/atril-convert-metadata
  134. %{_libexecdir}/mate/atrild
  135. %{_datadir}/MateConf/gsettings/atril.convert
  136. %{_datadir}/applications/atril.desktop
  137. %{_datadir}/atril
  138. %{_datadir}/dbus-1/services/org.mate.atril.Daemon.service
  139. %{_datadir}/glib-2.0/schemas/org.mate.Atril.gschema.xml
  140. %{_datadir}/icons/hicolor/*/*/*
  141. %{_datadir}/mate/help/atril
  142. %{_datadir}/omf/atril
  143. %{_mandir}/man1/atril.1.gz
  144. %files devel
  145. %defattr(-,root,root,-)
  146. %{_includedir}/atril
  147. %{_libdir}/libatrildocument.so
  148. %{_libdir}/libatrilview.so
  149. %{_libdir}/pkgconfig/atril-document-2.32.pc
  150. %{_libdir}/pkgconfig/atril-view-2.32.pc
  151. %changelog
  152. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  153. - change category
  154. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  155. - initial build for Vine Linux