]> git.pld-linux.org Git - packages/php-pecl-parsekit.git/blame - php-pecl-parsekit.spec
- tabs in preamble
[packages/php-pecl-parsekit.git] / php-pecl-parsekit.spec
CommitLineData
c8b8e028 1%define _modname parsekit
590203eb 2%define _status stable
c8b8e028 3Summary: %{_modname} - PHP Opcode Analyser
6073a2f4 4Summary(pl.UTF-8): %{_modname} - Analizator instrukcji PHP
c8b8e028 5Name: php-pecl-%{_modname}
99a02409 6Version: 1.2
2afdd1db 7Release: 2
8ed72d64 8License: PHP
c8b8e028
AG
9Group: Development/Languages/PHP
10Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
99a02409 11# Source0-md5: ec6a6641ec50532538656340731421c4
8ed72d64 12URL: http://pecl.php.net/package/parsekit/
8fb8dd30 13BuildRequires: php-devel >= 3:5.0.0
bed834b8 14BuildRequires: rpmbuild(macros) >= 1.344
8fb8dd30 15%{?requires_php_extension}
bed834b8 16Requires: php-common >= 4:5.0.4
c8b8e028
AG
17Obsoletes: php-pear-%{_modname}
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
c8b8e028
AG
20%description
21Provides a userspace interpretation of the opcodes generated by the
22Zend engine compiler built into PHP.
23
24This extension is meant for development and debug purposes only and
815208b0 25contains some code which is potentially non-threadsafe.
c8b8e028
AG
26
27In PECL status of this extension is: %{_status}.
28
ce8f50b9
JR
29%description -l pl.UTF-8
30Dostarcza działającego w przestrzeni użytkownika interpretera
df0c9d93 31instrukcji wygenerowanych przez kompilator silnika Zend wbudowany w
8ed72d64
AG
32PHP.
33
34To rozszerzenie przeznaczone jest do rozwoju oraz w celu wyszukiwania
ce8f50b9
JR
35błędów. Zawiera kod, który potencjalnie nie jest bezpieczny dla
36aplikacji wielowątkowych.
c8b8e028
AG
37
38To rozszerzenie ma w PECL status: %{_status}.
39
40%prep
41%setup -q -c
42
43%build
44cd %{_modname}-%{version}
45phpize
46%configure
47%{__make}
48
49%install
50rm -rf $RPM_BUILD_ROOT
bed834b8 51install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
c8b8e028 52
bed834b8
ER
53install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
54cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
8fb8dd30
ER
55; Enable %{_modname} extension module
56extension=%{_modname}.so
57EOF
c8b8e028
AG
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%post
bed834b8 63%php_webserver_restart
c8b8e028 64
8fb8dd30
ER
65%postun
66if [ "$1" = 0 ]; then
bed834b8 67 %php_webserver_restart
c8b8e028
AG
68fi
69
70%files
71%defattr(644,root,root,755)
72%doc %{_modname}-%{version}/README
bed834b8
ER
73%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
74%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
This page took 0.266111 seconds and 4 git commands to generate.