Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37039052
en ru br
ALT Linux repositórios
4.1: 4.4.8-alt1.M41.1
4.0: 4.4.7-alt1
3.0: 4.3.12-alt0.cvs20050530.1

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

# Use force php version for *.src.rpm build

%def_without set_php_version_spec

%if_with set_php_version_spec
%define version_php 4.4.7
%define release_php alt1
%define serial_php 1
%define version_php_devel %serial_php:%version_php-%release_php
%define version_php_libs %serial_php:%version_php-%release_php
%define add_serial_php Serial: %serial_php
%else
%define version_php %php_version
%define release_php %php_release
%define version_php_devel %get_SVR php-devel
%define version_php_libs %get_SVR php-libs
%define add_serial_php %add_serial php-devel
%endif
###############################################################

Name: php-%php_extension
Version: %version_php
Release: %release_php
Group: System/Servers
License: PHP Licence
Summary: Mcrypt library support for PHP4
%add_serial_php

Packager: Aleksey Avdeev <solo at altlinux.ru>

BuildPreReq:  php-devel = %version_php_devel
# Automatically added by buildreq on Sun Mar 20 2005
BuildRequires:  libmcrypt-devel
PreReq: php-libs = %version_php_libs

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

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009