1 %define php_name php%{?php_suffix}
4 Summary: %{modname} - dBase database file access functions
5 Summary(pl.UTF-8): %{modname} - dostęp do plików baz danych dBase
6 Name: %{php_name}-pecl-%{modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
12 # Source0-md5: b2a22740fe705a7c6a2fb440c3659a34
13 URL: http://pecl.php.net/package/dbase/
14 BuildRequires: %{php_name}-devel >= 3:5.0.4
15 BuildRequires: rpmbuild(macros) >= 1.650
16 %{?requires_php_extension}
17 Provides: php(dbase) = %{version}
19 Obsoletes: php-pecl-dbase < 5.1.0-5
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This module allows you to access records stored in dBase-format (dbf)
26 In PECL status of this extension is: %{status}.
28 %description -l pl.UTF-8
29 Ten moduł pozwala na dostęp do rekordów zapisanych w plikach baz
30 danych w formacie dBase (dbf).
32 To rozszerzenie ma w PECL status: %{status}.
36 mv %{modname}-%{version}/* .
44 rm -rf $RPM_BUILD_ROOT
46 EXTENSION_DIR=%{php_extensiondir} \
47 INSTALL_ROOT=$RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
50 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
51 ; Enable %{modname} extension module
52 extension=%{modname}.so
56 rm -rf $RPM_BUILD_ROOT
59 %php_webserver_restart
63 %php_webserver_restart
67 %defattr(644,root,root,755)
69 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
70 %attr(755,root,root) %{php_extensiondir}/%{modname}.so