46d74958a90eca0e21e086acb113c115fa5916e7
[packages/php-pecl-ssh2.git] / php-pecl-ssh2.spec
1 %define         php_name        php%{?php_suffix}
2 %define         modname ssh2
3 Summary:        %{modname} - bindings for the libssh2 library
4 Summary(pl.UTF-8):      %{modname} - dowiązania do biblioteki libssh2
5 Name:           %{php_name}-pecl-%{modname}
6 Version:        0.13
7 Release:        1
8 License:        PHP
9 Group:          Development/Languages/PHP
10 Source0:        http://pecl.php.net/get/%{modname}-%{version}.tgz
11 # Source0-md5:  e35f8438b3f6177066166c8c1916f44e
12 Patch0:         bug-73524.patch
13 URL:            https://pecl.php.net/package/ssh2
14 BuildRequires:  %{php_name}-devel >= 4:5.0.4
15 BuildRequires:  libssh2-devel >= 1.2.9
16 BuildRequires:  openssl-devel >= 0.9.7d
17 BuildRequires:  rpmbuild(macros) >= 1.650
18 %{?requires_php_extension}
19 Provides:       php(%{modname}) = %{version}
20 Obsoletes:      php-pecl-ssh2 < 0.12-4
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Provides bindings to the functions of libssh2 which implements the
25 SSH2 protocol.
26
27 %description -l pl.UTF-8
28 Dostarcza dowiązań do różnych funkcji biblioteki libssh2
29 implementującej protokół SSH2.
30
31 %prep
32 %setup -qc
33 mv %{modname}-%{version}/* .
34 %patch0 -p1
35
36 %build
37 phpize
38 %configure
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
44 install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
45 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
46 ; Enable %{modname} extension module
47 extension=%{modname}.so
48 EOF
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54 %php_webserver_restart
55
56 %postun
57 if [ "$1" = 0 ]; then
58         %php_webserver_restart
59 fi
60
61 %files
62 %defattr(644,root,root,755)
63 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
64 %attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.027736 seconds and 2 git commands to generate.