]> git.pld-linux.org Git - packages/php-pecl-idn.git/blame - php-pecl-idn.spec
provide php(extname) to really be supporting multiple php versions
[packages/php-pecl-idn.git] / php-pecl-idn.spec
CommitLineData
550abe09 1%define php_name php%{?php_suffix}
c6b4c83b
ER
2%define modname idn
3%define status beta
4Summary: %{modname} - binding to the GNU libidn
5Summary(pl.UTF-8): %{modname} - wiązanie do GNU libidn
550abe09 6Name: %{php_name}-pecl-idn
40224e8c 7Version: 0.2.0
9661cbaa 8Release: 3
40224e8c
ER
9License: PHP 3.0
10Group: Development/Languages/PHP
c6b4c83b 11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
40224e8c
ER
12# Source0-md5: f42dadf9b15bfc897458ff8735f05f78
13URL: http://pecl.php.net/package/idn/
550abe09 14BuildRequires: %{php_name}-devel >= 3:5.0.0
40224e8c 15BuildRequires: libidn-devel
550abe09 16BuildRequires: rpmbuild(macros) >= 1.650
40224e8c 17%{?requires_php_extension}
550abe09 18Requires: php(core) >= 5.0.4
9661cbaa 19Provides: php(%{modname}) = %{version}
40224e8c
ER
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23Binding to the GNU libidn for using Internationalized Domain Names.
24
c6b4c83b 25In PECL status of this package is: %{status}.
40224e8c
ER
26
27%description -l pl.UTF-8
28Wiązanie do GNU libidn do używania umiędzynarodowionych nazw domen
29(Internationalized Domain Names).
30
c6b4c83b 31To rozszerzenie ma w PECL status: %{status}.
40224e8c
ER
32
33%prep
c6b4c83b
ER
34%setup -qc
35mv %{modname}-%{version}/* .
40224e8c
ER
36
37%build
40224e8c
ER
38phpize
39%configure
40%{__make}
41
42%install
43rm -rf $RPM_BUILD_ROOT
c6b4c83b 44install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
40224e8c 45
c6b4c83b
ER
46%{__make} install \
47 EXTENSION_DIR=%{php_extensiondir} \
48 INSTALL_ROOT=$RPM_BUILD_ROOT
49cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
50; Enable %{modname} extension module
51extension=%{modname}.so
40224e8c
ER
52EOF
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%post
58%php_webserver_restart
59
60%postun
61if [ "$1" = 0 ]; then
62 %php_webserver_restart
63fi
64
65%files
66%defattr(644,root,root,755)
c6b4c83b
ER
67%doc CREDITS
68%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
69%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.062043 seconds and 4 git commands to generate.