Группа :: Система/Серверы
Пакет: php8.1-intl
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define php_extension intl
Name: php%_php_suffix-%php_extension
Version: %php_version
Release: %php_release
Summary: Internationalization extension is a wrapper for ICU library
Group: System/Servers
License: PHP-3.01
URL: http://php.net/manual/en/book.intl.php
#Source0: standart PHP module
Source1: php-%php_extension.ini
Source2: php-%php_extension-params.sh
BuildRequires(pre): rpm-build-php8.1-version
BuildRequires: gcc-c++ libicu-devel
BuildRequires: php-devel = %php_version
%description
Internationalization extension (further is referred as Intl) is a wrapper
for ICU library, enabling PHP programmers to perform UCA-conformant
collation and date/time/number/currency formatting in their scripts.
It tends to closely follow ICU APIs, so that people having experience
working with ICU in either C/C++ or Java could easily use the PHP
API. Also, this way ICU documentation would be useful to understand
various ICU functions.
%prep
%setup -T -c
cp -pr %php_extsrcdir/%php_extension/* .
%build
phpize
BUILD_HAVE=`echo %php_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
%ifarch %e2k
# lcc-1.23.12: char16_t is undefined otherwise; see also mcst#4060
%add_optflags -std=gnu++11
%endif
export LDFLAGS=-lphp-%_php_version
%configure \
--with-php-config=%_bindir/php-config \
--with-%php_extension
%php_make
%install
%php_make_install
install -D -m 644 %SOURCE1 %buildroot/%php_extconf/%php_extension/config
install -D -m 644 %SOURCE2 %buildroot/%php_extconf/%php_extension/params
%files
%php_extconf/%php_extension
%php_extdir/*
%doc CREDITS
%post
%php_extension_postin
%preun
%php_extension_preun
%changelog
…
Полный changelog можно просмотреть здесь
Name: php%_php_suffix-%php_extension
Version: %php_version
Release: %php_release
Summary: Internationalization extension is a wrapper for ICU library
Group: System/Servers
License: PHP-3.01
URL: http://php.net/manual/en/book.intl.php
#Source0: standart PHP module
Source1: php-%php_extension.ini
Source2: php-%php_extension-params.sh
BuildRequires(pre): rpm-build-php8.1-version
BuildRequires: gcc-c++ libicu-devel
BuildRequires: php-devel = %php_version
%description
Internationalization extension (further is referred as Intl) is a wrapper
for ICU library, enabling PHP programmers to perform UCA-conformant
collation and date/time/number/currency formatting in their scripts.
It tends to closely follow ICU APIs, so that people having experience
working with ICU in either C/C++ or Java could easily use the PHP
API. Also, this way ICU documentation would be useful to understand
various ICU functions.
%prep
%setup -T -c
cp -pr %php_extsrcdir/%php_extension/* .
%build
phpize
BUILD_HAVE=`echo %php_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
%ifarch %e2k
# lcc-1.23.12: char16_t is undefined otherwise; see also mcst#4060
%add_optflags -std=gnu++11
%endif
export LDFLAGS=-lphp-%_php_version
%configure \
--with-php-config=%_bindir/php-config \
--with-%php_extension
%php_make
%install
%php_make_install
install -D -m 644 %SOURCE1 %buildroot/%php_extconf/%php_extension/config
install -D -m 644 %SOURCE2 %buildroot/%php_extconf/%php_extension/params
%files
%php_extconf/%php_extension
%php_extdir/*
%doc CREDITS
%post
%php_extension_postin
%preun
%php_extension_preun
%changelog
…
Полный changelog можно просмотреть здесь