Группа :: Система/Серверы
Пакет: php-mcrypt
Главная Изменения Спек Патчи Загрузить Bugs and FR
# hey Emacs, its -*- rpm-spec -*-
# $Id: php-sockets,v 1.7 2002/11/13 03:05:37 ab Exp $
###############################################################
# This SPEC file is a configurable skeleton for PHP modules
# which are distributed with PHP4 tarball.
# Copyright (c) 2001 Alexander Bokovoy <ab at avilink.net>
# This SPEC file is available under terms of GNU GPL license
# versions 2 or greater
###############################################################
# Package name without php prefix
%define php_extension mcrypt
###############################################################
Name: php-%php_extension
Version: %php_version
Release: %php_release.1
Group: System/Servers
#Requires: glibc
License: PHP Licence
Prereq: php-libs = 1:%php_version-%php_release
# Automatically added by buildreq on Sun Mar 20 2005
BuildRequires: php-devel = 1:%php_version-%php_release, libmcrypt-devel
Summary: Mcrypt library support for PHP4
%add_serial php-devel
Source1: php-%php_extension.ini
Source2: php-%php_extension-params.sh
%description
The %name includes a dynamic shared object (DSO) that adds
Mcrypt support to PHP4. The libmcrypt is a data encryption library. The
library is thread safe and provides encryption and decryption functions.
This version of the library supports many encryption algorithms and
encryption modes. Some algorithms which are supported: SERPENT,
RIJNDAEL, 3DES, GOST, SAFER+, CAST-256, RC2, XTEA, 3WAY, TWOFISH,
BLOWFISH, ARCFOUR, WAKE and more. Install this package in addition
to main PHP package if you plan to use any of these algorithms.
%prep
%setup -T -c
cp -pr %php_extsrcdir/%php_extension/* .
%build
phpize
BUILD_HAVE=`echo %php_extension | tr '[:lower:]-' '[:upper:]_'`
CFLAGS="$RPM_OPT_FLAGS -fPIC -L%_libdir"
export CFLAGS
%configure --with-%php_extension=%_usr
%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 TODO
%post
%php_extension_postin
%preun
%php_extension_preun
%changelog
…
Полный changelog можно просмотреть здесь
# $Id: php-sockets,v 1.7 2002/11/13 03:05:37 ab Exp $
###############################################################
# This SPEC file is a configurable skeleton for PHP modules
# which are distributed with PHP4 tarball.
# Copyright (c) 2001 Alexander Bokovoy <ab at avilink.net>
# This SPEC file is available under terms of GNU GPL license
# versions 2 or greater
###############################################################
# Package name without php prefix
%define php_extension mcrypt
###############################################################
Name: php-%php_extension
Version: %php_version
Release: %php_release.1
Group: System/Servers
#Requires: glibc
License: PHP Licence
Prereq: php-libs = 1:%php_version-%php_release
# Automatically added by buildreq on Sun Mar 20 2005
BuildRequires: php-devel = 1:%php_version-%php_release, libmcrypt-devel
Summary: Mcrypt library support for PHP4
%add_serial php-devel
Source1: php-%php_extension.ini
Source2: php-%php_extension-params.sh
%description
The %name includes a dynamic shared object (DSO) that adds
Mcrypt support to PHP4. The libmcrypt is a data encryption library. The
library is thread safe and provides encryption and decryption functions.
This version of the library supports many encryption algorithms and
encryption modes. Some algorithms which are supported: SERPENT,
RIJNDAEL, 3DES, GOST, SAFER+, CAST-256, RC2, XTEA, 3WAY, TWOFISH,
BLOWFISH, ARCFOUR, WAKE and more. Install this package in addition
to main PHP package if you plan to use any of these algorithms.
%prep
%setup -T -c
cp -pr %php_extsrcdir/%php_extension/* .
%build
phpize
BUILD_HAVE=`echo %php_extension | tr '[:lower:]-' '[:upper:]_'`
CFLAGS="$RPM_OPT_FLAGS -fPIC -L%_libdir"
export CFLAGS
%configure --with-%php_extension=%_usr
%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 TODO
%post
%php_extension_postin
%preun
%php_extension_preun
%changelog
…
Полный changelog можно просмотреть здесь