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

Revision 7212, 1.5 KB checked in by daisuke, 11 years ago (diff)

wkhtmltopdf: new package

Line 
1Summary: HTML to PDF/Image generation application
2Summary(ja): HTMLからPDFまたは画像を生成するアプリケーション
3Name: wkhtmltopdf
4Version: 0.11.0
5Release: 0.rc1%{?_dist_release}
6License: GPLv3
7Group: System Environment/Libraries
8Url: http://code.google.com/p/wkhtmltopdf/
9
10Source0: http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-%{version}_rc1.tar.bz2
11
12Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
13BuildRequires: qt4-devel
14
15%description
16Simple utility to convert html to pdf or image using the webkit
17rendering engine, and QT.
18This package includes following command.
19- wkhtmltopdf
20- wkhtmltoimage
21
22%package devel
23Summary: Development files for wkhtmltopdf
24Summary(ja): wkhtmltopdf の開発ファイル
25Group: Development/Libraries
26Requires: %{name} = %{version}-%{release}
27
28%description devel
29Development files for wkhtmltox.
30
31
32%prep
33%setup -q -n %{name}-%{version}_rc1
34
35# fix install path
36sed -i -e 's|INSTALLBASE/lib|INSTALLBASE/%{_lib}|g' src/lib/lib.pro
37
38# drop exec permissions from sample scripts
39chmod a-x scripts/*.*
40
41%build
42
43%{_qt4_qmake}
44
45make %{?_smp_mflags}
46
47%install
48rm -rf %{buildroot}
49
50make install INSTALL_ROOT=%{buildroot}/%{_prefix}
51
52# remove unneeded scripts
53rm -rf scripts/test*
54
55
56%clean
57rm -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.