]> git.pld-linux.org Git - packages/php-pecl-ssh2.git/blame - php-pecl-ssh2.spec
- release 2
[packages/php-pecl-ssh2.git] / php-pecl-ssh2.spec
CommitLineData
45ecaa2e
AG
1%define _modname ssh2
2%define _status beta
45ecaa2e 3Summary: %{_modname} - bindings for the libssh2 library
d8044c63 4Summary(pl.UTF-8): %{_modname} - dowiązania do biblioteki libssh2
45ecaa2e 5Name: php-pecl-%{_modname}
6737f64c 6Version: 0.11.0
c8f8663a 7Release: 2
2903db35 8License: PHP
45ecaa2e
AG
9Group: Development/Languages/PHP
10Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
6737f64c
AG
11# Source0-md5: 9f5dcd5b92299458389038f7318cbc46
12Patch0: php-pecl-ssh2-libssh2.patch
2903db35 13URL: http://pecl.php.net/package/ssh2/
98561776 14BuildRequires: libssh2-devel >= 0.16
2903db35 15BuildRequires: openssl-devel >= 0.9.7d
45ecaa2e 16BuildRequires: php-devel >= 3:5.0.0
890c59dd 17BuildRequires: rpmbuild(macros) >= 1.344
5486253a 18%{?requires_php_extension}
890c59dd 19Requires: php-common >= 4:5.0.4
45ecaa2e
AG
20Obsoletes: php-pear-%{_modname}
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
45ecaa2e
AG
23%description
24Provides bindings to the functions of libssh2 which implements the
25SSH2 protocol.
26
27In PECL status of this extension is: %{_status}.
28
0313d4ea
JR
29%description -l pl.UTF-8
30Dostarcza dowiązań do różnych funkcji biblioteki libssh2
31implementującej protokół SSH2.
45ecaa2e
AG
32
33To rozszerzenie ma w PECL status: %{_status}.
34
35%prep
36%setup -q -c
98561776
ER
37cd ssh2-%{version}
38%patch0 -p0
45ecaa2e
AG
39
40%build
41cd %{_modname}-%{version}
42phpize
43%configure
44%{__make}
45
46%install
47rm -rf $RPM_BUILD_ROOT
890c59dd 48install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
45ecaa2e 49
890c59dd
ER
50install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
51cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
5486253a
ER
52; Enable %{_modname} extension module
53extension=%{_modname}.so
54EOF
45ecaa2e
AG
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%post
890c59dd 60%php_webserver_restart
45ecaa2e 61
5486253a
ER
62%postun
63if [ "$1" = 0 ]; then
890c59dd 64 %php_webserver_restart
45ecaa2e
AG
65fi
66
67%files
68%defattr(644,root,root,755)
890c59dd
ER
69%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
70%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
This page took 0.11858 seconds and 4 git commands to generate.