poppler020-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. %define name poppler020
  2. %define version 0.20.4
  3. %define release 3%{?_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/poppler-%{version}.tar.gz
  10. License: GPLv2
  11. Group: System Environment/Libraries
  12. URL: http://poppler.freedesktop.org/
  13. BuildRequires: gtk2-devel >= 2.2.0
  14. BuildRequires: zlib-devel
  15. BuildRequires: libjpeg-devel
  16. BuildRequires: openjpeg-devel
  17. BuildRequires: cairo-devel
  18. BuildRequires: qt4-devel >= 4.4.0
  19. BuildRequires: libXmu-devel
  20. BuildRequires: lcms2-devel
  21. BuildRequires: libtiff-devel
  22. Requires: poppler-data >= 0.3.0
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. Obsoletes: %{name}-qt < 0.18
  25. Obsoletes: %{name}-qt-devel < 0.18
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. Packager: Takemikaduchi
  29. %description
  30. Poppler is a PDF rendering library based on the xpdf-3.0 code base.
  31. %description -l ja
  32. Popplerは xpdf-3.0 のコードをベースにした PDF レンダリング用ライブラリ
  33. です。
  34. %prep
  35. %setup -q -n poppler-%{version}
  36. %build
  37. %configure \
  38. --enable-silent-rules \
  39. --enable-shared \
  40. --disable-static \
  41. --enable-xpdf-headers \
  42. --enable-zlib \
  43. --enable-introspection=yes \
  44. --disable-gtk-doc \
  45. --enable-poppler-qt4
  46. %{__make}
  47. %install
  48. %{__rm} -rf ${RPM_BUILD_ROOT}
  49. %makeinstall
  50. # remove unnecessary files.
  51. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler.la
  52. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-cpp.la
  53. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-glib.la
  54. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-qt4.la
  55. %clean
  56. %{__rm} -rf ${RPM_BUILD_ROOT}
  57. %post -p /sbin/ldconfig
  58. %postun -p /sbin/ldconfig
  59. %files
  60. %defattr(-,root,root)
  61. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO
  62. %{_libdir}/libpoppler.so.*
  63. %changelog
  64. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 0.20.4-3
  65. - rebuild with gcc-5.4.0
  66. * Sun Aug 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.4-2
  67. - rebuild with libpng-1.6.12
  68. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.4-1
  69. - changed %%name to "poppler020" for compatibility.