]> git.pld-linux.org Git - packages/php-pecl-funcall.git/blame - php-pecl-funcall.spec
- fix obsoletes version
[packages/php-pecl-funcall.git] / php-pecl-funcall.spec
CommitLineData
76beadc8 1%define php_name php%{?php_suffix}
fba31515 2%define subver alpha
4088f246 3%define rel 4
74a5a91c 4%define modname funcall
7665b15a 5%define status stable
74a5a91c
ER
6Summary: %{modname} - Add callbacks for any function/method
7Summary(pl.UTF-8): %{modname} - odwołania dla dowolnej funkcji / metody
76beadc8 8Name: %{php_name}-pecl-%{modname}
fba31515
ER
9Version: 0.3.0
10Release: 0.%{subver}.%{rel}
1ff691cb 11License: New BSD
08b18a12 12Group: Development/Languages/PHP
fba31515
ER
13Source0: http://pecl.php.net/get/%{modname}-%{version}%{subver}.tgz
14# Source0-md5: 65ddff0346ed4ed4fb0e3734ccf1b7d2
08b18a12 15URL: http://pecl.php.net/package/funcall/
76beadc8
ER
16BuildRequires: %{php_name}-devel >= 4:5.0.4
17BuildRequires: rpmbuild(macros) >= 1.650
08b18a12 18%{?requires_php_extension}
176ff577 19Provides: php(%{modname}) = %{version}
4088f246 20Obsoletes: php-pecl-funcall < 0.3.0-0.alpha.1
08b18a12
AG
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Call callbacks before or after specified functions/methods being
25called.
26
74a5a91c 27In PECL status of this extension is: %{status}.
08b18a12
AG
28
29%description -l pl.UTF-8
30Rozszerzenie to pozwala na wykonywanie odwołań przed lub po wywołaniu
31określonej funkcji / metody.
32
74a5a91c 33To rozszerzenie ma w PECL status: %{status}.
08b18a12
AG
34
35%prep
74a5a91c 36%setup -qc
fba31515 37mv %{modname}-%{version}%{?subver}/* .
08b18a12
AG
38
39%build
08b18a12
AG
40phpize
41%configure
42%{__make}
43
44%install
45rm -rf $RPM_BUILD_ROOT
46install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
47
48%{__make} install \
74a5a91c
ER
49 EXTENSION_DIR=%{php_extensiondir} \
50 INSTALL_ROOT=$RPM_BUILD_ROOT
51cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
52; Enable %{modname} extension module
53extension=%{modname}.so
08b18a12
AG
54EOF
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%post
60%php_webserver_restart
61
62%postun
63if [ "$1" = 0 ]; then
64 %php_webserver_restart
65fi
66
67%files
68%defattr(644,root,root,755)
74a5a91c
ER
69%doc TODO funcall.php
70%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
71%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.153311 seconds and 4 git commands to generate.