Группа :: Разработка/Прочее
Пакет: pear
Главная Изменения Спек Патчи Загрузить Bugs and FR
%define phpcli %_bindir/php
Name: pear
Version: 1.3.5
Release: alt0.M24.2
Group: Development/Other
Summary: PHP Extension and Application Repository
Summary(ru_RU.KOI8-R): Пакет с рaсширениями для PHP
License: PHP
Source0: pear.installer
Source1: pear.README
Source2: PEAR-1.3.6.tgz
Source3: Archive_Tar-1.3.1.tgz
Source4: Console_Getopt-1.2.tar.bz2
Source5: XML_RPC-1.4.3.tgz
Source6: XML_Parser-1.2.7.tgz
Source7: DB-1.7.6.tgz
Source8: HTTP-1.3.6.tgz
Source9: Mail-1.1.9.tgz
Source10: Net_SMTP-1.2.7.tgz
Source11: Net_Socket-1.0.6.tgz
Source12: Log-1.8.7.tar.bz2
Source13: Mail_Mime-1.3.1.tgz
Source14: Date-1.4.3.tar.bz2
Source15: HTML_Common-1.2.2.tgz
Source16: HTML_Select-1.2.1.tar.bz2
Source17: Auth_SASL-1.0.1.tgz
Source18: HTTP_Request-1.2.4.tgz
Source19: File-1.2.2.tgz
Source20: Net_URL-1.0.14.tgz
Source21: Net_Sieve-1.1.1.tgz
BuildArch: noarch
Requires: php >= 4.4.1 php-base
BuildPreReq: php >= 4.3.0
BuildRequires: php-devel
Obsoletes: php-pear
Provides: php-pear
Packager: Vladimir Lettiev <crux at altlinux.ru>
%description
PEAR is a code repository for PHP extensions and PHP library code
similar to TeX's CTAN and Perl's CPAN.
%prep
%__mkdir {work,tmp}
%__mkdir work/packages
# PEAR bootstrap
%__cp %SOURCE0 work/install-pear.php
%__tar -xzf %SOURCE2 -C tmp
%__mv tmp/package.xml work/package-PEAR.xml
%__mv tmp/PEAR-*/* work/
%__rm -rf tmp/*
%__tar -xzf %SOURCE3 -C tmp
%__mv tmp/package.xml work/package-Archive_Tar.xml
%__mv tmp/Archive_Tar-*/* work/
%__rm -rf tmp/*
%__tar -xjf %SOURCE4 -C tmp
%__mv tmp/package.xml work/package-Console_Getopt.xml
%__mv tmp/Console_Getopt-*/* work/
%__rm -rf tmp/*
# PEAR packages
%__cp %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 %SOURCE10 %SOURCE11 \
%SOURCE12 %SOURCE13 %SOURCE14 %SOURCE15 %SOURCE16 %SOURCE17 \
%SOURCE17 %SOURCE18 %SOURCE19 %SOURCE20 %SOURCE21 \
work/packages/
%__bzip2 -d work/packages/*.tar.bz2
%__gzip -d work/packages/*.tgz
%build
%install
%__mkdir_p %buildroot%_sysconfdir %buildroot%_bindir %buildroot%php_peardir
%__mkdir_p %buildroot%_docdir/%name-%version
%__cp %SOURCE1 %buildroot%_docdir/%name-%version/README
export INSTALL_ROOT=%buildroot
#export PHP_PEAR_SYSCONF_DIR=%_sysconfdir/php
export PHP_PEAR_CACHE_DIR=%_var/tmp
#PEAR_INSTALL_FLAGS="-n -dshort_open_tag=0 -dsafe_mode=0"
#Bootstrap
%phpcli %_builddir/work/install-pear.php \
-d "%php_peardir" -b "%_bindir" %_builddir/work/package-*.xml
#Packages
%phpcli %_builddir/work/install-pear.php \
-d "%php_peardir" -b "%_bindir" %_builddir/work/packages/*.tar
%files
%_docdir/%name-%version
%config %_sysconfdir/pear.conf
%php_peardir
%_bindir/pear
%changelog
…
Полный changelog можно просмотреть здесь
Name: pear
Version: 1.3.5
Release: alt0.M24.2
Group: Development/Other
Summary: PHP Extension and Application Repository
Summary(ru_RU.KOI8-R): Пакет с рaсширениями для PHP
License: PHP
Source0: pear.installer
Source1: pear.README
Source2: PEAR-1.3.6.tgz
Source3: Archive_Tar-1.3.1.tgz
Source4: Console_Getopt-1.2.tar.bz2
Source5: XML_RPC-1.4.3.tgz
Source6: XML_Parser-1.2.7.tgz
Source7: DB-1.7.6.tgz
Source8: HTTP-1.3.6.tgz
Source9: Mail-1.1.9.tgz
Source10: Net_SMTP-1.2.7.tgz
Source11: Net_Socket-1.0.6.tgz
Source12: Log-1.8.7.tar.bz2
Source13: Mail_Mime-1.3.1.tgz
Source14: Date-1.4.3.tar.bz2
Source15: HTML_Common-1.2.2.tgz
Source16: HTML_Select-1.2.1.tar.bz2
Source17: Auth_SASL-1.0.1.tgz
Source18: HTTP_Request-1.2.4.tgz
Source19: File-1.2.2.tgz
Source20: Net_URL-1.0.14.tgz
Source21: Net_Sieve-1.1.1.tgz
BuildArch: noarch
Requires: php >= 4.4.1 php-base
BuildPreReq: php >= 4.3.0
BuildRequires: php-devel
Obsoletes: php-pear
Provides: php-pear
Packager: Vladimir Lettiev <crux at altlinux.ru>
%description
PEAR is a code repository for PHP extensions and PHP library code
similar to TeX's CTAN and Perl's CPAN.
%prep
%__mkdir {work,tmp}
%__mkdir work/packages
# PEAR bootstrap
%__cp %SOURCE0 work/install-pear.php
%__tar -xzf %SOURCE2 -C tmp
%__mv tmp/package.xml work/package-PEAR.xml
%__mv tmp/PEAR-*/* work/
%__rm -rf tmp/*
%__tar -xzf %SOURCE3 -C tmp
%__mv tmp/package.xml work/package-Archive_Tar.xml
%__mv tmp/Archive_Tar-*/* work/
%__rm -rf tmp/*
%__tar -xjf %SOURCE4 -C tmp
%__mv tmp/package.xml work/package-Console_Getopt.xml
%__mv tmp/Console_Getopt-*/* work/
%__rm -rf tmp/*
# PEAR packages
%__cp %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 %SOURCE10 %SOURCE11 \
%SOURCE12 %SOURCE13 %SOURCE14 %SOURCE15 %SOURCE16 %SOURCE17 \
%SOURCE17 %SOURCE18 %SOURCE19 %SOURCE20 %SOURCE21 \
work/packages/
%__bzip2 -d work/packages/*.tar.bz2
%__gzip -d work/packages/*.tgz
%build
%install
%__mkdir_p %buildroot%_sysconfdir %buildroot%_bindir %buildroot%php_peardir
%__mkdir_p %buildroot%_docdir/%name-%version
%__cp %SOURCE1 %buildroot%_docdir/%name-%version/README
export INSTALL_ROOT=%buildroot
#export PHP_PEAR_SYSCONF_DIR=%_sysconfdir/php
export PHP_PEAR_CACHE_DIR=%_var/tmp
#PEAR_INSTALL_FLAGS="-n -dshort_open_tag=0 -dsafe_mode=0"
#Bootstrap
%phpcli %_builddir/work/install-pear.php \
-d "%php_peardir" -b "%_bindir" %_builddir/work/package-*.xml
#Packages
%phpcli %_builddir/work/install-pear.php \
-d "%php_peardir" -b "%_bindir" %_builddir/work/packages/*.tar
%files
%_docdir/%name-%version
%config %_sysconfdir/pear.conf
%php_peardir
%_bindir/pear
%changelog
…
Полный changelog можно просмотреть здесь