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

Revision 11907, 3.2 KB checked in by tomop, 5 years ago (diff)

wkhtmltopdf-0.12.5-1

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