ALT Linux repos
Group :: System/Servers
RPM: php5-mcrypt
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define php5_extension mcrypt
Name: php5-%php5_extension
Version: %php5_version
Release: %php5_release
Summary: Mcrypt library support for PHP5
Group: System/Servers
License: PHP Licence
Source1: php-%php5_extension.ini
Source2: php-%php5_extension-params.sh
BuildRequires(pre): rpm-build-php5
BuildRequires: php5-devel = %php5_version-%php5_release
# Automatically added by buildreq on Fri Jul 01 2005
BuildRequires: libmcrypt-devel
%description
The %name includes a dynamic shared object (DSO) that adds
Mcrypt support to PHP. 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 %php5_extsrcdir/%php5_extension/* .
%build
phpize
BUILD_HAVE=`echo %php5_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
export LDFLAGS=-lphp-%_php5_version
%configure \
--with-%php5_extension=%_usr
%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
%php5_extconf/%php5_extension
%php5_extdir/*
%doc CREDITS TODO
%post
%php5_extension_postin
%preun
%php5_extension_preun
%changelog
…
Full changelog you can see here
Name: php5-%php5_extension
Version: %php5_version
Release: %php5_release
Summary: Mcrypt library support for PHP5
Group: System/Servers
License: PHP Licence
Source1: php-%php5_extension.ini
Source2: php-%php5_extension-params.sh
BuildRequires(pre): rpm-build-php5
BuildRequires: php5-devel = %php5_version-%php5_release
# Automatically added by buildreq on Fri Jul 01 2005
BuildRequires: libmcrypt-devel
%description
The %name includes a dynamic shared object (DSO) that adds
Mcrypt support to PHP. 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 %php5_extsrcdir/%php5_extension/* .
%build
phpize
BUILD_HAVE=`echo %php5_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
export LDFLAGS=-lphp-%_php5_version
%configure \
--with-%php5_extension=%_usr
%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
%php5_extconf/%php5_extension
%php5_extdir/*
%doc CREDITS TODO
%post
%php5_extension_postin
%preun
%php5_extension_preun
%changelog
…
Full changelog you can see here