poppler-vl.spec 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. %define name poppler
  2. %define version 0.14.2
  3. %define release 1%{?_dist_release}
  4. Summary: PDF rendering library.
  5. Summary(ja): PDF レンダリング用ライブラリ
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
  10. Patch10: poppler-0.10.7-otf-support.patch
  11. License: GPL
  12. Group: System Environment/Libraries
  13. URL: http://poppler.freedesktop.org/
  14. BuildRequires: gtk2-devel >= 2.2.0
  15. BuildRequires: zlib-devel
  16. BuildRequires: libjpeg-devel
  17. BuildRequires: openjpeg-devel
  18. BuildRequires: cairo-devel, gtk-doc
  19. BuildRequires: qt-devel
  20. BuildRequires: qt4-devel >= 4.4.0
  21. BuildRequires: libXmu-devel
  22. Requires: poppler-data >= 0.3.0
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. Packager: kazutaka, inagaki, daisuke
  27. %description
  28. Poppler is a PDF rendering library based on the xpdf-3.0 code base.
  29. %description -l ja
  30. Popplerは xpdf-3.0 のコードをベースにした PDF レンダリング用ライブラリ
  31. です。
  32. #-----------------------------------------------------------------------------
  33. %package devel
  34. Summary: Libraries and headers for poppler
  35. Summary(ja): poppler用の開発ライブラリおよびヘッダファイル
  36. Group: Development/Libraries
  37. Requires: %{name} = %{version}-%{release}
  38. %description devel
  39. This package includes the files needed for developing and compiling
  40. applications which use the poppler library.
  41. You should install the poppler-devel package if you would like to
  42. develop applications based on poppler.
  43. %description devel -l ja
  44. このパッケージは poppler ライブラリを使用するアプリケーションを開発
  45. するのに必要なライブラリやヘッダファイルを含んでいます。
  46. poppler をベースにしたアプリケーションを開発するなら、このパッケージ
  47. をインストールしてください。
  48. #-----------------------------------------------------------------------------
  49. %package qt
  50. Summary: Qt3 wrapper for poppler
  51. Group: System Environment/Libraries
  52. Requires: %{name} = %{version}-%{release}
  53. %description qt
  54. Qt3 wrapper for poppler.
  55. %package qt-devel
  56. Summary: Development files for poppler Qt3 wrapper
  57. Group: Development/Libraries
  58. Requires: %{name}-qt = %{version}-%{release}
  59. Requires: %{name}-devel = %{version}-%{release}
  60. Requires: qt-devel
  61. %description qt-devel
  62. Development files for poppler Qt3 wrapper
  63. #-----------------------------------------------------------------------------
  64. %package qt4
  65. Summary: Qt4 wrapper for poppler
  66. Group: System Environment/Libraries
  67. Requires: %{name} = %{version}-%{release}
  68. Requires: qt4 >= 4.4.0
  69. %description qt4
  70. Qt4 wrapper for poppler.
  71. %package qt4-devel
  72. Summary: Development files for poppler Qt4 wrapper
  73. Group: Development/Libraries
  74. Requires: %{name}-qt4 = %{version}-%{release}
  75. Requires: %{name}-devel = %{version}-%{release}
  76. Requires: qt4-devel >= 4.4.0
  77. %description qt4-devel
  78. Development files for poppler Qt4 wrapper
  79. #-----------------------------------------------------------------------------
  80. %prep
  81. %setup -q
  82. %patch10 -p1 -b .otf-support
  83. %build
  84. unset QTDIR && . /etc/profile.d/qt.sh
  85. %configure \
  86. --enable-silent-rules \
  87. --disable-utils \
  88. --enable-zlib \
  89. --enable-xpdf-headers \
  90. --disable-gtk-doc \
  91. --enable-shared \
  92. --enable-poppler-qt \
  93. --enable-poppler-qt4 \
  94. --disable-static
  95. %{__make}
  96. %install
  97. %{__rm} -rf ${RPM_BUILD_ROOT}
  98. %makeinstall
  99. # remove unnecessary files.
  100. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler.la
  101. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-glib.la
  102. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-qt.la
  103. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-qt4.la
  104. %clean
  105. %{__rm} -rf ${RPM_BUILD_ROOT}
  106. %post -p /sbin/ldconfig
  107. %postun -p /sbin/ldconfig
  108. %post qt -p /sbin/ldconfig
  109. %postun qt -p /sbin/ldconfig
  110. %post qt4 -p /sbin/ldconfig
  111. %postun qt4 -p /sbin/ldconfig
  112. %files
  113. %defattr(-,root,root)
  114. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO
  115. %{_libdir}/lib*.so.*
  116. %exclude %{_libdir}/libpoppler-qt.so.*
  117. %exclude %{_libdir}/libpoppler-qt4.so.*
  118. %files devel
  119. %defattr(-, root, root)
  120. %{_libdir}/lib*.so
  121. %{_libdir}/pkgconfig/*.pc
  122. %{_includedir}/poppler
  123. %{_datadir}/gtk-doc/html/poppler
  124. %exclude %{_libdir}/libpoppler-qt.so
  125. %exclude %{_libdir}/libpoppler-qt4.so
  126. %exclude %{_libdir}/pkgconfig/poppler-qt.pc
  127. %exclude %{_libdir}/pkgconfig/poppler-qt4.pc
  128. %exclude %{_includedir}/poppler/qt3
  129. %exclude %{_includedir}/poppler/qt4
  130. %files qt
  131. %defattr(-, root, root)
  132. %{_libdir}/libpoppler-qt.so.*
  133. %files qt-devel
  134. %defattr(-, root, root)
  135. %{_libdir}/libpoppler-qt.so
  136. %{_libdir}/pkgconfig/poppler-qt.pc
  137. %{_includedir}/poppler/qt3
  138. %files qt4
  139. %defattr(-, root, root)
  140. %{_libdir}/libpoppler-qt4.so.*
  141. %files qt4-devel
  142. %defattr(-, root, root)
  143. %{_libdir}/libpoppler-qt4.so
  144. %{_libdir}/pkgconfig/poppler-qt4.pc
  145. %{_includedir}/poppler/qt4
  146. %changelog
  147. * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14.2-1
  148. - new upstream release
  149. - add BuildRequires: libXmu-devel
  150. * Sun Mar 21 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12.4-1
  151. - new upstream release (including security fix CVE-2009-3607)
  152. - built with new toolchain
  153. - changed --enable-gtk-doc to --disable-gtk-doc
  154. * Mon Nov 2 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12.1-1
  155. - new upstream release (including security fix based xpdf 3.02pl4)
  156. - added BR: openjpeg-devel
  157. * Sun Aug 16 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.10.7-3
  158. - added qt4 wrapper subpackage
  159. - added BuildRequires: qt4-devel
  160. * Mon Jul 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10.7-2
  161. - add Patch10 to support otf font with TrueType format. (<BTS:0727>)
  162. (thanks to tomop)
  163. * Mon May 18 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.7-1
  164. - new upstream release
  165. * Sun May 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.10.6-3
  166. - added qt3 wrapper subpackage
  167. * Fri May 01 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.6-2
  168. - add configure option --enable-shared and --disable-static
  169. - drop *.a from devel sub package
  170. * Fri Apr 24 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.6-1
  171. - new upstream release
  172. - add Packager: kazutaka
  173. * Sun Mar 15 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.5-1
  174. - new upstream release
  175. * Mon Feb 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.4-1
  176. - new upstream release
  177. * Sun Feb 01 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.3-1
  178. - new upstream release
  179. * Sat Dec 13 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.2-1
  180. - new upstream release
  181. * Fri Oct 10 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.8.7-1
  182. - new upstream release
  183. - built with cairo-1.8.0
  184. * Sat Aug 30 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.6-1
  185. - new upstream release
  186. * Tue Jul 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.8.5-1
  187. - new upstream release
  188. * Tue Jul 01 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.4-1
  189. - new upstream release
  190. * Thu Jun 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.8.3-1
  191. - new upstream release
  192. - spec in UTF-8
  193. * Tue Apr 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.8.2-1
  194. - new upstream release.
  195. - rebuilt with cairo-1.6.4
  196. * Mon Mar 31 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.0-1
  197. - new upstream release.
  198. - apply new versioning policy.
  199. * Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6.4-0vl1
  200. - new upstream release.
  201. * Sun Dec 30 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6.3-0vl1
  202. - new upstream release.
  203. * Tue Dec 11 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6.2-0vl1
  204. - new upstream release.
  205. * Sat Oct 27 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6.1-0vl1
  206. - new upstream release.
  207. * Sun Sep 09 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6-0vl1
  208. - new upstream release.
  209. - add Requires to poppler-data.
  210. * Mon Jun 18 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.9-0vl1
  211. - new upstream release.
  212. - drop Patch100. (Fixed in upstream)
  213. * Fri May 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.4-0vl3
  214. - rebuild with new environment/toolchain
  215. * Mon Feb 05 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.5.4-0vl2
  216. - rebuilt for VineSeed
  217. * Sat Jan 20 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.5.4-0vl1.1
  218. - add patch100 for fix CVE-2007-0104 (Catalog Dictionary Handling Dos)
  219. - add Vendor/Distribution Tag
  220. * Tue Sep 26 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.4-0vl1
  221. - source update.
  222. - remove unnecessary .la files in %%install section.
  223. * Thu Jun 22 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.3-0vl2
  224. - add Requires: xpdf-common >= 3.01
  225. - fix Url
  226. * Sat Jun 17 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.3-0vl1
  227. - source update.
  228. - add BuildRequires gtk-doc.
  229. * Sun May 28 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.2-0vl1
  230. - source update.
  231. * Sat Mar 11 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.1-0vl2
  232. - add --enable-xpdf-headers configure option.
  233. * Wed Mar 01 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.1-0vl1
  234. - source update.
  235. - add %%{_datadir}/gtk-doc/html/poppler in %%files section.
  236. - add --disable-utils and --enable-zlib configure option.
  237. (--disable-utis needed to aboid conflict with xpdf)
  238. - delete --enable-a4-paper configure option.(no longer supported)
  239. * Wed Jan 25 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.4-0vl1
  240. - source update.
  241. * Wed Sep 21 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.2-0vl1
  242. - source update.
  243. - add configure option --disable-poppler-{qt.qt4}, --enable-a4-paper.
  244. - del BuildReq: libpixman-devel.(Obsolete by cairo)
  245. * Thu Aug 18 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.0-0vl1
  246. - source update.
  247. * Sun Jun 25 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.3-0vl1
  248. - source update.
  249. * Thu May 19 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.2-0vl1
  250. - source update.
  251. * Thu May 05 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.1-0vl1
  252. - initial build for VineSeed Plus.