Logoj0ke.net Open Build Service > Projects > internetx:php5:EL5:5.3.26:extensions > php5-ssh2 > php5-ssh2.spec
Sign Up | Log In

File php5-ssh2.spec of Package php5-ssh2

x
 
1
# norootforbuild
2
%define pkg_name    ssh2
3
%define pkg_version 0.12
4
%define php_version %(php-config --version 2>/dev/null || echo PHPCONFIG_NOT_FOUND)
5
#
6
Name: php-ssh2
7
Version: 0.12
8
Release: 0
9
#
10
License: PHP
11
Group: Productivity/Networking/Web/Servers
12
#
13
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build
14
BuildRequires: php-devel libssh2-devel >= 1.2
15
Requires: php = %{php_version}
16
Requires: libssh2 >= 1.2
17
#
18
URL: http://pecl.php.net/ssh2
19
Source: http://pecl.php.net/package/ssh2/%{pkg_name}-%{version}.tgz
20
Patch3: php5-ssh2-stream-segfault-fix.patch
21
22
Summary: Bindings for the libssh2 library
23
%description
24
25
Provides bindings to the functions of libssh2 which implements the SSH2 protocol.
26
27
Authors:
28
---------
29
30
    Sara Golemon <pollita@php.net>
31
32
%debug_package
33
%prep
34
%setup -n %{pkg_name}-%{version}
35
%patch3
36
37
%{__mkdir} %{name}
38
39
%build
40
/usr/bin/phpize
41
pushd %{name}
42
43
CFLAGS="%{optflags} -fno-strict-aliasing"
44
CXXFLAGS="%{optflags} -fno-strict-aliasing"
45
%if 0%{?suse_version} > 1000
46
CFLAGS="$CFLAGS -fstack-protector"
47
CXXFLAGS="$CXXFLAGS -fstack-protector"
48
%endif
49
50
export CFLAGS
51
export CXXFLAGS
52
53
../configure --with-ssh2=%{_usr} --with-libdir=%{_lib}
54
55
%{__make} %{?jobs:-j%jobs}
56
popd
57
58
%install
59
%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
60
%{__mkdir} -p %{buildroot}%{_sysconfdir}/php.d
61
echo "; comment out next line to disable ssh2 extension in php" > %{buildroot}%{_sysconfdir}/php.d/ssh2.ini
62
echo 'extension = ssh2.so' >> %{buildroot}%{_sysconfdir}/php.d/ssh2.ini
63
64
65
%clean
66
%{__rm} -rf %{buildroot}
67
68
%files
69
%defattr(-,root,root,-)
70
%{_libdir}/php/modules/ssh2.so
71
%config(noreplace) %{_sysconfdir}/php.d/ssh2.ini
72
73
#%doc CREDITS 
74
75
%changelog -n php5-ssh2
76
* Fri Dec 22 2006 - judas_iscariote@shorewall.net
77
- very first build
78