atril-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. %define _unpackaged_files_terminate_build 1
  2. Summary: Simply a document viewer for MATE
  3. Name: atril
  4. Version: 1.20.1
  5. Release: 1%{?_dist_release}
  6. Source0: http://pub.mate-desktop.org/releases/1.20/%{name}-%{version}.tar.xz
  7. License: GPLv2
  8. Group: Applications/Publishing
  9. URL: http://mate-desktop.org/
  10. BuildRequires: mate-common
  11. BuildRequires: mate-icon-theme
  12. #BuildRequires: mate-desktop-devel
  13. BuildRequires: caja-devel
  14. BuildRequires: gtk3-devel
  15. BuildRequires: libxml2-devel
  16. BuildRequires: webkitgtk4-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: libgxps-devel
  24. BuildRequires: libsecret-devel
  25. BuildRequires: itstool
  26. BuildRequires: gtk-doc
  27. BuildRequires: autoconf
  28. BuildRequires: automake
  29. Requires(posttrans,postun): glib2
  30. Requires(post,postun): gtk2
  31. Requires(post,postun): desktop-file-utils
  32. Obsoletes: mate-document-viewer < 1.8.0
  33. Provides: mate-document-viewer = %{name}-%{version}
  34. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  35. Vendor: Project Vine
  36. Distribution: Vine Linux
  37. Packager: Takemikaduchi, iwaim
  38. %description
  39. he MATE Display Manager is a system service that is responsible for
  40. providing graphical log-ins and managing local and remote displays.
  41. %package devel
  42. Summary: Development tools for %{name}
  43. Summary(ja): %{name} の開発環境
  44. Group: Development/Libraries
  45. Requires: %{name} = %{version}-%{release}
  46. Requires: pkgconfig
  47. Obsoletes: mate-document-viewer-devel < 1.8.0
  48. Provides: mate-document-viewer-devel = %{name}-%{version}
  49. %description devel
  50. Header files and libraries for building a extension library for the
  51. %{name}.
  52. %package docs
  53. Summary: Documentation for %{name}
  54. Summary(ja): %{name} 用のドキュメント
  55. Group: Documentation
  56. Requires: %{name} = %{version}-%{release}
  57. BuildArch: noarch
  58. Obsoletes: mate-document-viewer-docs < 1.8.0
  59. Provides: mate-document-viewer-docs = %{name}-%{version}
  60. %description docs
  61. This package contains documentation for %{name}.
  62. %package caja
  63. Summary: Caja extension for %{name}
  64. Summary(ja): %{name} の Caja 拡張
  65. Group: User Interface/Desktops
  66. Requires: %{name} = %{version}-%{release}
  67. %description caja
  68. This package contains the atril caja extension.
  69. %prep
  70. %setup -q
  71. # fix typo in ja.po
  72. sed -i "s|Artil|Atril|" po/ja.po
  73. %build
  74. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  75. %configure \
  76. --libexecdir=%{_libexecdir}/mate \
  77. --disable-static \
  78. --with-gtk=3.0 \
  79. --enable-pixbuf
  80. %{__make} %{?_smp_mflags}
  81. %install
  82. %{__rm} -rf ${RPM_BUILD_ROOT}
  83. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  84. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  85. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  86. %find_lang %{name}
  87. %clean
  88. %{__rm} -rf ${RPM_BUILD_ROOT}
  89. %post
  90. /sbin/ldconfig
  91. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  92. touch --no-create %{_datadir}/icons/hicolor
  93. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  94. %postun
  95. /sbin/ldconfig
  96. if [ $1 -eq 0 ]; then
  97. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  98. touch --no-create %{_datadir}/icons/hicolor
  99. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  100. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  101. fi
  102. %posttrans
  103. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  104. %files -f %{name}.lang
  105. %defattr(-,root,root,-)
  106. %doc COPYING ChangeLog NEWS README
  107. %{_bindir}/%{name}
  108. %{_bindir}/atril-previewer
  109. %{_bindir}/atril-thumbnailer
  110. %{_libdir}/libatrildocument.so.*
  111. %{_libdir}/libatrilview.so.*
  112. %{_libdir}/%{name}
  113. %{_libexecdir}/mate/atrild
  114. %{_datadir}/appdata/%{name}.appdata.xml
  115. %{_datadir}/applications/%{name}.desktop
  116. %{_datadir}/caja/extensions/libatril-properties-page.caja-extension
  117. %{_datadir}/dbus-1/services/org.mate.atril.Daemon.service
  118. %{_datadir}/glib-2.0/schemas/org.mate.Atril.gschema.xml
  119. %{_datadir}/icons/hicolor/*/*/*
  120. %{_datadir}/help/*
  121. %{_datadir}/%{name}
  122. %{_datadir}/thumbnailers/%{name}.thumbnailer
  123. %{_mandir}/man1/%{name}.1.gz
  124. %{_mandir}/man1/atril-previewer.1.gz
  125. %{_mandir}/man1/atril-thumbnailer.1.gz
  126. %files devel
  127. %defattr(-,root,root,-)
  128. %{_includedir}/%{name}
  129. %{_libdir}/libatrildocument.so
  130. %{_libdir}/libatrilview.so
  131. %{_libdir}/pkgconfig/atril-document-1.5.0.pc
  132. %{_libdir}/pkgconfig/atril-view-1.5.0.pc
  133. %files docs
  134. %defattr(-,root,root,-)
  135. %{_datadir}/gtk-doc/html/%{name}
  136. %{_datadir}/gtk-doc/html/libatrildocument-1.5.0
  137. %{_datadir}/gtk-doc/html/libatrilview-1.5.0
  138. %files caja
  139. %defattr(-,root,root,-)
  140. %{_libdir}/caja/extensions-2.0/libatril-properties-page.so
  141. %changelog
  142. * Sun May 20 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 1.20.1-1
  143. - update to 1.20.1
  144. * Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.18.3-1
  145. - new upstream release.
  146. - switched to gtk3.
  147. * Sun Nov 27 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.1-1
  148. - new upstream release
  149. - update Packager
  150. * Fri Jul 1 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.14.1-2
  151. - rebuilt with new toolchain.
  152. * Sun May 22 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.1-1
  153. - new upstream release
  154. * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1
  155. - new upstream release
  156. * Sat Dec 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.2-1
  157. - new upstream release
  158. * Tue Dec 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.1-1
  159. - new upstream release
  160. * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1
  161. - new upstream release
  162. * Wed Sep 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1
  163. - new upstream release
  164. * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-2
  165. - fix typo in ja.po
  166. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1
  167. - new upstream release
  168. - create %%{name}-caja subpackage
  169. * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1
  170. - new upstream release
  171. - add BuildRequires: mate-desktop-devel, WebKit-gtk-devel
  172. * Wed Nov 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1
  173. - new upstream release
  174. * Tue Jul 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-4
  175. - rebuild with poppler-0.26.2
  176. * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-3
  177. - rebuild with libarchive-3.1.2
  178. * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2
  179. - rebuild with poppler-0.24.5
  180. * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  181. - new upstream release
  182. - rename package
  183. - add BuildRequires: libsecret-devel, itstool
  184. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-2
  185. - rebuild with VineSeed environment
  186. * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1
  187. - new upstream release
  188. * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1
  189. - new upstream release
  190. - remove BuildRequires: mate-conf-devel
  191. - add BuildRequires: libgxps-devel
  192. * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  193. - new upstream release
  194. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1
  195. - new upstream release
  196. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  197. - change category
  198. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  199. - initial build for Vine Linux