bcc77b8
Summary: Database-specific drivers for libdbi
bcc77b8
Name: libdbi-drivers
f3418a5
Version: 0.8.3
b80c86a
Release: 13%{?dist}
bcc77b8
Group: Development/Libraries
e92d3dd
License: LGPLv2+
f3418a5
URL: http://libdbi-drivers.sourceforge.net/
e92d3dd
f3418a5
Source: http://prdownloads.sourceforge.net/libdbi-drivers/%{name}-%{version}.tar.gz
72e5c06
Patch1: libdbi-drivers-cflags.patch
46aeb1b
Patch2: libdbi-drivers-error-handler.patch
ef43118
Patch3: libdbi-drivers-aarch64.patch
72e5c06
Tom Lane 0c750f5
Requires: libdbi%{?_isa} >= 0.8
4dc61c3
BuildRequires: libdbi-devel >= 0.8
7ec5269
BuildRequires: autoconf openjade docbook-style-dsssl
bcc77b8
bcc77b8
%description
bcc77b8
libdbi implements a database-independent abstraction layer in C, similar to the
bcc77b8
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
bcc77b8
leverage the power of multiple databases and multiple simultaneous database
bcc77b8
connections by using this framework.
bcc77b8
bcc77b8
libdbi-drivers contains the database-specific plugins needed to connect
bcc77b8
libdbi to particular database servers.
bcc77b8
123fabc
%package -n libdbi-dbd-mysql
123fabc
Summary: MySQL plugin for libdbi
123fabc
Group: Development/Libraries
Tom Lane 0c750f5
Requires:	%{name}%{?_isa} = %{version}-%{release}
4dc61c3
BuildRequires: mysql-devel, openssl-devel
123fabc
123fabc
%description -n libdbi-dbd-mysql
123fabc
This plugin provides connectivity to MySQL database servers through the
123fabc
libdbi database independent abstraction layer. Switching a program's plugin
123fabc
does not require recompilation or rewriting source code.
123fabc
123fabc
%package -n libdbi-dbd-pgsql
123fabc
Summary: PostgreSQL plugin for libdbi
123fabc
Group: Development/Libraries
Tom Lane 0c750f5
Requires:	%{name}%{?_isa} = %{version}-%{release}
123fabc
BuildRequires: postgresql-devel, krb5-devel, openssl-devel
123fabc
123fabc
%description -n libdbi-dbd-pgsql
123fabc
This plugin provides connectivity to PostgreSQL database servers through the
123fabc
libdbi database independent abstraction layer. Switching a program's plugin
123fabc
does not require recompilation or rewriting source code.
123fabc
5303893
%package -n libdbi-dbd-sqlite
5303893
Summary: SQLite plugin for libdbi
5303893
Group: Development/Libraries
Tom Lane 0c750f5
Requires:	%{name}%{?_isa} = %{version}-%{release}
5303893
BuildRequires: sqlite-devel
5303893
5303893
%description -n libdbi-dbd-sqlite
5303893
This plugin provides access to an embedded SQL engine using libsqlite3 through
5303893
the libdbi database independent abstraction layer. Switching a program's plugin
5303893
does not require recompilation or rewriting source code.
5303893
bcc77b8
%prep
f3418a5
%setup -q -n %{name}-%{version}
bcc77b8
72e5c06
%patch1 -p1
46aeb1b
%patch2 -p1
ef43118
%patch3 -p1
72e5c06
72e5c06
autoconf
72e5c06
bcc77b8
%build
bcc77b8
# configure is broken, must pass both --with-*sql-libdir _AND_
bcc77b8
# --with-*sql-incdir in order for --with-*sql-libdir to be used
5303893
%configure --with-mysql --with-pgsql --with-sqlite3 \
5303893
	--with-mysql-libdir=%{_libdir}/mysql \
4dc61c3
	--with-mysql-incdir=%{_includedir} \
bcc77b8
	--with-pgsql-libdir=%{_libdir} \
5303893
	--with-pgsql-incdir=%{_includedir} \
5303893
	--with-sqlite3-libdir=%{_libdir} \
f3418a5
	--with-sqlite3-incdir=%{_includedir} \
f3418a5
	--with-dbi-libdir=%{_libdir}
