Репозиторий Sisyphus
Последнее обновление: 17 августа 2018 | Пакетов: 18662 | Посещений: 12082287
en ru br
Репозитории ALT
S:5.6.37.20180719-alt1.S1
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: %php5_version
Release: %php5_release
Group: System/Servers
License: PHP Licence

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

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 -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

%post
%php5_extension_postin

%preun
%php5_extension_preun

%changelog

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

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