]> git.pld-linux.org Git - packages/php-pecl-ssh2.git/blame - php-pecl-ssh2.spec
support building for multiple php versions
[packages/php-pecl-ssh2.git] / php-pecl-ssh2.spec
CommitLineData
47fc9518 1%define php_name php%{?php_suffix}
0f92866c 2%define modname ssh2
93ebbc61 3%define status beta
0f92866c
ER
4Summary: %{modname} - bindings for the libssh2 library
5Summary(pl.UTF-8): %{modname} - dowiązania do biblioteki libssh2
47fc9518 6Name: %{php_name}-pecl-%{modname}
8fae05b2
JR
7Version: 0.12
8Release: 1
2903db35 9License: PHP
45ecaa2e 10Group: Development/Languages/PHP
0f92866c 11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
8fae05b2
JR
12# Source0-md5: 409b91678a842bb0ff56f2cf018b9160
13Patch0: branch.diff
2903db35 14URL: http://pecl.php.net/package/ssh2/
8fae05b2 15BuildRequires: libssh2-devel >= 1.2.9
2903db35 16BuildRequires: openssl-devel >= 0.9.7d
47fc9518
ER
17BuildRequires: %{php_name}-devel >= 4:5.0.4
18BuildRequires: rpmbuild(macros) >= 1.650
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}/* .
8fae05b2 37#%patch0 -p0
45ecaa2e
AG
38
39%build
45ecaa2e
AG
40phpize
41%configure
42%{__make}
43
44%install
45rm -rf $RPM_BUILD_ROOT
890c59dd 46install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
0f92866c
ER
47install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
48cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
49; Enable %{modname} extension module
50extension=%{modname}.so
5486253a 51EOF
45ecaa2e
AG
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%post
890c59dd 57%php_webserver_restart
45ecaa2e 58
5486253a
ER
59%postun
60if [ "$1" = 0 ]; then
890c59dd 61 %php_webserver_restart
45ecaa2e
AG
62fi
63
64%files
65%defattr(644,root,root,755)
0f92866c
ER
66%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
67%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 1.186152 seconds and 4 git commands to generate.