4 Summary: %{modname} - creating PDF on the fly with the PDFlib library
5 Summary(pl.UTF-8): %{modname} - tworzenie PDF "w locie" za pomocą biblioteki PDFlib
6 Name: php-pecl-%{modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
12 # Source0-md5: ee1b7c30b68b2caba8a95ef9a45e9b84
13 URL: http://pecl.php.net/package/pdflib/
14 BuildRequires: libjpeg-devel
15 BuildRequires: libpng-devel
16 BuildRequires: libtiff-devel
17 BuildRequires: pdflib-devel
18 BuildRequires: php-devel >= 3:5.0.0
19 BuildRequires: rpmbuild(macros) >= 1.344
20 BuildRequires: zlib-devel
21 %{?requires_php_extension}
22 Requires: php-common >= 4:5.0.4
23 Obsoletes: php-pear-%{modname}
24 Obsoletes: php-pdf < 3:5.0.0
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This extension wraps the PDFlib programming library for processing PDF
31 In PECL status of this extension is: %{status}.
33 %description -l pl.UTF-8
34 To rozszerzenie "owija" bibliotekę PDFlib przeznaczoną do tworzenia
35 dokumentów PDF "w locie".
37 To rozszerzenie ma w PECL status: %{status}.
41 mv %{modname}-%{version}/* .
46 --with-png-dir=%{_prefix} \
47 --with-jpeg-dir=%{_prefix} \
48 --with-tiff-dir=%{_prefix} \
49 --with-zlib-dir=%{_prefix}
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
56 install -p modules/%{smodname}.so $RPM_BUILD_ROOT%{php_extensiondir}
57 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
58 ; Enable %{modname} extension module
59 extension=%{smodname}.so
63 rm -rf $RPM_BUILD_ROOT
66 %php_webserver_restart
70 %php_webserver_restart
74 %defattr(644,root,root,755)
76 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
77 %attr(755,root,root) %{php_extensiondir}/%{smodname}.so