3 Summary: %{modname} - bindings for the libssh2 library
4 Summary(pl.UTF-8): %{modname} - dowiązania do biblioteki libssh2
5 Name: php-pecl-%{modname}
9 Group: Development/Languages/PHP
10 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
11 # Source0-md5: 9f5dcd5b92299458389038f7318cbc46
12 Patch0: php-pecl-ssh2-libssh2.patch
13 URL: http://pecl.php.net/package/ssh2/
14 BuildRequires: libssh2-devel >= 0.16
15 BuildRequires: openssl-devel >= 0.9.7d
16 BuildRequires: php-devel >= 4:5.0.4
17 BuildRequires: rpmbuild(macros) >= 1.344
18 %{?requires_php_extension}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Provides bindings to the functions of libssh2 which implements the
25 In PECL status of this extension is: %{status}.
27 %description -l pl.UTF-8
28 Dostarcza dowiązań do różnych funkcji biblioteki libssh2
29 implementującej protokół SSH2.
31 To rozszerzenie ma w PECL status: %{status}.
35 mv %{modname}-%{version}/* .
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
46 install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
47 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
48 ; Enable %{modname} extension module
49 extension=%{modname}.so
53 rm -rf $RPM_BUILD_ROOT
56 %php_webserver_restart
60 %php_webserver_restart
64 %defattr(644,root,root,755)
65 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
66 %attr(755,root,root) %{php_extensiondir}/%{modname}.so