Revision 7212,
1.5 KB
checked in by daisuke, 12 years ago
(diff) |
wkhtmltopdf: new package
|
Line | |
---|
1 | Summary: HTML to PDF/Image generation application |
---|
2 | Summary(ja): HTMLからPDFまたは画像を生成するアプリケーション |
---|
3 | Name: wkhtmltopdf |
---|
4 | Version: 0.11.0 |
---|
5 | Release: 0.rc1%{?_dist_release} |
---|
6 | License: GPLv3 |
---|
7 | Group: System Environment/Libraries |
---|
8 | Url: http://code.google.com/p/wkhtmltopdf/ |
---|
9 | |
---|
10 | Source0: http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-%{version}_rc1.tar.bz2 |
---|
11 | |
---|
12 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
13 | BuildRequires: qt4-devel |
---|
14 | |
---|
15 | %description |
---|
16 | Simple utility to convert html to pdf or image using the webkit |
---|
17 | rendering engine, and QT. |
---|
18 | This package includes following command. |
---|
19 | - wkhtmltopdf |
---|
20 | - wkhtmltoimage |
---|
21 | |
---|
22 | %package devel |
---|
23 | Summary: Development files for wkhtmltopdf |
---|
24 | Summary(ja): wkhtmltopdf の開発ファイル |
---|
25 | Group: Development/Libraries |
---|
26 | Requires: %{name} = %{version}-%{release} |
---|
27 | |
---|
28 | %description devel |
---|
29 | Development files for wkhtmltox. |
---|
30 | |
---|
31 | |
---|
32 | %prep |
---|
33 | %setup -q -n %{name}-%{version}_rc1 |
---|
34 | |
---|
35 | # fix install path |
---|
36 | sed -i -e 's|INSTALLBASE/lib|INSTALLBASE/%{_lib}|g' src/lib/lib.pro |
---|
37 | |
---|
38 | # drop exec permissions from sample scripts |
---|
39 | chmod a-x scripts/*.* |
---|
40 | |
---|
41 | %build |
---|
42 | |
---|
43 | %{_qt4_qmake} |
---|
44 | |
---|
45 | make %{?_smp_mflags} |
---|
46 | |
---|
47 | %install |
---|
48 | rm -rf %{buildroot} |
---|
49 | |
---|
50 | make install INSTALL_ROOT=%{buildroot}/%{_prefix} |
---|
51 | |
---|
52 | # remove unneeded scripts |
---|
53 | rm -rf scripts/test* |
---|
54 | |
---|
55 | |
---|
56 | %clean |
---|
57 | rm -rf %{buildroot} |
---|
58 | |
---|
59 | |
---|
60 | %post |
---|
61 | /sbin/ldconfig |
---|
62 | %postun |
---|
63 | /sbin/ldconfig |
---|
64 | |
---|
65 | %files |
---|
66 | %doc COPYING README_* scripts |
---|
67 | %{_bindir}/* |
---|
68 | %{_libdir}/*.so.* |
---|
69 | |
---|
70 | %files devel |
---|
71 | %doc examples |
---|
72 | %{_libdir}/*.so |
---|
73 | %{_includedir}/* |
---|
74 | |
---|
75 | |
---|
76 | %changelog |
---|
77 | * Mon Dec 10 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.11.0-0.rc1 |
---|
78 | - initial build for Vine Linux |
---|
79 | |
---|
Note: See
TracBrowser
for help on using the repository browser.