Группа :: Система/Серверы
Пакет: php5-fileinfo
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# Package name without php prefix
%define php5_extension fileinfo
###############################################################
Name: php5-%php5_extension
Version: 1.0.4
Release: alt3
Group: System/Servers
License: PHP Licence
URL: http://pecl.php.net/package/%{php5_extension}
Serial: 1
BuildRequires(pre): rpm-build-php5
BuildRequires: php5-devel = %php5_version-%php5_release, libmagic-devel, file
Summary: %{php5_extension} extension for PHP5
Source0: php5-%php5_extension-%version.tar
Source1: php5-%php5_extension.ini
Source2: php5-%php5_extension-params.sh
%description
This extension allows retrieval of information regarding vast majority of file.
This information may include dimensions, quality, length etc...
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
export CFLAGS="%optflags"
phpize
%configure
%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 можно просмотреть здесь
%define php5_extension fileinfo
###############################################################
Name: php5-%php5_extension
Version: 1.0.4
Release: alt3
Group: System/Servers
License: PHP Licence
URL: http://pecl.php.net/package/%{php5_extension}
Serial: 1
BuildRequires(pre): rpm-build-php5
BuildRequires: php5-devel = %php5_version-%php5_release, libmagic-devel, file
Summary: %{php5_extension} extension for PHP5
Source0: php5-%php5_extension-%version.tar
Source1: php5-%php5_extension.ini
Source2: php5-%php5_extension-params.sh
%description
This extension allows retrieval of information regarding vast majority of file.
This information may include dimensions, quality, length etc...
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
export CFLAGS="%optflags"
phpize
%configure
%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 можно просмотреть здесь