- add mysql driver in -mysql subpackage (Bojan Smojver, #222237)

This commit is contained in:
jorton 2007-02-28 12:52:44 +00:00
parent a0681793c4
commit 8721b3e4cd
3 changed files with 1657 additions and 12 deletions

View File

@ -96,7 +96,7 @@
OBJECTS_unix = $(OBJECTS_all) OBJECTS_unix = $(OBJECTS_all)
@@ -58,10 +55,33 @@ @@ -58,10 +55,34 @@
OBJECTS_os390 = $(OBJECTS_all) OBJECTS_os390 = $(OBJECTS_all)
@ -109,24 +109,25 @@
+OBJECTS_dbd_pgsql = dbd/apr_dbd_pgsql.lo +OBJECTS_dbd_pgsql = dbd/apr_dbd_pgsql.lo
+MODULE_dbd_pgsql = dbd/apr_dbd_pgsql.la +MODULE_dbd_pgsql = dbd/apr_dbd_pgsql.la
+dbd/apr_dbd_pgsql.la: dbd/apr_dbd_pgsql.lo +dbd/apr_dbd_pgsql.la: dbd/apr_dbd_pgsql.lo
+ $(LINK_MODULE) -o $@ dbd/apr_dbd_pgsql.lo $(LDADD_dbd_pgsql) + $(LINK_MODULE) -o $@ $(OBJECTS_dbd_pgsql) $(LDADD_dbd_pgsql)
+ +
+dbd/apr_dbd_sqlite2.lo: dbd/apr_dbd_sqlite2.c .make.dirs include/apu.h include/private/apr_dbd_internal.h include/apr_dbd.h +dbd/apr_dbd_sqlite2.lo: dbd/apr_dbd_sqlite2.c .make.dirs include/apu.h include/private/apr_dbd_internal.h include/apr_dbd.h
+OBJECTS_dbd_sqlite2 = dbd/apr_dbd_sqlite2.lo +OBJECTS_dbd_sqlite2 = dbd/apr_dbd_sqlite2.lo
+MODULE_dbd_sqlite2 = dbd/apr_dbd_sqlite2.la +MODULE_dbd_sqlite2 = dbd/apr_dbd_sqlite2.la
+dbd/apr_dbd_sqlite2.la: dbd/apr_dbd_sqlite2.lo +dbd/apr_dbd_sqlite2.la: dbd/apr_dbd_sqlite2.lo
+ $(LINK_MODULE) -o $@ dbd/apr_dbd_sqlite2.lo $(LDADD_dbd_sqlite2) + $(LINK_MODULE) -o $@ $(OBJECTS_dbd_sqlite2) $(LDADD_dbd_sqlite2)
+ +
+dbd/apr_dbd_sqlite3.lo: dbd/apr_dbd_sqlite3.c .make.dirs include/apu.h include/private/apr_dbd_internal.h include/apr_dbd.h +dbd/apr_dbd_sqlite3.lo: dbd/apr_dbd_sqlite3.c .make.dirs include/apu.h include/private/apr_dbd_internal.h include/apr_dbd.h
+OBJECTS_dbd_sqlite3 = dbd/apr_dbd_sqlite3.lo +OBJECTS_dbd_sqlite3 = dbd/apr_dbd_sqlite3.lo
+MODULE_dbd_sqlite3 = dbd/apr_dbd_sqlite3.la +MODULE_dbd_sqlite3 = dbd/apr_dbd_sqlite3.la
+dbd/apr_dbd_sqlite3.la: dbd/apr_dbd_sqlite3.lo +dbd/apr_dbd_sqlite3.la: dbd/apr_dbd_sqlite3.lo
+ $(LINK_MODULE) -o $@ dbd/apr_dbd_sqlite3.lo $(LDADD_dbd_sqlite3) + $(LINK_MODULE) -o $@ $(OBJECTS_dbd_sqlite3) $(LDADD_dbd_sqlite3)
+ +
+OBJECTS_dbd_mysql = +dbd/apr_dbd_mysql.lo: dbd/apr_dbd_mysql.c .make.dirs include/apu.h include/private/apr_dbd_internal.h include/private/apu_config.h include/apu_version.h include/apr_buckets.h include/apr_dbd.h
+OBJECTS_dbd_mysql = dbd/apr_dbd_mysql.lo
+MODULE_dbd_mysql = dbd/apr_dbd_mysql.la +MODULE_dbd_mysql = dbd/apr_dbd_mysql.la
+dbd/apr_dbd_mysql.la: +dbd/apr_dbd_mysql.la: dbd/apr_dbd_mysql.lo
+ $(LINK_MODULE) -o $@ $(LDADD_dbd_mysql) + $(LINK_MODULE) -o $@ $(OBJECTS_dbd_mysql) $(LDADD_dbd_mysql)
+ +
BUILD_DIRS = buckets crypto dbd dbm dbm/sdbm encoding hooks ldap misc strmatch uri xlate xml BUILD_DIRS = buckets crypto dbd dbm dbm/sdbm encoding hooks ldap misc strmatch uri xlate xml

View File

@ -4,19 +4,19 @@
Summary: Apache Portable Runtime Utility library Summary: Apache Portable Runtime Utility library
Name: apr-util Name: apr-util
Version: 1.2.8 Version: 1.2.8
Release: 3 Release: 4
License: Apache Software License 2.0 License: Apache Software License 2.0
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://apr.apache.org/ URL: http://apr.apache.org/
Source0: %{name}-%{version}.tar.gz Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
Source1: http://apache.webthing.com/svn/apache/apr/apr_dbd_mysql.c
Patch0: apr-util-1.2.2-exports.patch Patch0: apr-util-1.2.2-exports.patch
Patch2: apr-util-1.2.7-pkgconf.patch Patch2: apr-util-1.2.7-pkgconf.patch
Patch3: apr-util-1.2.8-dbddso.patch Patch3: apr-util-1.2.8-dbddso.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: autoconf, doxygen, apr-devel >= 1.2.0 BuildRequires: autoconf, doxygen, apr-devel >= 1.2.0
BuildRequires: openldap-devel, db4-devel, expat-devel BuildRequires: openldap-devel, db4-devel, expat-devel
BuildRequires: postgresql-devel, sqlite-devel >= 3.0.0 BuildRequires: sqlite-devel >= 3.0.0, e2fsprogs-devel
BuildRequires: e2fsprogs-devel
Conflicts: subversion < 0.20.1-2 Conflicts: subversion < 0.20.1-2
%description %description
@ -41,24 +41,36 @@ library of C data structures and routines.
%package pgsql %package pgsql
Group: Development/Libraries Group: Development/Libraries
Summary: APR utility library PostgreSQL DBD driver Summary: APR utility library PostgreSQL DBD driver
BuildRequires: postgresql-devel
Requires: apr-util = %{version}-%{release} Requires: apr-util = %{version}-%{release}
%description pgsql %description pgsql
This package provides the PostgreSQL driver for the apr-util This package provides the PostgreSQL driver for the apr-util
DBD (database abstraction) interface. DBD (database abstraction) interface.
%package mysql
Group: Development/Libraries
Summary: APR utility library MySQL DBD driver
BuildRequires: mysql-devel
Requires: apr-util = %{version}-%{release}
%description mysql
This package provides the MySQL driver for the apr-util DBD
(database abstraction) interface.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .exports %patch0 -p1 -b .exports
%patch2 -p1 -b .pkgconf %patch2 -p1 -b .pkgconf
%patch3 -p1 -b .dbddso %patch3 -p1 -b .dbddso
cp $RPM_SOURCE_DIR/apr_dbd_mysql.c dbd
%build %build
autoheader && autoconf autoheader && autoconf
%configure --with-apr=%{_prefix} \ %configure --with-apr=%{_prefix} \
--includedir=%{_includedir}/apr-%{apuver} \ --includedir=%{_includedir}/apr-%{apuver} \
--with-ldap --without-gdbm \ --with-ldap --without-gdbm \
--with-sqlite3 --with-pgsql \ --with-sqlite3 --with-pgsql --with-mysql \
--with-berkeley-db \ --with-berkeley-db \
--without-sqlite2 \ --without-sqlite2 \
--enable-dbd-dso --enable-dbd-dso
@ -116,6 +128,10 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/apr-util-%{apuver}/apr_dbd_pgsql* %{_libdir}/apr-util-%{apuver}/apr_dbd_pgsql*
%files mysql
%defattr(-,root,root,-)
%{_libdir}/apr-util-%{apuver}/apr_dbd_mysql*
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/apu-%{apuver}-config %{_bindir}/apu-%{apuver}-config
@ -126,6 +142,9 @@ rm -rf $RPM_BUILD_ROOT
%doc --parents html %doc --parents html
%changelog %changelog
* Wed Feb 28 2007 Joe Orton <jorton@redhat.com> 1.2.8-4
- add mysql driver in -mysql subpackage (Bojan Smojver, #222237)
* Tue Feb 27 2007 Joe Orton <jorton@redhat.com> 1.2.8-3 * Tue Feb 27 2007 Joe Orton <jorton@redhat.com> 1.2.8-3
- build DBD drivers as DSOs (w/Bojan Smojver, #192922) - build DBD drivers as DSOs (w/Bojan Smojver, #192922)
- split out pgsql driver into -pgsql subpackage - split out pgsql driver into -pgsql subpackage

1625
apr_dbd_mysql.c Normal file

File diff suppressed because it is too large Load Diff