Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37409395
en ru br
Репозитории ALT
S:2.2.2-alt8.1.23.alt1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: php8.1-yaml

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define php_extension yaml

Name: php%_php_suffix-%php_extension
Version: 2.2.2
Release: alt%php_version.%php_release
Summary: PHP5 YAML-1.1 parser and emitter
License: %mit
Group: System/Servers
Url: http://pecl.php.net/package/yaml
Source0: php-%php_extension-%version.tar
BuildRequires(pre): rpm-build-php8.1-version rpm-build-licenses
BuildRequires: php-devel = %php_version
BuildRequires: libyaml-devel

%description
YAML PHP extension provides support for YAML 1.1 (YAML Ain't Markup Language)
serialization using the LibYAML library.

%prep
%setup -n php-%php_extension-%version

%build
phpize
BUILD_HAVE=`echo %php_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
export LDFLAGS=-lphp-%_php_version

%configure \
       --with-%php_extension \
       --with-libdir=%_lib \
--enable-yaml \
       %nil

%php_make

%install
%php_make_install

# create config

mkdir -p %buildroot%php_extconf/%php_extension
echo "extension=%php_extension.so" > %buildroot%php_extconf/%php_extension/config
cat <<EOF > %buildroot%php_extconf/%php_extension/params
file_ini=%php_extension.ini
exceptions=
EOF

%post
%php_extension_postin

%preun
%php_extension_preun

%files
%php_extconf/%php_extension
%php_extdir/

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin