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