Group :: Sistema/Servidores
RPM: php5-array2arraymap-sdb
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define php5_extension array2arraymap-sdb
Name: php5-%php5_extension
Version: 0.12
Release: alt3.1
Summary: php5 module to access static db (SDB) files.
Group: System/Servers
License: PHP License
Packager: Igor Vlasenko <viy at altlinux.org>
Source0: %name-%version.tar
Source1: php-%php5_extension.ini
Source2: php-%php5_extension-params.sh
BuildRequires(pre): rpm-build-php5
BuildRequires: php5-devel = %php5_version-%php5_release
BuildRequires: libmapsdb-devel >= 0.11 gcc-c++ libstdc++-devel
# for make test
BuildRequires: php5-suhosin
%description
%{summary}
%prep
%setup -q
%build
phpize
BUILD_HAVE=`echo %php5_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
export LDFLAGS=-lphp-%_php5_version
./configure \
--enable-%php5_extension
%php5_make CC=g++
%install
# hack ...
# ln -s %_libdir/php/%_php5_version/extensions/suhosin.so modules/
%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
…
Todas as alterações você pod ver aqui
Name: php5-%php5_extension
Version: 0.12
Release: alt3.1
Summary: php5 module to access static db (SDB) files.
Group: System/Servers
License: PHP License
Packager: Igor Vlasenko <viy at altlinux.org>
Source0: %name-%version.tar
Source1: php-%php5_extension.ini
Source2: php-%php5_extension-params.sh
BuildRequires(pre): rpm-build-php5
BuildRequires: php5-devel = %php5_version-%php5_release
BuildRequires: libmapsdb-devel >= 0.11 gcc-c++ libstdc++-devel
# for make test
BuildRequires: php5-suhosin
%description
%{summary}
%prep
%setup -q
%build
phpize
BUILD_HAVE=`echo %php5_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
export LDFLAGS=-lphp-%_php5_version
./configure \
--enable-%php5_extension
%php5_make CC=g++
%install
# hack ...
# ln -s %_libdir/php/%_php5_version/extensions/suhosin.so modules/
%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
…
Todas as alterações você pod ver aqui