Репозиторий Sisyphus
Последнее обновление: 6 июля 2020 | Пакетов: 17685 | Посещений: 18841287
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: 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

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 -q -n php5-%php5_extension-%version


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 \


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