Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37500655
en ru br
Репозитории ALT
5.1: 1.0.4-alt9.M51.1
4.1: 1.0.4-alt3
4.0: 1.0.4-alt1.2
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: php5-fileinfo

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define php5_extension fileinfo

Name: php5-%php5_extension
Version: 1.0.4
Release: alt9.M51.1
Group: System/Servers
License: PHP Licence
Packager: Sergey Kurakin <kurakin at altlinux.org>

URL: http://pecl.php.net/package/%{php5_extension}
Serial: 1

BuildRequires(pre): rpm-build-php5
BuildPreReq: php5-devel = %php5_version

# Automatically added by buildreq on Wed Mar 03 2010

BuildRequires: libmagic-devel

Summary: Fileinfo extension try to guess the content type and encoding of a file

Source0: php5-%php5_extension-%version.tar
Source1: php5-%php5_extension.ini
Source2: php5-%php5_extension-params.sh

%description
The functions in this module try to guess the content type and encoding
of a file by looking for certain magic byte sequences at specific
positions within the file. While this is not a bullet proof approach
the heuristics used do a very good job.

Additionally it can also be used to retrieve the mime type
for a particular file and for text files proper language encoding.

%prep
%setup -q -n php5-%php5_extension-%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
%php5_extconf/%php5_extension
%php5_extdir/*
%doc CREDITS

%post
%php5_extension_postin

%preun
%php5_extension_preun

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin