]>
Commit | Line | Data |
---|---|---|
e24dd55a JB |
1 | Summary: Programs capable of converting HTML documents into images or PDF documents |
2 | Summary(pl.UTF-8): Programy do konwersji dokumentów HTML do obrazów lub dokumentów PDF | |
3 | Name: wkhtmltopdf | |
4 | Version: 0.11.0 | |
5 | %define subver rc1 | |
6 | Release: 0.%{subver}.1 | |
7 | License: LGPL v3+ (library), GPL v3+ (utilities) | |
8 | Group: Applications/Graphics | |
9 | #Source0Download: http://code.google.com/p/wkhtmltopdf/downloads/list | |
10 | Source0: http://wkhtmltopdf.googlecode.com/files/%{name}-%{version}_%{subver}.tar.bz2 | |
11 | # Source0-md5: 65378cf59698c676fcd6d8f5efd54be6 | |
12 | URL: http://code.google.com/p/wkhtmltopdf/ | |
13 | BuildRequires: QtCore-devel >= 4 | |
14 | BuildRequires: QtGui-devel >= 4 | |
15 | BuildRequires: QtNetwork-devel >= 4 | |
16 | BuildRequires: QtSvg-devel >= 4 | |
17 | BuildRequires: QtWebKit-devel >= 4 | |
72934c8c | 18 | BuildRequires: QtXmlPatterns-devel >= 4 |
e24dd55a JB |
19 | BuildRequires: qt4-qmake |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Programs capable of converting HTML documents into images or PDF | |
24 | documents. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Programy do konwersji dokumentów HTML do obrazów lub dokumentów PDF. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for wkhtmltox library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki wkhtmltox | |
32 | License: LGPL v3+ | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | Requires: QtCore-devel >= 4 | |
36 | Requires: QtNetwork-devel >= 4 | |
37 | Requires: QtWebKit-devel >= 4 | |
38 | ||
39 | %description devel | |
40 | Header files for wkhtmltox library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki wkhtmltox. | |
44 | ||
45 | %prep | |
46 | %setup -q -n %{name}-%{version}_%{subver} | |
47 | ||
48 | %build | |
49 | qmake-qt4 \ | |
50 | QMAKE_CXX="%{__cxx}" \ | |
51 | QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \ | |
52 | QMAKE_LFLAGS_RELEASE="%{rpmldflags}" | |
53 | ||
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}} | |
59 | ||
60 | install bin/wkhtmlto* $RPM_BUILD_ROOT%{_bindir} | |
61 | cp -dp bin/libwkhtmltox.so{,.?,.*.*.*} $RPM_BUILD_ROOT%{_libdir} | |
62 | cp -pr include/wkhtmltox $RPM_BUILD_ROOT%{_includedir} | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %post -p /sbin/ldconfig | |
68 | %postun -p /sbin/ldconfig | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %doc README_WKHTMLTOIMAGE README_WKHTMLTOPDF | |
73 | %attr(755,root,root) %{_bindir}/wkhtmltoimage | |
74 | %attr(755,root,root) %{_bindir}/wkhtmltopdf | |
75 | %attr(755,root,root) %{_libdir}/libwkhtmltox.so.*.*.* | |
76 | %attr(755,root,root) %ghost %{_libdir}/libwkhtmltox.so.0 | |
77 | ||
78 | %files devel | |
79 | %defattr(644,root,root,755) | |
80 | %attr(755,root,root) %{_libdir}/libwkhtmltox.so | |
81 | %{_includedir}/wkhtmltox |