]>
Commit | Line | Data |
---|---|---|
0b32b5d1 | 1 | %define php_name php%{?php_suffix} |
9b2a2b02 | 2 | %define modname hidef |
ae5f1b4d | 3 | %define status stable |
9b2a2b02 ER |
4 | Summary: %{modname} - Constants for real |
5 | Summary(pl.UTF-8): %{modname} - mechanizm definiowana stałych | |
0b32b5d1 | 6 | Name: %{php_name}-pecl-%{modname} |
720da296 | 7 | Version: 0.1.13 |
71c24b8e | 8 | Release: 3 |
4c3d647f | 9 | License: PHP 3.01 |
884e7626 | 10 | Group: Development/Languages/PHP |
9b2a2b02 | 11 | Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz |
720da296 | 12 | # Source0-md5: 41cec59636c38abfd0cf15011a1184f4 |
884e7626 | 13 | URL: http://pecl.php.net/package/hidef/ |
0b32b5d1 ER |
14 | BuildRequires: %{php_name}-devel >= 3:5.0.0 |
15 | BuildRequires: rpmbuild(macros) >= 1.650 | |
884e7626 | 16 | %{?requires_php_extension} |
8bf22a34 | 17 | Requires: php(core) >= 5.0.4 |
42cc71d9 | 18 | Provides: php(%{modname}) = %{version} |
884e7626 AG |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Allow definition of user defined constants in simple ini files, which | |
23 | are then processed like internal constants, without any of the usual | |
24 | performance penalties. | |
25 | ||
9b2a2b02 | 26 | In PECL status of this extension is: %{status}. |
884e7626 AG |
27 | |
28 | %description -l pl.UTF-8 | |
29 | Rozszerzenie to pozwala na zdefiniowanie stałych w prostym pliku ini. | |
30 | Stałe te są później przetwarzane tak jak wewnętrzne stałe PHP, bez | |
31 | typowych spowolnień wydajności. | |
32 | ||
9b2a2b02 | 33 | To rozszerzenie ma w PECL status: %{status}. |
884e7626 AG |
34 | |
35 | %prep | |
9b2a2b02 ER |
36 | %setup -qc |
37 | mv %{modname}-%{version}/* . | |
884e7626 AG |
38 | |
39 | %build | |
884e7626 AG |
40 | phpize |
41 | %configure | |
42 | %{__make} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | install -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 | |
51 | cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini | |
52 | ; Enable %{modname} extension module | |
53 | extension=%{modname}.so | |
884e7626 AG |
54 | EOF |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %post | |
60 | %php_webserver_restart | |
61 | ||
62 | %postun | |
63 | if [ "$1" = 0 ]; then | |
64 | %php_webserver_restart | |
65 | fi | |
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 |