Репозиторий Sisyphus
Последнее обновление: 17 января 2019 | Пакетов: 18464 | Посещений: 12838902
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

Группа :: Система/Серверы
Пакет: 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

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.

%setup -T -c
cp -pr %php5_extsrcdir/%php5_extension/* .


BUILD_HAVE=`echo %php5_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
export LDFLAGS=-lphp-%_php5_version
%configure \

install -D -m 644 %SOURCE1 %buildroot/%php5_extconf/%php5_extension/config
install -D -m 644 %SOURCE2 %buildroot/%php5_extconf/%php5_extension/params





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

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