1
# Define version and release number
7
Release: %{release}%{?dist}
8
Packager: Mikko Koppanen <mikko@ibuildings.com>
9
Summary: PHP igbinary extension
10
License: PHP Style License (http://opensource.dynamoid.com/#license)
11
Group: Web/Applications
12
URL: http://opensource.dynamoid.com/
13
# pear package creates .tgz file and the original source was .tar.gz
14
Source: http://opensource.dynamoid.com/igbinary-%{version}.tgz
16
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
17
BuildRequires: php-devel, make, gcc, /usr/bin/phpize
20
Igbinary is a drop in replacement for the standard PHP serializer.
21
Instead of time and space consuming textual representation,
22
igbinary stores PHP data structures in a compact binary form.
25
%setup -q -n igbinary-%{version}
28
/usr/bin/phpize && %configure && %{__make} %{?_smp_mflags}
30
# Clean the buildroot so that it does not contain any stuff from previous builds
31
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
33
# Install the extension
34
%{__make} install INSTALL_ROOT=%{buildroot}
36
# Create the ini location
37
%{__mkdir} -p %{buildroot}/etc/php.d
39
# Preliminary extension ini
40
echo "extension=igbinary.so" > %{buildroot}/%{_sysconfdir}/php.d/igbinary.ini
43
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
46
%{_libdir}/php/modules/igbinary.so
47
%{_sysconfdir}/php.d/igbinary.ini
48
%{_includedir}/php/ext/igbinary/igbinary.h
51
* Fri Oct 02 2009 Mikko Koppanen <mikko@ibuildings.com>