4 Summary: %{_modname} - bindings for the libssh2 library
5 Summary(pl): %{_modname} - dowi±zania do biblioteki libssh2
6 Name: php-pecl-%{_modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
12 # Source0-md5: ca8865727be13840e717de8d499d0768
13 URL: http://pecl.php.net/package/ssh2/
14 BuildRequires: libssh2-devel >= 0.5
15 BuildRequires: libtool
16 BuildRequires: openssl-devel >= 0.9.7d
17 BuildRequires: php-devel >= 3:5.0.0
18 Requires: php-common >= 3:5.0.0
19 Obsoletes: php-pear-%{_modname}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _sysconfdir /etc/php
23 %define extensionsdir %{_libdir}/php
26 Provides bindings to the functions of libssh2 which implements the
29 In PECL status of this extension is: %{_status}.
32 Dostarcza dowi±zañ do ró¿nych funkcji biblioteki libssh2
33 implementuj±cej protokó³ SSH2.
35 To rozszerzenie ma w PECL status: %{_status}.
41 cd %{_modname}-%{version}
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{extensionsdir}
50 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
53 rm -rf $RPM_BUILD_ROOT
56 %{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
59 if [ "$1" = "0" ]; then
60 %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{extensionsdir}/%{_modname}.so