]> git.pld-linux.org Git - packages/php-pecl-pdflib.git/blame - php-pecl-pdflib.spec
- release 2
[packages/php-pecl-pdflib.git] / php-pecl-pdflib.spec
CommitLineData
5c7c656c
ER
1%define modname pdflib
2%define smodname pdf
3%define status stable
4Summary: %{modname} - creating PDF on the fly with the PDFlib library
5Summary(pl.UTF-8): %{modname} - tworzenie PDF "w locie" za pomocą biblioteki PDFlib
6Name: php-pecl-%{modname}
7Version: 2.1.8
cbd0fd89 8Release: 2
61e8b327 9License: PHP
596d3329 10Group: Development/Languages/PHP
5c7c656c
ER
11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
12# Source0-md5: ee1b7c30b68b2caba8a95ef9a45e9b84
13URL: http://pecl.php.net/package/pdflib/
e6d2669d 14BuildRequires: libjpeg-devel
e6d2669d 15BuildRequires: libpng-devel
61e8b327 16BuildRequires: libtiff-devel
e6d2669d 17BuildRequires: pdflib-devel
8b8740f7 18BuildRequires: php-devel >= 3:5.0.0
ac96e783 19BuildRequires: rpmbuild(macros) >= 1.344
e6d2669d 20BuildRequires: zlib-devel
8b8740f7 21%{?requires_php_extension}
ac96e783 22Requires: php-common >= 4:5.0.4
5c7c656c 23Obsoletes: php-pear-%{modname}
e6d2669d 24Obsoletes: php-pdf < 3:5.0.0
596d3329
AG
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
596d3329 27%description
61e8b327
ER
28This extension wraps the PDFlib programming library for processing PDF
29on the fly.
596d3329 30
5c7c656c 31In PECL status of this extension is: %{status}.
596d3329 32
4ac52193
JR
33%description -l pl.UTF-8
34To rozszerzenie "owija" bibliotekę PDFlib przeznaczoną do tworzenia
35dokumentów PDF "w locie".
596d3329 36
5c7c656c 37To rozszerzenie ma w PECL status: %{status}.
596d3329
AG
38
39%prep
5c7c656c
ER
40%setup -qc
41mv %{modname}-%{version}/* .
596d3329
AG
42
43%build
596d3329
AG
44phpize
45%configure \
46 --with-png-dir=%{_prefix} \
47 --with-jpeg-dir=%{_prefix} \
48 --with-tiff-dir=%{_prefix} \
49 --with-zlib-dir=%{_prefix}
50%{__make}
51
52%install
53rm -rf $RPM_BUILD_ROOT
ac96e783 54install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
596d3329 55
5c7c656c
ER
56install -p modules/%{smodname}.so $RPM_BUILD_ROOT%{php_extensiondir}
57cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
58; Enable %{modname} extension module
59extension=%{smodname}.so
8b8740f7 60EOF
596d3329
AG
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%post
ac96e783 66%php_webserver_restart
596d3329 67
8b8740f7
ER
68%postun
69if [ "$1" = 0 ]; then
ac96e783 70 %php_webserver_restart
596d3329
AG
71fi
72
73%files
74%defattr(644,root,root,755)
5c7c656c
ER
75%doc CREDITS
76%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
77%attr(755,root,root) %{php_extensiondir}/%{smodname}.so
This page took 0.035757 seconds and 4 git commands to generate.