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