]> git.pld-linux.org Git - packages/php-pecl-expect.git/blame - php-pecl-expect.spec
- up to 0.2.4
[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}
273db2c1
AM
6Version: 0.2.4
7Release: 1
f7f552fa
AM
8License: PHP 2.02
9Group: Development/Languages/PHP
10Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
273db2c1 11# Source0-md5: 1fb71a3ee85bfe37b233d4ab2bef6862
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
35
36%build
37cd %{_modname}-%{version}
38phpize
39%configure
40%{__make}
41
42%install
43rm -rf $RPM_BUILD_ROOT
11533cd9 44install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
f7f552fa 45
11533cd9
ER
46install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
47cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
f7f552fa
AM
48; Enable %{_modname} extension module
49extension=%{_modname}.so
50EOF
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post
11533cd9 56%php_webserver_restart
f7f552fa
AM
57
58%postun
59if [ "$1" = 0 ]; then
11533cd9 60 %php_webserver_restart
f7f552fa
AM
61fi
62
63%files
64%defattr(644,root,root,755)
11533cd9
ER
65%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
66%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
This page took 0.07986 seconds and 4 git commands to generate.