Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 64 lines (46 sloc) 1.574 kB
cca4353 @davidhrbac initial release
authored
1 # $Id: php-pecl-ssh2.spec,v 1.1 2008-05-19 11:38:25 dhrbac Exp $
2 # Authority: stefan
3 %global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
4 %global php_extdir %(php-config --extension-dir 2>/dev/null || echo "undefined")
5 %global php_version %(php-config --version 2>/dev/null || echo 0)
6 %{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}}
7
8 %define pecl_name bz2
9
10 Summary: %{pecl_name} - A Bzip2 management extension
11 Name: php-pecl-%{pecl_name}
12 Version: 1.0
13 Release: 1%{?dist}
14 License: PHP
15 Group: Development/Languages
16 URL: http://pecl.php.net/package/%{release}
17
18 Source: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
19
20 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
21 Requires: php
22 BuildRequires: php, php-devel
23 BuildRequires: bzip2-devel
24
25 %description
26 Bz2 is an extension to create and parse bzip2 compressed data.
27
28 %prep
29 %setup -n %{pecl_name}-%{version}
30
31
32 %build
33 # Workaround for broken phpize on 64 bits
34 %{_bindir}/phpize
35 %configure
36 %{__make} %{?_smp_mflags}
37
38
39 %install
40 %{__rm} -rf %{buildroot}
41 %{__make} install INSTALL_ROOT=%{buildroot}
42
43 # Drop in the bit of configuration
44 %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
45 %{__cat} > %{buildroot}%{_sysconfdir}/php.d/%{pecl_name}.ini << 'EOF'
46 ; Enable %{pecl_name} extension module
47 extension=%{pecl_name}.so
48 EOF
49
50
51 %clean
52 %{__rm} -rf %{buildroot}
53
54
55 %files
56 %defattr(-, root, root, 0755)
57 %config(noreplace) %{_sysconfdir}/php.d/%{pecl_name}.ini
58 %{php_extdir}/%{pecl_name}.so
59
60
61 %changelog
62 * Fri May 29 2009 David Hrbáč <david@hrbac.cz> - 1.0-1
63 - initial build
Something went wrong with that request. Please try again.