poppler061-vl.spec 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. %bcond_with doc
  2. %define name poppler061
  3. %define version 0.61.1
  4. %define release 2%{?_dist_release}
  5. Summary: PDF rendering library.
  6. Summary(ja): PDF レンダリング用ライブラリ
  7. Name: %{name}
  8. Version: %{version}
  9. Release: %{release}
  10. Source0: http://poppler.freedesktop.org/poppler-%{version}.tar.xz
  11. # https://bugzilla.redhat.com/show_bug.cgi?id=1185007
  12. Patch0: poppler-0.30.0-rotated-words-selection.patch
  13. # https://bugzilla.redhat.com/show_bug.cgi?id=1113172
  14. Patch1: 0001-workaround-a-bug-in-nss-header.patch
  15. License: GPLv2
  16. Group: System Environment/Libraries
  17. URL: http://poppler.freedesktop.org/
  18. BuildRequires: cmake
  19. BuildRequires: gettext-devel
  20. BuildRequires: gtk2-devel >= 2.2.0
  21. %if %{with doc}
  22. BuildRequires: gtk-doc
  23. %endif
  24. BuildRequires: gtk3-devel
  25. BuildRequires: zlib-devel
  26. BuildRequires: libjpeg-devel
  27. BuildRequires: openjpeg2-devel
  28. BuildRequires: cairo-devel
  29. BuildRequires: libXmu-devel
  30. BuildRequires: lcms2-devel
  31. BuildRequires: libtiff-devel
  32. Requires: poppler-data >= 0.3.0
  33. Obsoletes: poppler < %{version}-%{release}
  34. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  35. Vendor: Project Vine
  36. Distribution: Vine Linux
  37. Packager: kazutaka, inagaki, daisuke
  38. %description
  39. Poppler is a PDF rendering library based on the xpdf-3.0 code base.
  40. %description -l ja
  41. Popplerは xpdf-3.0 のコードをベースにした PDF レンダリング用ライブラリ
  42. です。
  43. %prep
  44. %autosetup -p1 -n poppler-%{version}
  45. %build
  46. mkdir build
  47. cd build
  48. export CC="gcc -fPIC" # hack to make the cmake call pass
  49. %cmake \
  50. -DENABLE_CMS=lcms2 \
  51. -DENABLE_DCTDECODER=libjpeg \
  52. %if %{with doc}
  53. -DENABLE_GTK_DOC=ON \
  54. %endif
  55. -DENABLE_LIBOPENJPEG=openjpeg2 \
  56. -DENABLE_XPDF_HEADERS=ON \
  57. -DENABLE_ZLIB=OFF \
  58. -DENABLE_GLIB=OFF \
  59. -DENABLE_QT4=OFF \
  60. -DENABLE_QT5=OFF \
  61. -DENABLE_UTILS=OFF \
  62. ..
  63. unset CC
  64. %{__make} %{?_smp_mflags}
  65. %install
  66. %{__rm} -rf ${RPM_BUILD_ROOT}
  67. cd build
  68. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  69. # remove unnecessary files.
  70. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler.la
  71. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-cpp.la
  72. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-glib.la
  73. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-qt4.la
  74. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-qt5.la
  75. %clean
  76. %{__rm} -rf ${RPM_BUILD_ROOT}
  77. %post -p /sbin/ldconfig
  78. %postun -p /sbin/ldconfig
  79. %files
  80. %defattr(-,root,root)
  81. %license COPYING
  82. %doc AUTHORS ChangeLog INSTALL NEWS README* TODO
  83. %{_libdir}/lib*.so.*
  84. %exclude %{_libdir}/libpoppler-cpp.so.*
  85. %exclude %{_libdir}/lib*.so
  86. %exclude %{_libdir}/pkgconfig
  87. %exclude %{_includedir}/poppler
  88. %if %{with doc}
  89. %exclude %{_datadir}/gtk-doc
  90. %endif
  91. %exclude %{_bindir}/pdf*
  92. %exclude %{_mandir}
  93. %changelog
  94. * Mon Oct 14 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.61.1-2
  95. - changed %%name.
  96. * Sun Dec 31 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.61.1-1
  97. - new upstream release.
  98. - imported Patch0 and 1 from rawhide.
  99. * Thu Mar 9 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.43.0-4
  100. - new upstream release.
  101. - fixed qt5 stuff.
  102. * Mon Nov 21 2016 Toshiaki Ara <ara_t@384.jp> 0.43.0-3
  103. - add packages: poppler-qt5 / poppler-qt5-devel
  104. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.43.0-2
  105. - rebuilt with new toolchain.
  106. * Mon May 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.43.0-1
  107. - new upstream release
  108. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.37.0-1
  109. - new upstream release
  110. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.26.5-1
  111. - new upstream release
  112. * Tue Jul 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.26.2-1
  113. - new upstream release
  114. * Wed Apr 30 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.24.5-1
  115. - new upstream release with security fixes
  116. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24.2-2
  117. - rebuild with VineSeed environment
  118. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24.2-1
  119. - new upstream release
  120. * Sat Sep 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.4-1
  121. - new upstream release
  122. - change BuildRequires: lcms2-devel instead of lcms-devel
  123. - add BuildRequires: libtiff-devel
  124. * Wed Apr 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18.4-1
  125. - new upstream release
  126. - remove Patch10
  127. - remove qt, qt-devel sub packages
  128. * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.16.6-2
  129. - add Requires: gtk2-devel (-devel package)
  130. * Tue May 31 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.16.6-1
  131. - new upstream release
  132. * Tue Apr 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.16.4-2
  133. - rebuild again on ppc with openjpeg-1.4
  134. * Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.16.4-1
  135. - new upstream release
  136. - built with openjpeg-1.4
  137. * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.16.3-1
  138. - new upstream release
  139. - added utils subpackage
  140. * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14.2-1
  141. - new upstream release
  142. - add BuildRequires: libXmu-devel
  143. * Sun Mar 21 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12.4-1
  144. - new upstream release (including security fix CVE-2009-3607)
  145. - built with new toolchain
  146. - changed --enable-gtk-doc to --disable-gtk-doc
  147. * Mon Nov 2 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12.1-1
  148. - new upstream release (including security fix based xpdf 3.02pl4)
  149. - added BR: openjpeg-devel
  150. * Sun Aug 16 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.10.7-3
  151. - added qt4 wrapper subpackage
  152. - added BuildRequires: qt4-devel
  153. * Mon Jul 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10.7-2
  154. - add Patch10 to support otf font with TrueType format. (<BTS:0727>)
  155. (thanks to tomop)
  156. * Mon May 18 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.7-1
  157. - new upstream release
  158. * Sun May 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.10.6-3
  159. - added qt3 wrapper subpackage
  160. * Fri May 01 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.6-2
  161. - add configure option --enable-shared and --disable-static
  162. - drop *.a from devel sub package
  163. * Fri Apr 24 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.6-1
  164. - new upstream release
  165. - add Packager: kazutaka
  166. * Sun Mar 15 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.5-1
  167. - new upstream release
  168. * Mon Feb 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.4-1
  169. - new upstream release
  170. * Sun Feb 01 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.3-1
  171. - new upstream release
  172. * Sat Dec 13 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.2-1
  173. - new upstream release
  174. * Fri Oct 10 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.8.7-1
  175. - new upstream release
  176. - built with cairo-1.8.0
  177. * Sat Aug 30 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.6-1
  178. - new upstream release
  179. * Tue Jul 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.8.5-1
  180. - new upstream release
  181. * Tue Jul 01 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.4-1
  182. - new upstream release
  183. * Thu Jun 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.8.3-1
  184. - new upstream release
  185. - spec in UTF-8
  186. * Tue Apr 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.8.2-1
  187. - new upstream release.
  188. - rebuilt with cairo-1.6.4
  189. * Mon Mar 31 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.0-1
  190. - new upstream release.
  191. - apply new versioning policy.
  192. * Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6.4-0vl1
  193. - new upstream release.
  194. * Sun Dec 30 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6.3-0vl1
  195. - new upstream release.
  196. * Tue Dec 11 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6.2-0vl1
  197. - new upstream release.
  198. * Sat Oct 27 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6.1-0vl1
  199. - new upstream release.
  200. * Sun Sep 09 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6-0vl1
  201. - new upstream release.
  202. - add Requires to poppler-data.
  203. * Mon Jun 18 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.9-0vl1
  204. - new upstream release.
  205. - drop Patch100. (Fixed in upstream)
  206. * Fri May 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.4-0vl3
  207. - rebuild with new environment/toolchain
  208. * Mon Feb 05 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.5.4-0vl2
  209. - rebuilt for VineSeed
  210. * Sat Jan 20 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.5.4-0vl1.1
  211. - add patch100 for fix CVE-2007-0104 (Catalog Dictionary Handling Dos)
  212. - add Vendor/Distribution Tag
  213. * Tue Sep 26 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.4-0vl1
  214. - source update.
  215. - remove unnecessary .la files in %%install section.
  216. * Thu Jun 22 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.3-0vl2
  217. - add Requires: xpdf-common >= 3.01
  218. - fix Url
  219. * Sat Jun 17 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.3-0vl1
  220. - source update.
  221. - add BuildRequires gtk-doc.
  222. * Sun May 28 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.2-0vl1
  223. - source update.
  224. * Sat Mar 11 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.1-0vl2
  225. - add --enable-xpdf-headers configure option.
  226. * Wed Mar 01 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.1-0vl1
  227. - source update.
  228. - add %%{_datadir}/gtk-doc/html/poppler in %%files section.
  229. - add --disable-utils and --enable-zlib configure option.
  230. (--disable-utis needed to aboid conflict with xpdf)
  231. - delete --enable-a4-paper configure option.(no longer supported)
  232. * Wed Jan 25 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.4-0vl1
  233. - source update.
  234. * Wed Sep 21 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.2-0vl1
  235. - source update.
  236. - add configure option --disable-poppler-{qt.qt4}, --enable-a4-paper.
  237. - del BuildReq: libpixman-devel.(Obsolete by cairo)
  238. * Thu Aug 18 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.0-0vl1
  239. - source update.
  240. * Sat Jun 25 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.3-0vl1
  241. - source update.
  242. * Thu May 19 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.2-0vl1
  243. - source update.
  244. * Thu May 05 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.1-0vl1
  245. - initial build for VineSeed Plus.