123fabc
bcc77b8
make %{?_smp_mflags}
bcc77b8
bcc77b8
%install
bcc77b8
make DESTDIR=$RPM_BUILD_ROOT install
bcc77b8
9cf6210
rm -f ${RPM_BUILD_ROOT}%{_libdir}/dbd/*.a
9cf6210
rm -f ${RPM_BUILD_ROOT}%{_libdir}/dbd/*.la
4bd5764
f38173d
# package the docs via %%doc directives
4bd5764
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
4dc61c3
bcc77b8
%post -p /sbin/ldconfig
bcc77b8
bcc77b8
%postun -p /sbin/ldconfig
bcc77b8
bcc77b8
%files
9cf6210
%doc AUTHORS ChangeLog COPYING README
9cf6210
%doc drivers/mysql/dbd_mysql/*.html
9cf6210
%doc drivers/mysql/*.pdf
9cf6210
%doc drivers/pgsql/dbd_pgsql/*.html
9cf6210
%doc drivers/pgsql/*.pdf
9cf6210
%doc drivers/sqlite3/dbd_sqlite3/*.html
9cf6210
%doc drivers/sqlite3/*.pdf
123fabc
%dir %{_libdir}/dbd
123fabc
123fabc
%files -n libdbi-dbd-mysql
4dc61c3
%{_libdir}/dbd/libdbdmysql.*
123fabc
123fabc
%files -n libdbi-dbd-pgsql
4dc61c3
%{_libdir}/dbd/libdbdpgsql.*
bcc77b8
5303893
%files -n libdbi-dbd-sqlite
5303893
%{_libdir}/dbd/libdbdsqlite3.*
5303893
bcc77b8
%changelog
b80c86a
* Mon Jul 29 2013 Honza Horak <hhorak@redhat.com> 0.8.3-13
b80c86a
- Spec file clean-up
ef43118
- Add support for aarch64
b80c86a
Tom Lane 0c750f5
* Tue Mar  5 2013 Tom Lane <tgl@redhat.com> 0.8.3-12
Tom Lane 0c750f5
- Remove unnecessary package-name Requires:, since dependencies on library
Tom Lane 0c750f5
  sonames should be enough, and we don't want to hard-wire assumptions about
Tom Lane 0c750f5
  which packages provide which libraries
Tom Lane 0c750f5
- isa-ify cross-subpackage Requires:
Tom Lane 0c750f5
25ef628
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-11
25ef628
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
25ef628
388769e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-10
388769e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
388769e
1a01014
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-9
1a01014
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1a01014
Tom Lane ffe0cc4
* Tue Mar 22 2011 Tom Lane <tgl@redhat.com> 0.8.3-8
Tom Lane ffe0cc4
- Rebuild for libmysqlclient 5.5.10 soname version bump
Tom Lane ffe0cc4
3af2ccb
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-7
3af2ccb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3af2ccb
Tom Lane 2b30c91
* Fri Sep  3 2010 Tom Lane <tgl@redhat.com> 0.8.3-6
Tom Lane 2b30c91
- Do not use -ffast-math; it breaks things and seems quite unlikely to offer
Tom Lane 2b30c91
  any useful performance benefit for this type of package, anyway
Tom Lane 2b30c91
Resolves: #629964
Tom Lane 2b30c91
97c221f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-5
97c221f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
97c221f
e8b3bdb
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-4
e8b3bdb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e8b3bdb
04de548
* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 0.8.3-3
04de548
- Rebuild for mysql 5.1
04de548
46aeb1b
* Mon Sep  1 2008 Tom Lane <tgl@redhat.com> 0.8.3-2
46aeb1b
- Fix mistaken external reference in libdbdsqlite3.so.  (I'm applying this
46aeb1b
  as a patch, rather than updating to upstream's 0.8.3-1, because that isn't
46aeb1b
  acceptable as an RPM Version tag.)
46aeb1b
Resolves: #460734
46aeb1b
f3418a5
* Mon Feb 11 2008 Tom Lane <tgl@redhat.com> 0.8.3-1
f3418a5
- Update to version 0.8.3.
f3418a5
- Code is now all licensed LGPLv2+, so adjust License tags.
f3418a5
72e5c06
* Tue Oct 30 2007 Tom Lane <tgl@redhat.com> 0.8.2-1.3
72e5c06
- Fix package's selection of CFLAGS to include RPM_OPT_FLAGS
72e5c06
Resolves: #330691
72e5c06
e92d3dd
* Fri Aug  3 2007 Tom Lane <tgl@redhat.com> 0.8.2-1.2
e92d3dd
- Correct License tag for sqlite subpackage; it's currently not same license
e92d3dd
  as the rest of the code.
e92d3dd
9cf6210
* Thu Aug  2 2007 Tom Lane <tgl@redhat.com> 0.8.2-1.1
9cf6210
- Update to version 0.8.2-1.
9cf6210
- Update License tag to match code.
9cf6210
- Remove static libraries and .la files, per packaging guidelines.
9cf6210
- Fix up packaging of documentation.
9cf6210
5303893
* Mon Dec 11 2006 Tom Lane <tgl@redhat.com> 0.8.1a-2
5303893
- Enable building of sqlite driver
5303893
Resolves: #184568
5303893
- Rebuild needed anyway for Postgres library update
5303893
70980e2
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.8.1a-1.2.2
70980e2
- rebuild
70980e2
58c7e54
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.8.1a-1.2.1
58c7e54
- bump again for double-long bug on ppc(64)
58c7e54
e074a98
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.8.1a-1.2
e074a98
- rebuilt for new gcc4.1 snapshot and glibc changes
e074a98
62ded6a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
62ded6a
- rebuilt
62ded6a
4dc61c3
* Sat Nov 12 2005 Tom Lane <tgl@redhat.com> 0.8.1a-1
4dc61c3
- Update to version 0.8.1a.
4dc61c3
a040e05
* Tue Apr 12 2005 Tom Lane <tgl@redhat.com> 0.7.1-3
a040e05
- Rebuild for Postgres 8.0.2 (new libpq major version).
a040e05
123fabc
* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 0.7.1-2
123fabc
- Packaging improvements per discussion with sopwith.
123fabc
bcc77b8
* Thu Mar 10 2005 Tom Lane <tgl@redhat.com> 0.7.1-1
bcc77b8
- Import new libdbi version, splitting libdbi-drivers into a separate SRPM
bcc77b8
  so we can track new upstream packaging.