Репозитории ALT
5.1: | 5.2.14.20100721-alt0.M51.1 |
4.1: | 5.2.5-alt1.M41.1 |
4.0: | 5.2.2-alt1.M40.1 |
+backports: | 5.2.2-alt0.M40.1 |
Группа :: Система/Серверы
Пакет: php5-imagick2
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define php5_extension imagick
%define real_name imagick
%define real_version 2.2.0
Name: php5-%{php5_extension}2
Version: %php5_version
Release: %php5_release.M40.1
Summary: PHP5 wrapper to the ImageMagick library
License: PHP License
Group: System/Servers
URL: http://pecl.php.net/package/imagick
Packager: Nikolay A. Fetisov <naf at altlinux.ru>
Source0: %real_name-%real_version.tar.bz2
Source1: php-%php5_extension.ini
Source2: php-%php5_extension-params.sh
BuildRequires(pre): rpm-build-php5
BuildRequires: php5-devel = %php5_version-%php5_release
BuildRequires: libImageMagick-devel
Conflicts: php5-imagick
%description
Imagick is a native PHP extension to create and modify images
using the ImageMagick API.
This package contains Imagick with version 2.x API.
%prep
%setup -T -c
tar xvfj %SOURCE0
# ./imagick-2.x.x -> ./
mv -- %real_name-%real_version/* .
rm -fr -- %real_name-%real_version
%build
phpize
BUILD_HAVE=`echo %php5_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
export LDFLAGS=-lphp-%_php5_version
%configure \
--with-%php5_extension \
--with-libdir=%_lib \
#
%php5_make
%install
%php5_make_install
install -D -m 644 -- %SOURCE1 %buildroot/%php5_extconf/%php5_extension/config
install -D -m 644 -- %SOURCE2 %buildroot/%php5_extconf/%php5_extension/params
%files
%doc CREDITS INSTALL
%doc examples*
%php5_extconf/%php5_extension
%php5_extdir/*
%post
%php5_extension_postin
%preun
%php5_extension_preun
%changelog
…
Полный changelog можно просмотреть здесь
%define real_name imagick
%define real_version 2.2.0
Name: php5-%{php5_extension}2
Version: %php5_version
Release: %php5_release.M40.1
Summary: PHP5 wrapper to the ImageMagick library
License: PHP License
Group: System/Servers
URL: http://pecl.php.net/package/imagick
Packager: Nikolay A. Fetisov <naf at altlinux.ru>
Source0: %real_name-%real_version.tar.bz2
Source1: php-%php5_extension.ini
Source2: php-%php5_extension-params.sh
BuildRequires(pre): rpm-build-php5
BuildRequires: php5-devel = %php5_version-%php5_release
BuildRequires: libImageMagick-devel
Conflicts: php5-imagick
%description
Imagick is a native PHP extension to create and modify images
using the ImageMagick API.
This package contains Imagick with version 2.x API.
%prep
%setup -T -c
tar xvfj %SOURCE0
# ./imagick-2.x.x -> ./
mv -- %real_name-%real_version/* .
rm -fr -- %real_name-%real_version
%build
phpize
BUILD_HAVE=`echo %php5_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
export LDFLAGS=-lphp-%_php5_version
%configure \
--with-%php5_extension \
--with-libdir=%_lib \
#
%php5_make
%install
%php5_make_install
install -D -m 644 -- %SOURCE1 %buildroot/%php5_extconf/%php5_extension/config
install -D -m 644 -- %SOURCE2 %buildroot/%php5_extconf/%php5_extension/params
%files
%doc CREDITS INSTALL
%doc examples*
%php5_extconf/%php5_extension
%php5_extdir/*
%post
%php5_extension_postin
%preun
%php5_extension_preun
%changelog
…
Полный changelog можно просмотреть здесь