This repository has been archived by the owner on May 27, 2022. It is now read-only.
forked from phadej/igbinary
-
Notifications
You must be signed in to change notification settings - Fork 1
/
igbinary.spec
52 lines (41 loc) · 1.57 KB
/
igbinary.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Define version and release number
%define version 1.0.2
%define release 1
Name: php-igbinary
Version: %{version}
Release: %{release}%{?dist}
Packager: Mikko Koppanen <[email protected]>
Summary: PHP igbinary extension
License: PHP Style License (http://opensource.dynamoid.com/#license)
Group: Web/Applications
URL: http://opensource.dynamoid.com/
# pear package creates .tgz file and the original source was .tar.gz
Source: http://opensource.dynamoid.com/igbinary-%{version}.tgz
Prefix: %{_prefix}
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: php-devel, make, gcc, /usr/bin/phpize
%description
Igbinary is a drop in replacement for the standard PHP serializer.
Instead of time and space consuming textual representation,
igbinary stores PHP data structures in a compact binary form.
%prep
%setup -q -n igbinary-%{version}
%build
/usr/bin/phpize && %configure && %{__make} %{?_smp_mflags}
# Clean the buildroot so that it does not contain any stuff from previous builds
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
# Install the extension
%{__make} install INSTALL_ROOT=%{buildroot}
# Create the ini location
%{__mkdir} -p %{buildroot}/etc/php.d
# Preliminary extension ini
echo "extension=igbinary.so" > %{buildroot}/%{_sysconfdir}/php.d/igbinary.ini
%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%files
%{_libdir}/php/modules/igbinary.so
%{_sysconfdir}/php.d/igbinary.ini
%{_includedir}/php/ext/igbinary/igbinary.h
%changelog
* Fri Oct 02 2009 Mikko Koppanen <[email protected]>
- Initial spec file