|
@@ -1,16 +1,27 @@
|
|
|
Summary: HTML to PDF/Image generation application
|
|
|
Summary(ja): HTMLからPDFまたは画像を生成するアプリケーション
|
|
|
Name: wkhtmltopdf
|
|
|
-Version: 0.12.2.1
|
|
|
+Version: 0.12.3.2
|
|
|
Release: 1%{?_dist_release}
|
|
|
License: GPLv3
|
|
|
Group: System Environment/Libraries
|
|
|
Url: http://wkhtmltopdf.org/
|
|
|
|
|
|
Source0: wkhtmltopdf-%{version}.tar.gz
|
|
|
+Source1: patched-qt.tar.xz
|
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
-BuildRequires: qt4-devel
|
|
|
+
|
|
|
+BuildRequires: fontconfig-devel
|
|
|
+BuildRequires: libjpeg-turbo-devel
|
|
|
+BuildRequires: libpng-devel
|
|
|
+BuildRequires: libX11-devel
|
|
|
+BuildRequires: libXext-devel
|
|
|
+BuildRequires: libXrender-devel
|
|
|
+BuildRequires: openssl-devel
|
|
|
+BuildRequires: pkgconfig
|
|
|
+BuildRequires: python
|
|
|
+BuildRequires: zlib-devel
|
|
|
|
|
|
%description
|
|
|
Simple utility to convert html to pdf or image using the webkit
|
|
@@ -31,6 +42,7 @@ Development files for wkhtmltox.
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
+tar xvf %{SOURCE1}
|
|
|
|
|
|
# libdir handling.. better handling needed
|
|
|
sed -i.lib -e \
|
|
@@ -44,10 +56,61 @@ rm -f AUTHORS.bom
|
|
|
|
|
|
%build
|
|
|
|
|
|
-%{_qt4_qmake}
|
|
|
+pushd qt
|
|
|
+./configure \
|
|
|
+ -confirm-license \
|
|
|
+ -opensource \
|
|
|
+ -prefix ../wkqt \
|
|
|
+ -fast \
|
|
|
+ -release \
|
|
|
+ -static \
|
|
|
+ -graphicssystem raster \
|
|
|
+ -webkit \
|
|
|
+ -exceptions \
|
|
|
+ -xmlpatterns \
|
|
|
+ -no-rpath \
|
|
|
+ -reduce-relocations \
|
|
|
+ -fontconfig \
|
|
|
+ -openssl-linked \
|
|
|
+ -system-zlib \
|
|
|
+ -system-libpng \
|
|
|
+ -system-libjpeg \
|
|
|
+ -no-libmng \
|
|
|
+ -no-libtiff \
|
|
|
+ -no-accessibility \
|
|
|
+ -no-stl \
|
|
|
+ -no-qt3support \
|
|
|
+ -no-phonon \
|
|
|
+ -no-phonon-backend \
|
|
|
+ -no-opengl \
|
|
|
+ -no-declarative \
|
|
|
+ -no-scripttools \
|
|
|
+ -no-sql-ibase \
|
|
|
+ -no-sql-mysql \
|
|
|
+ -no-sql-odbc \
|
|
|
+ -no-sql-psql \
|
|
|
+ -no-sql-sqlite \
|
|
|
+ -no-sql-sqlite2 \
|
|
|
+ -no-mmx \
|
|
|
+ -no-3dnow \
|
|
|
+ -no-sse \
|
|
|
+ -no-sse2 \
|
|
|
+ -no-multimedia \
|
|
|
+ -nomake demos,docs,examples,tools,tests,translations
|
|
|
+
|
|
|
+# -no-script
|
|
|
+
|
|
|
+make %{?_smp_mflags}
|
|
|
+make install
|
|
|
+popd
|
|
|
|
|
|
+./wkqt/bin/qmake
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
+#%{_qt4_qmake}
|
|
|
+#make %{?_smp_mflags}
|
|
|
+
|
|
|
+
|
|
|
%install
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
@@ -68,9 +131,9 @@ rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
|
%doc AUTHORS
|
|
|
-%doc COPYING
|
|
|
%doc CHANGELOG.md
|
|
|
%doc CHANGELOG-OLD
|
|
|
+%doc LICENSE
|
|
|
%doc README.md
|
|
|
%{_bindir}/*
|
|
|
%{_libdir}/*.so.*
|
|
@@ -84,6 +147,10 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Mon May 2 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.12.3.2-1
|
|
|
+- new upstream release.
|
|
|
+- built with patched qt.
|
|
|
+
|
|
|
* Sat Aug 29 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.12.2.1-1
|
|
|
- new upstream release.
|
|
|
|