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