Group :: Sistema/Servidores
RPM: php-mcrypt
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# 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
Group: System/Servers
License: PHP Licence
Summary: Mcrypt library support for PHP4
Serial: 1
Packager: Aleksey Avdeev <solo at altlinux.ru>
BuildRequires(pre): rpm-build-php
BuildPreReq: php-devel = %php_version-%php_release
# Automatically added by buildreq on Sun Mar 20 2005
BuildRequires: libmcrypt-devel
PreReq: php-libs = %php_version-%php_release
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
…
Todas as alterações você pod ver aqui
# $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
Group: System/Servers
License: PHP Licence
Summary: Mcrypt library support for PHP4
Serial: 1
Packager: Aleksey Avdeev <solo at altlinux.ru>
BuildRequires(pre): rpm-build-php
BuildPreReq: php-devel = %php_version-%php_release
# Automatically added by buildreq on Sun Mar 20 2005
BuildRequires: libmcrypt-devel
PreReq: php-libs = %php_version-%php_release
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
…
Todas as alterações você pod ver aqui