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 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Binding to the GNU libidn for using Internationalized Domain Names.
23 In PECL status of this package is: %{status}.
25 %description -l pl.UTF-8
26 Wiązanie do GNU libidn do używania umiędzynarodowionych nazw domen
27 (Internationalized Domain Names).
29 To rozszerzenie ma w PECL status: %{status}.
33 mv %{modname}-%{version}/* .
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
45 EXTENSION_DIR=%{php_extensiondir} \
46 INSTALL_ROOT=$RPM_BUILD_ROOT
47 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
48 ; Enable %{modname} extension module
49 extension=%{modname}.so
53 rm -rf $RPM_BUILD_ROOT
56 %php_webserver_restart
60 %php_webserver_restart
64 %defattr(644,root,root,755)
66 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
67 %attr(755,root,root) %{php_extensiondir}/%{modname}.so