]> git.pld-linux.org Git - packages/php-pecl-dbx.git/blame - php-pecl-dbx.spec
- add branch diff (1.1.1-dev); builds with php53
[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
ER
6Version: 1.1.1
7Release: 1
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/
fc824c90 13Patch0: branch.diff
3f680b54 14BuildRequires: php-devel >= 3:5.0.0
6b750153 15BuildRequires: rpmbuild(macros) >= 1.344
3b345264 16%{?requires_php_extension}
6b750153 17Requires: php-common >= 4:5.0.4
83550c6f 18Obsoletes: php-dbx
3f680b54
AG
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
3f680b54
AG
21%description
22The dbx module is a database abstraction layer. The dbx functions
23allow you to access all supported databases using a single calling
24convention. The dbx-functions themselves do not interface directly to
25the databases, but interface to the modules that are used to support
26these databases.
27
28The currently supported databases are MySQL, ODBC, Oracle (oci8), MS
29SQL Server, PostgreSQL, FrontBase, Sybase-CT and SQLite.
30
9620a303 31In PECL status of this extension is: %{status}.
3f680b54 32
dcc3470d
JR
33%description -l pl.UTF-8
34Moduł dbx to warstwa abstrakcji baz danych. Funkcje dbx pozwalają na
35dostęp do wspieranych baz danych przy użyciu spójnej konwencji.
36Funkcje dbx jako takie nie są bezpośrednim interfejsem do bazy danych,
37ale interfejsem do modułów do obsługi baz danych.
3f680b54
AG
38
39Aktualnie wspierane bazy danych to MySQL, ODBC, Oracle (oci8), MS SQL
40Server, PostgreSQL, FrontBase, Sybase-CT oraz SQLite.
41
9620a303 42To rozszerzenie ma w PECL status: %{status}.
3f680b54
AG
43
44%prep
9620a303 45%setup -qc
fc824c90
ER
46mv %{modname}-*/* .
47%patch0 -p0
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.072603 seconds and 4 git commands to generate.