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