]> git.pld-linux.org Git - packages/php-pecl-hidef.git/blame - php-pecl-hidef.spec
- php 5.5 rebuild
[packages/php-pecl-hidef.git] / php-pecl-hidef.spec
CommitLineData
0b32b5d1 1%define php_name php%{?php_suffix}
9b2a2b02 2%define modname hidef
ae5f1b4d 3%define status stable
9b2a2b02
ER
4Summary: %{modname} - Constants for real
5Summary(pl.UTF-8): %{modname} - mechanizm definiowana stałych
0b32b5d1 6Name: %{php_name}-pecl-%{modname}
720da296 7Version: 0.1.13
71c24b8e 8Release: 3
4c3d647f 9License: PHP 3.01
884e7626 10Group: Development/Languages/PHP
9b2a2b02 11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
720da296 12# Source0-md5: 41cec59636c38abfd0cf15011a1184f4
884e7626 13URL: http://pecl.php.net/package/hidef/
0b32b5d1
ER
14BuildRequires: %{php_name}-devel >= 3:5.0.0
15BuildRequires: rpmbuild(macros) >= 1.650
884e7626 16%{?requires_php_extension}
8bf22a34 17Requires: php(core) >= 5.0.4
42cc71d9 18Provides: php(%{modname}) = %{version}
884e7626
AG
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Allow definition of user defined constants in simple ini files, which
23are then processed like internal constants, without any of the usual
24performance penalties.
25
9b2a2b02 26In PECL status of this extension is: %{status}.
884e7626
AG
27
28%description -l pl.UTF-8
29Rozszerzenie to pozwala na zdefiniowanie stałych w prostym pliku ini.
30Stałe te są później przetwarzane tak jak wewnętrzne stałe PHP, bez
31typowych spowolnień wydajności.
32
9b2a2b02 33To rozszerzenie ma w PECL status: %{status}.
884e7626
AG
34
35%prep
9b2a2b02
ER
36%setup -qc
37mv %{modname}-%{version}/* .
884e7626
AG
38
39%build
884e7626
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 \
9b2a2b02
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
884e7626
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)
9b2a2b02
ER
69%doc INSTALL CREDITS
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.204794 seconds and 4 git commands to generate.