~ufirst/phpredis/igbinary

« back to all changes in this revision

Viewing changes to igbinary.spec

  • Committer: Michael Ruoss
  • Date: 2015-03-18 14:12:19 UTC
  • Revision ID: git-v1:c591bdc61de714458440ff13454bc51d94ab5f3d
new build info structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Define version and release number
2
 
%define version 1.0.2
3
 
%define release 1
4
 
 
5
 
Name:      php-igbinary
6
 
Version:   %{version}
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
15
 
Prefix:    %{_prefix}
16
 
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
17
 
BuildRequires: php-devel, make, gcc, /usr/bin/phpize
18
 
 
19
 
%description
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. 
23
 
 
24
 
%prep
25
 
%setup -q -n igbinary-%{version}
26
 
 
27
 
%build
28
 
/usr/bin/phpize && %configure && %{__make} %{?_smp_mflags}
29
 
 
30
 
# Clean the buildroot so that it does not contain any stuff from previous builds
31
 
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
32
 
 
33
 
# Install the extension
34
 
%{__make} install INSTALL_ROOT=%{buildroot}
35
 
 
36
 
# Create the ini location
37
 
%{__mkdir} -p %{buildroot}/etc/php.d
38
 
 
39
 
# Preliminary extension ini
40
 
echo "extension=igbinary.so" > %{buildroot}/%{_sysconfdir}/php.d/igbinary.ini
41
 
 
42
 
%clean
43
 
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
44
 
 
45
 
%files
46
 
%{_libdir}/php/modules/igbinary.so
47
 
%{_sysconfdir}/php.d/igbinary.ini
48
 
%{_includedir}/php/ext/igbinary/igbinary.h
49
 
 
50
 
%changelog
51
 
* Fri Oct 02 2009 Mikko Koppanen <mikko@ibuildings.com>
52
 
 - Initial spec file