]> git.pld-linux.org Git - packages/php-pecl-dbx.git/blame - php-pecl-dbx.spec
- obsolete old php name
[packages/php-pecl-dbx.git] / php-pecl-dbx.spec
CommitLineData
e3eff1a9 1%define php_name php%{?php_suffix}
9620a303
ER
2%define modname dbx
3%define status stable
4Summary: %{modname} - database abstraction functions
5Summary(pl.UTF-8): %{modname} - funkcje abstrakcji baz danych
e3eff1a9 6Name: %{php_name}-pecl-%{modname}
bc9bfcc8 7Version: 1.1.2
ad8e5c06 8Release: 4
3f680b54
AG
9License: PHP 2.02
10Group: Development/Languages/PHP
bc9bfcc8
ER
11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
12# Source0-md5: 8cac1af119e6afa519853bfd3a911bbb
3f680b54 13URL: http://pecl.php.net/package/dbx/
e3eff1a9
ER
14BuildRequires: %{php_name}-devel >= 4:5.0.4
15BuildRequires: rpmbuild(macros) >= 1.650
3b345264 16%{?requires_php_extension}
778b1dee 17Provides: php(%{modname}) = %{version}
ad8e5c06
ER
18Obsoletes: php-dbx
19Obsoletes: php-pecl-dbx < 1.1.2-3
3f680b54
AG
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
3f680b54
AG
22%description
23The dbx module is a database abstraction layer. The dbx functions
24allow you to access all supported databases using a single calling
25convention. The dbx-functions themselves do not interface directly to
26the databases, but interface to the modules that are used to support
27these databases.
28
29The currently supported databases are MySQL, ODBC, Oracle (oci8), MS
30SQL Server, PostgreSQL, FrontBase, Sybase-CT and SQLite.
31
9620a303 32In PECL status of this extension is: %{status}.
3f680b54 33
dcc3470d
JR
34%description -l pl.UTF-8
35Moduł dbx to warstwa abstrakcji baz danych. Funkcje dbx pozwalają na
36dostęp do wspieranych baz danych przy użyciu spójnej konwencji.
37Funkcje dbx jako takie nie są bezpośrednim interfejsem do bazy danych,
38ale interfejsem do modułów do obsługi baz danych.
3f680b54
AG
39
40Aktualnie wspierane bazy danych to MySQL, ODBC, Oracle (oci8), MS SQL
41Server, PostgreSQL, FrontBase, Sybase-CT oraz SQLite.
42
9620a303 43To rozszerzenie ma w PECL status: %{status}.
3f680b54
AG
44
45%prep
9620a303 46%setup -qc
fc824c90 47mv %{modname}-*/* .
3f680b54
AG
48
49%build
3f680b54
AG
50phpize
51%configure
52%{__make}
53
54%install
55rm -rf $RPM_BUILD_ROOT
6b750153 56install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
9620a303
ER
57install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
58cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
59; Enable %{modname} extension module
60extension=%{modname}.so
3b345264 61EOF
3f680b54
AG
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%post
6b750153 67%php_webserver_restart
3f680b54 68
3b345264
ER
69%postun
70if [ "$1" = 0 ]; then
6b750153 71 %php_webserver_restart
3f680b54
AG
72fi
73
74%files
75%defattr(644,root,root,755)
9620a303
ER
76%doc CREDITS
77%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
78%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.059746 seconds and 4 git commands to generate.