]> git.pld-linux.org Git - packages/php-pecl-paradox.git/blame - php-pecl-paradox.spec
- new
[packages/php-pecl-paradox.git] / php-pecl-paradox.spec
CommitLineData
7ad8af39
AG
1%define _modname paradox
2%define _status stable
3Summary: read and write Paradox files
4Summary(pl.UTF-8): odczyt i zapis z/do plików Paradox
5Name: php-pecl-%{_modname}
6Version: 1.4.3
7Release: 1
8License: PHP 3.01
9Group: Development/Languages/PHP
10Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
11# Source0-md5: aab0bc4146bc2852a9623b635fa20c17
12URL: http://pecl.php.net/package/Paradox/
13BuildRequires: php-devel >= 3:5.0.0
14BuildRequires: pxlib-devel >= 0.6.0
15BuildRequires: rpmbuild(macros) >= 1.344
16%{?requires_php_extension}
17Requires: php-common >= 4:5.0.4
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21Paradox is an extension to read and write Paradox .DB and .PX files.
22It can handle almost all field types and binary large objects stored
23in .MB files.
24
25In PECL status of this extension is: %{_status}.
26
27%description -l pl.UTF-8
28Paradox to rozszerzenie pozwalające na dostęp w trybie odczyt/zapis do
29plików .DB oraz .PX bazy Paradox. Rozszerzenie pozwala na obsługę
30prawie wszystkich typów pól i dużych obiektów binarnych (ang. binary
31large objects, blob) przechowywanych w plikach .MB.
32
33To rozszerzenie ma w PECL status: %{_status}.
34
35%prep
36%setup -q -c
37mv %{_modname}-%{version}/* .
38
39%build
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 \
49 INSTALL_ROOT=$RPM_BUILD_ROOT \
50 EXTENSION_DIR=%{php_extensiondir}
51cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
52; Enable %{_modname} extension module
53extension=%{_modname}.so
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)
69%doc 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.042261 seconds and 4 git commands to generate.