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

Revision 10220, 2.9 KB checked in by tomop, 8 years ago (diff)

wkhtmltopdf-0.12.3.2-1

Line 
1Summary: HTML to PDF/Image generation application
2Summary(ja): HTMLからPDFまたは画像を生成するアプリケーション
3Name: wkhtmltopdf
4Version: 0.12.3.2
5Release: 1%{?_dist_release}
6License: GPLv3
7Group: System Environment/Libraries
8Url: http://wkhtmltopdf.org/
9
10Source0: wkhtmltopdf-%{version}.tar.gz
11Source1: patched-qt.tar.xz
12
13Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
14
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
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
44%setup -q -n %{name}-%{version}
45tar xvf %{SOURCE1}
46
47# libdir handling.. better handling needed
48sed -i.lib -e \
49        '/INSTALLBASE/s|lib|%{_lib}|' \
50        src/lib/lib.pro
51
52# Remove BOM
53sed -i.bom -e 's|\xEF\xBB\xBF||' AUTHORS
54touch -r AUTHORS{.bom,}
55rm -f AUTHORS.bom
56
57%build
58
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
100
101#       -no-script
102
103make %{?_smp_mflags}
104make install
105popd
106
107./wkqt/bin/qmake
108make %{?_smp_mflags}
109
110#%{_qt4_qmake}
111#make %{?_smp_mflags}
112
113
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
133%doc    AUTHORS
134%doc    CHANGELOG.md
135%doc    CHANGELOG-OLD
136%doc    LICENSE
137%doc    README.md
138%{_bindir}/*
139%{_libdir}/*.so.*
140%{_mandir}/man1/wkhtmltoimage.1*
141%{_mandir}/man1/wkhtmltopdf.1*
142
143%files devel
144%doc examples
145%{_libdir}/*.so
146%{_includedir}/*
147
148
149%changelog
150* Mon May  2 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.12.3.2-1
151- new upstream release.
152- built with patched qt.
153
154* Sat Aug 29 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.12.2.1-1
155- new upstream release.
156
157* Mon Dec 10 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.11.0-0.rc1
158- initial build for Vine Linux
159
Note: See TracBrowser for help on using the repository browser.