source: projects/specs/trunk/w/wkhtmltopdf/wkhtmltopdf-vl.spec @ 10426

Revision 10426, 3.0 KB checked in by tomop, 8 years ago (diff)

wkhtmltopdf-0.12.3.2-2

RevLine 
[7212]1Summary: HTML to PDF/Image generation application
2Summary(ja): HTMLからPDFまたは画像を生成するアプリケーション
3Name: wkhtmltopdf
[10220]4Version: 0.12.3.2
[10426]5Release: 2%{?_dist_release}
[7212]6License: GPLv3
7Group: System Environment/Libraries
[9722]8Url: http://wkhtmltopdf.org/
[7212]9
[9722]10Source0: wkhtmltopdf-%{version}.tar.gz
[10220]11Source1: patched-qt.tar.xz
[7212]12
13Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
14
[10220]15BuildRequires: fontconfig-devel
16BuildRequires: libjpeg-turbo-devel
17BuildRequires: libpng-devel
18BuildRequires: libX11-devel
19BuildRequires: libXext-devel
20BuildRequires: libXrender-devel
21BuildRequires: openssl-devel
22BuildRequires: pkgconfig
23BuildRequires: python
24BuildRequires: zlib-devel
25
[7212]26%description
27Simple utility to convert html to pdf or image using the webkit
28rendering engine, and QT.
29This package includes following command.
30- wkhtmltopdf
31- wkhtmltoimage
32
33%package devel
34Summary: Development files for wkhtmltopdf
35Summary(ja): wkhtmltopdf の開発ファイル
36Group: Development/Libraries
37Requires: %{name} = %{version}-%{release}
38
39%description devel
40Development files for wkhtmltox.
41
42
43%prep
[9722]44%setup -q -n %{name}-%{version}
[10220]45tar xvf %{SOURCE1}
[7212]46
[9722]47# libdir handling.. better handling needed
48sed -i.lib -e \
49        '/INSTALLBASE/s|lib|%{_lib}|' \
50        src/lib/lib.pro
[7212]51
[9722]52# Remove BOM
53sed -i.bom -e 's|\xEF\xBB\xBF||' AUTHORS
54touch -r AUTHORS{.bom,}
55rm -f AUTHORS.bom
[7212]56
57%build
58
[10220]59pushd 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]103make %{?_smp_mflags}
[10220]104make install
105popd
[7212]106
[10220]107./wkqt/bin/qmake
108make %{?_smp_mflags}
109
110#%{_qt4_qmake}
111#make %{?_smp_mflags}
112
113
[7212]114%install
115rm -rf %{buildroot}
116
117make install INSTALL_ROOT=%{buildroot}/%{_prefix}
118
119# remove unneeded scripts
120rm -rf scripts/test*
121
122
123%clean
124rm -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
Note: See TracBrowser for help on using the repository browser.