]> git.pld-linux.org Git - packages/php-pecl-paradox.git/blame - php-pecl-paradox.spec
provide php(extname) to really be supporting multiple php versions
[packages/php-pecl-paradox.git] / php-pecl-paradox.spec
CommitLineData
462f66b2
ER
1%define php_name php%{?php_suffix}
2%define modname paradox
3%define status stable
7ad8af39
AG
4Summary: read and write Paradox files
5Summary(pl.UTF-8): odczyt i zapis z/do plików Paradox
462f66b2 6Name: %{php_name}-pecl-%{modname}
7ad8af39 7Version: 1.4.3
75eed969 8Release: 6
7ad8af39
AG
9License: PHP 3.01
10Group: Development/Languages/PHP
462f66b2 11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
7ad8af39
AG
12# Source0-md5: aab0bc4146bc2852a9623b635fa20c17
13URL: http://pecl.php.net/package/Paradox/
462f66b2 14BuildRequires: %{php_name}-devel >= 3:5.0.0
7ad8af39 15BuildRequires: pxlib-devel >= 0.6.0
462f66b2 16BuildRequires: rpmbuild(macros) >= 1.650
7ad8af39 17%{?requires_php_extension}
990e2d63 18Requires: php(core) >= 5.0.4
75eed969 19Provides: php(%{modname}) = %{version}
7ad8af39
AG
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23Paradox is an extension to read and write Paradox .DB and .PX files.
24It can handle almost all field types and binary large objects stored
25in .MB files.
26
462f66b2 27In PECL status of this extension is: %{status}.
7ad8af39
AG
28
29%description -l pl.UTF-8
30Paradox to rozszerzenie pozwalające na dostęp w trybie odczyt/zapis do
31plików .DB oraz .PX bazy Paradox. Rozszerzenie pozwala na obsługę
32prawie wszystkich typów pól i dużych obiektów binarnych (ang. binary
33large objects, blob) przechowywanych w plikach .MB.
34
462f66b2 35To rozszerzenie ma w PECL status: %{status}.
7ad8af39
AG
36
37%prep
38%setup -q -c
462f66b2 39mv %{modname}-%{version}/* .
7ad8af39
AG
40
41%build
42phpize
43%configure
44%{__make}
45
46%install
47rm -rf $RPM_BUILD_ROOT
48install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
49
50%{__make} install \
51 INSTALL_ROOT=$RPM_BUILD_ROOT \
52 EXTENSION_DIR=%{php_extensiondir}
462f66b2
ER
53cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
54; Enable %{modname} extension module
55extension=%{modname}.so
7ad8af39
AG
56EOF
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%post
62%php_webserver_restart
63
64%postun
65if [ "$1" = 0 ]; then
66 %php_webserver_restart
67fi
68
69%files
70%defattr(644,root,root,755)
71%doc CREDITS
462f66b2
ER
72%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
73%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.096142 seconds and 4 git commands to generate.