wkhtmltopdf-vl.spec 2.9 KB

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