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