wkhtmltopdf-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. Summary: HTML to PDF/Image generation application
  2. Summary(ja): HTMLからPDFまたは画像を生成するアプリケーション
  3. Name: wkhtmltopdf
  4. Version: 0.12.5
  5. Release: 1%{?_dist_release}
  6. License: GPLv3
  7. Group: System Environment/Libraries
  8. Url: http://wkhtmltopdf.org/
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. Source0: wkhtmltopdf-%{version}.tar.gz
  12. Source1: patched-qt.tar.xz
  13. Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: fontconfig-devel
  15. BuildRequires: libjpeg-turbo-devel
  16. BuildRequires: libpng-devel
  17. BuildRequires: libX11-devel
  18. BuildRequires: libXext-devel
  19. BuildRequires: libXrender-devel
  20. BuildRequires: openssl-devel
  21. BuildRequires: pkgconfig
  22. BuildRequires: python
  23. BuildRequires: zlib-devel
  24. %description
  25. Simple utility to convert html to pdf or image using the webkit
  26. rendering engine, and QT.
  27. This package includes following command.
  28. - wkhtmltopdf
  29. - wkhtmltoimage
  30. %package devel
  31. Summary: Development files for wkhtmltopdf
  32. Summary(ja): wkhtmltopdf の開発ファイル
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. %description devel
  36. Development files for wkhtmltox.
  37. %prep
  38. %setup -q -n %{name}-%{version}
  39. pushd qt
  40. tar xvf %{SOURCE1}
  41. popd
  42. # libdir handling.. better handling needed
  43. sed -i.lib -e \
  44. '/INSTALLBASE/s|lib|%{_lib}|' \
  45. src/lib/lib.pro
  46. # Remove BOM
  47. sed -i.bom -e 's|\xEF\xBB\xBF||' AUTHORS
  48. touch -r AUTHORS{.bom,}
  49. rm -f AUTHORS.bom
  50. %build
  51. pushd qt
  52. ./configure \
  53. -confirm-license \
  54. -opensource \
  55. -prefix ../wkqt \
  56. -fast \
  57. -release \
  58. -static \
  59. -graphicssystem raster \
  60. -webkit \
  61. -exceptions \
  62. -xmlpatterns \
  63. -no-rpath \
  64. -reduce-relocations \
  65. -fontconfig \
  66. -openssl-linked \
  67. -system-zlib \
  68. -system-libpng \
  69. -system-libjpeg \
  70. -no-libmng \
  71. -no-libtiff \
  72. -no-accessibility \
  73. -no-stl \
  74. -no-qt3support \
  75. -no-phonon \
  76. -no-phonon-backend \
  77. -no-opengl \
  78. -no-declarative \
  79. -no-scripttools \
  80. -no-sql-ibase \
  81. -no-sql-mysql \
  82. -no-sql-odbc \
  83. -no-sql-psql \
  84. -no-sql-sqlite \
  85. -no-sql-sqlite2 \
  86. -no-mmx \
  87. -no-3dnow \
  88. -no-sse \
  89. -no-sse2 \
  90. -no-multimedia \
  91. -nomake demos,docs,examples,tools,tests,translations
  92. # -no-script
  93. make %{?_smp_mflags}
  94. make install
  95. popd
  96. ./wkqt/bin/qmake
  97. make %{?_smp_mflags}
  98. #%{_qt4_qmake}
  99. #make %{?_smp_mflags}
  100. %install
  101. rm -rf %{buildroot}
  102. make install INSTALL_ROOT=%{buildroot}/%{_prefix}
  103. # remove unneeded scripts
  104. rm -rf scripts/test*
  105. %clean
  106. rm -rf %{buildroot}
  107. %post
  108. /sbin/ldconfig
  109. %postun
  110. /sbin/ldconfig
  111. %files
  112. %doc AUTHORS
  113. %doc CHANGELOG.md
  114. %doc CHANGELOG-OLD
  115. %doc LICENSE
  116. %doc README.md
  117. %{_bindir}/*
  118. %{_libdir}/*.so.*
  119. %{_mandir}/man1/wkhtmltoimage.1*
  120. %{_mandir}/man1/wkhtmltopdf.1*
  121. %files devel
  122. %doc examples
  123. %{_libdir}/*.so
  124. %{_includedir}/*
  125. %changelog
  126. * Fri Nov 09 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.12.5-1
  127. - new upstream release.
  128. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.12.3.2-2
  129. - rebuilt with new toolchain.
  130. * Mon May 2 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.12.3.2-1
  131. - new upstream release.
  132. - built with patched qt.
  133. * Sat Aug 29 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.12.2.1-1
  134. - new upstream release.
  135. * Mon Dec 10 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.11.0-0.rc1
  136. - initial build for Vine Linux