3 Summary: %{_modname} - binding to the GNU libidn
4 Summary(pl.UTF-8): %{_modname} - wiązanie do GNU libidn
9 Group: Development/Languages/PHP
10 Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
11 # Source0-md5: f42dadf9b15bfc897458ff8735f05f78
12 URL: http://pecl.php.net/package/idn/
13 BuildRequires: libidn-devel
14 BuildRequires: php-devel >= 3:5.0.0
15 BuildRequires: rpmbuild(macros) >= 1.344
16 %{?requires_php_extension}
17 Requires: php-common >= 4:5.0.4
18 Obsoletes: php-pear-idn
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Binding to the GNU libidn for using Internationalized Domain Names.
24 In PECL status of this package is: %{_status}.
26 %description -l pl.UTF-8
27 Wiązanie do GNU libidn do używania umiędzynarodowionych nazw domen
28 (Internationalized Domain Names).
30 To rozszerzenie ma w PECL status: %{_status}.
36 cd %{_modname}-%{version}
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
45 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
46 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
47 ; Enable %{_modname} extension module
48 extension=%{_modname}.so
52 rm -rf $RPM_BUILD_ROOT
55 %php_webserver_restart
59 %php_webserver_restart
63 %defattr(644,root,root,755)
64 %doc %{_modname}-%{version}/CREDITS
65 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
66 %attr(755,root,root) %{php_extensiondir}/%{_modname}.so