wkhtmltopdf-vl.spec 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Summary: HTML to PDF/Image generation application
  2. Summary(ja): HTMLからPDFまたは画像を生成するアプリケーション
  3. Name: wkhtmltopdf
  4. Version: 0.12.2.1
  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. Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: qt4-devel
  12. %description
  13. Simple utility to convert html to pdf or image using the webkit
  14. rendering engine, and QT.
  15. This package includes following command.
  16. - wkhtmltopdf
  17. - wkhtmltoimage
  18. %package devel
  19. Summary: Development files for wkhtmltopdf
  20. Summary(ja): wkhtmltopdf の開発ファイル
  21. Group: Development/Libraries
  22. Requires: %{name} = %{version}-%{release}
  23. %description devel
  24. Development files for wkhtmltox.
  25. %prep
  26. %setup -q -n %{name}-%{version}
  27. # libdir handling.. better handling needed
  28. sed -i.lib -e \
  29. '/INSTALLBASE/s|lib|%{_lib}|' \
  30. src/lib/lib.pro
  31. # Remove BOM
  32. sed -i.bom -e 's|\xEF\xBB\xBF||' AUTHORS
  33. touch -r AUTHORS{.bom,}
  34. rm -f AUTHORS.bom
  35. %build
  36. %{_qt4_qmake}
  37. make %{?_smp_mflags}
  38. %install
  39. rm -rf %{buildroot}
  40. make install INSTALL_ROOT=%{buildroot}/%{_prefix}
  41. # remove unneeded scripts
  42. rm -rf scripts/test*
  43. %clean
  44. rm -rf %{buildroot}
  45. %post
  46. /sbin/ldconfig
  47. %postun
  48. /sbin/ldconfig
  49. %files
  50. %doc AUTHORS
  51. %doc COPYING
  52. %doc CHANGELOG.md
  53. %doc CHANGELOG-OLD
  54. %doc README.md
  55. %{_bindir}/*
  56. %{_libdir}/*.so.*
  57. %{_mandir}/man1/wkhtmltoimage.1*
  58. %{_mandir}/man1/wkhtmltopdf.1*
  59. %files devel
  60. %doc examples
  61. %{_libdir}/*.so
  62. %{_includedir}/*
  63. %changelog
  64. * Sat Aug 29 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.12.2.1-1
  65. - new upstream release.
  66. * Mon Dec 10 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.11.0-0.rc1
  67. - initial build for Vine Linux