LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File php71-pecl-pdflib.spec of Package php71-pecl-pdflib (Project home:efellows)

%define php_extdir /opt/remi/php71/root/usr/lib64/php/modules
%define php_confdir /etc/opt/remi/php71/php.d
%global php_zend_api 20160303-64
%global php_core_api 20160303-64
%define pecl_name pdflib

%define real_name php-pecl-pdflib

Summary:        PHP Extension for PDFlib
Name:           php71-pecl-pdflib
Version:        9.2.0
Release:        1%{?dist}
License:        Commercial
Group:          Development/Languages
URL:            http://www.pdflib.com/
Source:         http://www.pdflib.com/binaries/PDFlib/920/PDFlib-%{version}-Linux-x86_64-php.tar.gz
Source1:        pdflib.ini

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
Provides:       %{real_name} = %{version}

Requires:       php71-php(zend-abi) = %{php_zend_api}
Requires:       php71-php(api) = %{php_core_api}
Provides:       php71-php-pecl(%{pecl_name}) = %{version}


%description
Portable library for dynamically generating PDF documents with support
for many other programming languages and development environments.

PDFlib distribution packages for many platforms are available from
www.pdflib.com.

PDFlib is a library for generating PDF files. It offers an API with
support for text, vector graphics, raster images, and hypertext. Call PDFlib
routines from within your client program and voila: dynamic PDF files!


%prep
%setup -q -n PDFlib-%{version}-Linux-x86_64-php

%install
%{__mkdir_p} %{buildroot}%{php_extdir}
%{__install} -m 755 bind/php/php-710-nts/php_pdflib.so %{buildroot}%{php_extdir}/php_pdflib.so

# Drop in the bit of configuration
%{__mkdir_p} %{buildroot}%{php_confdir}
%{__install} -m 644 %{SOURCE1} %{buildroot}%{php_confdir}/pdflib.ini

%files
%defattr(-, root, root, 0755)
%config(noreplace) %{php_confdir}/pdflib.ini
%{php_extdir}/php_pdflib.so