]> git.pld-linux.org Git - packages/php-pecl-expect.git/blame - php-pecl-expect.spec
- rel 3; expect.h uses tcl types, so linking with libtcl is needed
[packages/php-pecl-expect.git] / php-pecl-expect.spec
CommitLineData
f7f552fa
AM
1%define _modname expect
2%define _status beta
f7f552fa 3Summary: %{_modname} - PHP extension for expect library
23da896c 4Summary(pl.UTF-8): %{_modname} - rozszerzenie PHP dla biblioteki expect
f7f552fa 5Name: php-pecl-%{_modname}
988a80dd 6Version: 0.3.0
3add1b1b 7Release: 3
a218a260 8License: PHP 3.01
f7f552fa
AM
9Group: Development/Languages/PHP
10Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
988a80dd 11# Source0-md5: 7d5f18283c6853cddf3c16a047f515f5
3add1b1b 12Patch0: %{name}-tcl.patch
f7f552fa
AM
13URL: http://pecl.php.net/package/expect/
14BuildRequires: expect-devel
15BuildRequires: php-devel >= 3:5.0.0
11533cd9 16BuildRequires: rpmbuild(macros) >= 1.344
f7f552fa 17%{?requires_php_extension}
11533cd9 18Requires: php-common >= 4:5.0.4
f7f552fa
AM
19Obsoletes: php-pear-%{_modname}
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23This extension allows to interact with processes through PTY, using
24expect library.
25
26In PECL status of this extension is: %{_status}.
27
b4cdc3eb
JR
28%description -l pl.UTF-8
29To rozszerzenie pozwala na interakcję z procesami poprzez PTY przy
30użyciu biblioteki expect.
98c9ce11
JB
31
32To rozszerzenie ma w PECL status: %{_status}.
33
f7f552fa
AM
34%prep
35%setup -q -c
3add1b1b
AM
36cd %{_modname}-%{version}
37%patch0 -p1
f7f552fa
AM
38
39%build
40cd %{_modname}-%{version}
41phpize
42%configure
43%{__make}
44
45%install
46rm -rf $RPM_BUILD_ROOT
11533cd9 47install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
f7f552fa 48
11533cd9
ER
49install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
50cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
f7f552fa
AM
51; Enable %{_modname} extension module
52extension=%{_modname}.so
53EOF
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%post
11533cd9 59%php_webserver_restart
f7f552fa
AM
60
61%postun
62if [ "$1" = 0 ]; then
11533cd9 63 %php_webserver_restart
f7f552fa
AM
64fi
65
66%files
67%defattr(644,root,root,755)
11533cd9
ER
68%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
69%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
This page took 0.058015 seconds and 4 git commands to generate.