]> git.pld-linux.org Git - packages/php-pecl-haru.git/blame - php-pecl-haru.spec
- release 5 (by relup.sh)
[packages/php-pecl-haru.git] / php-pecl-haru.spec
CommitLineData
a3981ff5
ER
1%define php_name php%{?php_suffix}
2%define modname haru
3%define status stable
4Summary: %{modname} - Haru PDF functions
5Summary(pl.UTF-8): %{modname} - funkcje PDF haru
6Name: %{php_name}-pecl-%{modname}
52c5b3bd 7Version: 1.0.4
3afff15e 8Release: 5
c8b57d8b
AG
9License: PHP
10Group: Development/Languages/PHP
a3981ff5 11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
52c5b3bd 12# Source0-md5: be91eed4a46c7067d7877bbe8b64ac23
c8b57d8b 13URL: http://pecl.php.net/package/haru/
8ba8e88b 14BuildRequires: %{php_name}-devel >= 3:5.0.4
c8b57d8b 15BuildRequires: libharu-devel >= 2.0.8-2
a3981ff5 16BuildRequires: rpmbuild(macros) >= 1.650
c8b57d8b 17%{?requires_php_extension}
c1bfb520 18Provides: php(%{modname}) = %{version}
8ba8e88b 19Obsoletes: php-pecl-haru < 1.0.4-3
c8b57d8b
AG
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23This extensions allows you to create PDF documents using the Haru Free
24PDF Library.
25
a3981ff5 26In PECL status of this extension is: %{status}.
c8b57d8b
AG
27
28%description -l pl.UTF-8
29Rozszerzenie to pozwala na tworzenie dokumentów PDF przy użyciu
30biblioteki Haru.
31
a3981ff5 32To rozszerzenie ma w PECL status: %{status}.
c8b57d8b
AG
33
34%prep
35%setup -q -c
a3981ff5 36mv %{modname}-%{version}/* .
c8b57d8b
AG
37
38%build
39phpize
40%configure
41%{__make}
42
43%install
44rm -rf $RPM_BUILD_ROOT
45install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
46
47%{__make} install \
48 INSTALL_ROOT=$RPM_BUILD_ROOT \
49 EXTENSION_DIR=%{php_extensiondir}
a3981ff5
ER
50cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
51; Enable %{modname} extension module
52extension=%{modname}.so
c8b57d8b
AG
53EOF
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%post
59%php_webserver_restart
60
61%postun
62if [ "$1" = 0 ]; then
63 %php_webserver_restart
64fi
65
66%files
67%defattr(644,root,root,755)
68%doc CREDITS
a3981ff5
ER
69%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
70%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.102655 seconds and 4 git commands to generate.