Subversion Repositories ALCASAR

Rev

Blame | Last modification | View Log

Summary:        Convert HTML to PDF
Name:           wkhtmltopdf
Version:        0.12.3
Release:        1
License:        GPL
BuildArch:      noarch
URL:            http://wkhtmltopdf.org/
Group:          Development/Tools
Source:         %{name}-%{version}.tar.gz
Provides:       wkhtmltopdf = %{version}-%{release}
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot


%description
Convert HTML to PDF using the Qt WebKit rendering engine

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


%install
rm -rf %{buildroot}

mkdir -p %{buildroot}/usr/bin
mkdir -p %{buildroot}/usr/include
mkdir -p %{buildroot}/usr/include/wkhtmltox
mkdir -p %{buildroot}/usr/lib
mkdir -p %{buildroot}/usr/share
mkdir -p %{buildroot}/usr/share/man/man1

cp usr/bin/*  %{buildroot}/usr/bin/
cp usr/include/wkhtmltox/*  %{buildroot}/usr/include/wkhtmltox/
cp usr/lib/*  %{buildroot}/usr/lib/
cp usr/share/man/man1/*  %{buildroot}/usr/share/man/man1/



ln -s %{buildroot}/usr/lib/libwkhtmltox.so.0.12.3 %{buildroot}/usr/lib/libwkhtmltox.so 
ln -s %{buildroot}/usr/lib/libwkhtmltox.so.0.12.3 %{buildroot}/usr/lib/libwkhtmltox.so.0
#ln -s %{buildroot}/usr/lib/libwkhtmltox.so.0.12.3 %{buildroot}/usr/lib/libwkhtmltox.so.0.12 probleme avec le '1'

%clean
#rm -rf  %{buildroot}

%files
%defattr(-,root,root)
%attr(0755,root,root) /usr/bin/wkhtmltopdf
%attr(0755,root,root) /usr/bin/wkhtmltoimage

/usr/bin/wkhtmltoimage
/usr/bin/wkhtmltopdf
/usr/include/wkhtmltox/dllbegin.inc
/usr/include/wkhtmltox/dllend.inc
/usr/include/wkhtmltox/image.h
/usr/include/wkhtmltox/pdf.h
/usr/lib/libwkhtmltox.so
/usr/lib/libwkhtmltox.so.0
#/usr/lib/libwkhtmltox.so.0.12
/usr/lib/libwkhtmltox.so.0.12.3
/usr/share/man/man1/wkhtmltoimage.1.xz
/usr/share/man/man1/wkhtmltopdf.1.xz

%changelog
* Tue Jul 19 2016 Raphael for ALCASAR projet
RPM created for Mageia