wkhtmltopdf-vl.spec 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Summary: HTML to PDF/Image generation application
  2. Summary(ja): HTMLからPDFまたは画像を生成するアプリケーション
  3. Name: wkhtmltopdf
  4. Version: 0.11.0
  5. Release: 0.rc1%{?_dist_release}
  6. License: GPLv3
  7. Group: System Environment/Libraries
  8. Url: http://code.google.com/p/wkhtmltopdf/
  9. Source0: http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-%{version}_rc1.tar.bz2
  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}_rc1
  27. # fix install path
  28. sed -i -e 's|INSTALLBASE/lib|INSTALLBASE/%{_lib}|g' src/lib/lib.pro
  29. # drop exec permissions from sample scripts
  30. chmod a-x scripts/*.*
  31. %build
  32. %{_qt4_qmake}
  33. make %{?_smp_mflags}
  34. %install
  35. rm -rf %{buildroot}
  36. make install INSTALL_ROOT=%{buildroot}/%{_prefix}
  37. # remove unneeded scripts
  38. rm -rf scripts/test*
  39. %clean
  40. rm -rf %{buildroot}
  41. %post
  42. /sbin/ldconfig
  43. %postun
  44. /sbin/ldconfig
  45. %files
  46. %doc COPYING README_* scripts
  47. %{_bindir}/*
  48. %{_libdir}/*.so.*
  49. %files devel
  50. %doc examples
  51. %{_libdir}/*.so
  52. %{_includedir}/*
  53. %changelog
  54. * Mon Dec 10 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.11.0-0.rc1
  55. - initial build for Vine Linux