wkhtmltopdf-vl.spec 3.5 KB

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