]> git.pld-linux.org Git - packages/wkhtmltopdf.git/blame - wkhtmltopdf.spec
- BR: QtXmlPatterns-devel
[packages/wkhtmltopdf.git] / wkhtmltopdf.spec
CommitLineData
e24dd55a
JB
1Summary: Programs capable of converting HTML documents into images or PDF documents
2Summary(pl.UTF-8): Programy do konwersji dokumentów HTML do obrazów lub dokumentów PDF
3Name: wkhtmltopdf
4Version: 0.11.0
5%define subver rc1
6Release: 0.%{subver}.1
7License: LGPL v3+ (library), GPL v3+ (utilities)
8Group: Applications/Graphics
9#Source0Download: http://code.google.com/p/wkhtmltopdf/downloads/list
10Source0: http://wkhtmltopdf.googlecode.com/files/%{name}-%{version}_%{subver}.tar.bz2
11# Source0-md5: 65378cf59698c676fcd6d8f5efd54be6
12URL: http://code.google.com/p/wkhtmltopdf/
13BuildRequires: QtCore-devel >= 4
14BuildRequires: QtGui-devel >= 4
15BuildRequires: QtNetwork-devel >= 4
16BuildRequires: QtSvg-devel >= 4
17BuildRequires: QtWebKit-devel >= 4
72934c8c 18BuildRequires: QtXmlPatterns-devel >= 4
e24dd55a
JB
19BuildRequires: qt4-qmake
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23Programs capable of converting HTML documents into images or PDF
24documents.
25
26%description -l pl.UTF-8
27Programy do konwersji dokumentów HTML do obrazów lub dokumentów PDF.
28
29%package devel
30Summary: Header files for wkhtmltox library
31Summary(pl.UTF-8): Pliki nagłówkowe biblioteki wkhtmltox
32License: LGPL v3+
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
35Requires: QtCore-devel >= 4
36Requires: QtNetwork-devel >= 4
37Requires: QtWebKit-devel >= 4
38
39%description devel
40Header files for wkhtmltox library.
41
42%description devel -l pl.UTF-8
43Pliki nagłówkowe biblioteki wkhtmltox.
44
45%prep
46%setup -q -n %{name}-%{version}_%{subver}
47
48%build
49qmake-qt4 \
50 QMAKE_CXX="%{__cxx}" \
51 QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
52 QMAKE_LFLAGS_RELEASE="%{rpmldflags}"
53
54%{__make}
55
56%install
57rm -rf $RPM_BUILD_ROOT
58install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}}
59
60install bin/wkhtmlto* $RPM_BUILD_ROOT%{_bindir}
61cp -dp bin/libwkhtmltox.so{,.?,.*.*.*} $RPM_BUILD_ROOT%{_libdir}
62cp -pr include/wkhtmltox $RPM_BUILD_ROOT%{_includedir}
63
64%clean
65rm -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
This page took 0.094069 seconds and 4 git commands to generate.