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