]> git.pld-linux.org Git - packages/php-pecl-intl.git/blame - php-pecl-intl.spec
- release 4
[packages/php-pecl-intl.git] / php-pecl-intl.spec
CommitLineData
dec6cdfa
ER
1%define modname intl
2%define status stable
3Summary: %{modname} - Internationalization extension
4Summary(pl.UTF-8): %{modname} - rozszerzenie internacjonalizacji
5Name: php-pecl-%{modname}
7ff7249d 6Version: 1.1.1
c6f9f474 7Release: 4
de126471 8License: PHP 3.01
72011ff8 9Group: Development/Languages/PHP
dec6cdfa 10Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
7ff7249d 11# Source0-md5: f69e662ff0125eb991597be9b5116d96
6e5de77d
ER
12Patch0: zend_arg_info_static.patch
13Patch1: z_refcount.patch
72011ff8 14URL: http://pecl.php.net/package/intl/
f8c196ec 15BuildRequires: libicu-devel >= 3.4.0-1
28aea077 16BuildRequires: libstdc++-devel
72011ff8 17BuildRequires: php-devel >= 3:5.0.0
28aea077 18BuildRequires: pkgconfig
19BuildRequires: re2c
72011ff8
AG
20BuildRequires: rpmbuild(macros) >= 1.344
21%{?requires_php_extension}
dec6cdfa 22Provides: php(intl)
25695dbc 23Obsoletes: php-pecl-idn
72011ff8
AG
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27Internationalization extension implements ICU library functionality in
28PHP.
29
dec6cdfa
ER
30Since 1.0.2 it also integrates IDN functions.
31
32In PECL status of this extension is: %{status}.
72011ff8
AG
33
34%description -l pl.UTF-8
35Rozszerzenie to posiada zaimplementowaną obsługę biblioteki ICU.
36
dec6cdfa 37To rozszerzenie ma w PECL status: %{status}.
72011ff8
AG
38
39%prep
dec6cdfa
ER
40%setup -qc
41mv %{modname}-%{version}/* .
6e5de77d
ER
42%patch0 -p1
43%patch1 -p1
72011ff8
AG
44
45%build
72011ff8
AG
46phpize
47%configure
48%{__make}
49
50%install
51rm -rf $RPM_BUILD_ROOT
52install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
53
54%{__make} install \
7ff7249d
ER
55 EXTENSION_DIR=%{php_extensiondir} \
56 INSTALL_ROOT=$RPM_BUILD_ROOT
dec6cdfa
ER
57cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
58; Enable %{modname} extension module
59extension=%{modname}.so
72011ff8
AG
60EOF
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%post
66%php_webserver_restart
67
68%postun
69if [ "$1" = 0 ]; then
70 %php_webserver_restart
71fi
72
73%files
74%defattr(644,root,root,755)
7ff7249d 75%doc doc/* CREDITS
dec6cdfa
ER
76%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
77%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.138014 seconds and 4 git commands to generate.