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