Logoj0ke.net Open Build Service > Projects > internetx:1351100200:1001689948 > wkhtmltopdf > Changes
Sign Up | Log In

Changes of Revision 5

[-] Changed wkhtmltopdf.spec
x
 
1
@@ -14,6 +14,7 @@
2
 BuildRequires:  gcc-c++ libpng-devel opt-libqt4-devel opt-libQtWebKit-devel
3
 Requires:  opt-libqt4 >= 4.8
4
 Requires:  opt-libQtWebKit4 >= 2.2.3
5
+Requires:  xorg-x11-server-extra
6
 
7
 %description
8
 Simple shell utility to convert html to pdf using the webkit rendering engine, and qt.
9
@@ -54,12 +55,12 @@
10
 mv %{buildroot}%{_bindir}/wkhtmltoimage %{buildroot}%{_bindir}/wkhtmltoimage.bin
11
 cat > %{buildroot}%{_bindir}/wkhtmltopdf << EOF
12
 #!/bin/bash
13
-LD_LIBRARY_PATH=%{qtlibdir} %{_bindir}/wkhtmltopdf.bin $@
14
+DISPLAY=:1 LD_LIBRARY_PATH=%{qtlibdir} %{_bindir}/wkhtmltopdf.bin \$@
15
 EOF
16
 
17
 cat > %{buildroot}%{_bindir}/wkhtmltoimage << EOF
18
 #!/bin/bash
19
-LD_LIBRARY_PATH=%{qtlibdir} %{_bindir}/wkhtmltoimage.bin $@
20
+DISPLAY=:1 LD_LIBRARY_PATH=%{qtlibdir} %{_bindir}/wkhtmltoimage.bin \$@
21
 EOF
22
 
23
 chmod +x %{buildroot}%{_bindir}/wkhtmltoimage %{buildroot}%{_bindir}/wkhtmltopdf
24