poppler-vl.spec 9.6 KB

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