LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File wkhtmltopdf.spec of Package wkhtmltopdf (Project Publishing)

#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define realver 0.11.0_rc1

Name:           wkhtmltopdf
Version:        0.10.99.1
Release:        1
License:        GPL-3.0+
Summary:        Convert HTML to PDF
Url:            http://wkhtmltopdf.googlecode.com/
Group:          Productivity/Publishing/PDF
Source:         http://wkhtmltopdf.googlecode.com/files/%{name}-%{realver}.tar.bz2
BuildRequires:  libQtWebKit-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Simple shell utility to convert HTML to PDF using
the WebKit rendering engine and Qt.

%prep
%setup -q -n %{name}-%{realver}

%build
qmake
make %{?_smp_mflags}

%install
install -D -m 0755 bin/wkhtmltoimage %{buildroot}%{_bindir}/wkhtmltoimage
install -D -m 0755 bin/wkhtmltopdf %{buildroot}%{_bindir}/wkhtmltopdf
mkdir -p  %{buildroot}%{_libdir}
cp -a bin/libwkhtmltox.so* %{buildroot}%{_libdir}
# We have no devel package
rm -f "%buildroot/%_libdir/libwkhtmltox.so"

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING README_*
%{_bindir}/wkhtmltoimage
%{_bindir}/wkhtmltopdf
%{_libdir}/libwkhtmltox.so*

%changelog