2011-01-25 13:22:58 +01:00
|
|
|
#
|
2011-01-25 13:23:18 +01:00
|
|
|
# spec file for package libdbi-drivers
|
2011-01-25 13:22:58 +01:00
|
|
|
#
|
2014-04-17 17:13:59 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-01-25 13:22:58 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-14 19:02:16 +01:00
|
|
|
|
2013-09-12 18:19:26 +02:00
|
|
|
Name: libdbi-drivers
|
2014-07-07 13:20:50 +02:00
|
|
|
Version: 0.9.0.g46
|
|
|
|
#Snapshot: libdbi-drivers-0.9.0-46-g0ee8394
|
2013-09-12 18:19:26 +02:00
|
|
|
Release: 0
|
2011-01-25 13:22:58 +01:00
|
|
|
Summary: Database drivers for libdbi
|
2012-01-19 10:35:09 +01:00
|
|
|
License: LGPL-2.1+
|
2014-04-17 17:13:59 +02:00
|
|
|
Group: Productivity/Databases/Servers
|
2014-02-07 16:08:18 +01:00
|
|
|
URL: http://libdbi-drivers.sf.net/
|
2011-01-25 13:22:58 +01:00
|
|
|
|
2014-06-16 16:10:38 +02:00
|
|
|
#Git-Clone: git://git.code.sf.net/p/libdbi-drivers/libdbi-drivers
|
2014-06-30 21:31:35 +02:00
|
|
|
#Source: http://downloads.sf.net/libdbi-drivers/%name-%version.tar.gz
|
2014-04-17 17:13:59 +02:00
|
|
|
Source: %name-%version.tar.xz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-06-30 21:36:58 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2012-01-19 10:35:09 +01:00
|
|
|
BuildRequires: gettext
|
2014-06-27 20:32:07 +02:00
|
|
|
BuildRequires: freetds-devel
|
2014-06-30 21:31:35 +02:00
|
|
|
BuildRequires: libdbi-devel >= 0.9.0.g30
|
2014-06-30 21:36:58 +02:00
|
|
|
BuildRequires: libtool
|
2012-01-19 10:35:09 +01:00
|
|
|
BuildRequires: mysql-devel
|
|
|
|
BuildRequires: openjade
|
|
|
|
BuildRequires: postgresql-devel
|
2014-04-17 17:13:59 +02:00
|
|
|
BuildRequires: sqlite2-devel
|
2013-09-12 18:19:26 +02:00
|
|
|
BuildRequires: sqlite3-devel
|
2014-04-17 17:13:59 +02:00
|
|
|
BuildRequires: xz
|
|
|
|
%define build_doc 0
|
|
|
|
%if %build_doc
|
|
|
|
# Only needed when doc is not already prebuilt
|
|
|
|
BuildRequires: docbook-dsssl-stylesheets
|
|
|
|
BuildRequires: openjade
|
|
|
|
BuildRequires: texlive-collection-fontsrecommended
|
|
|
|
BuildRequires: texlive-jadetex
|
|
|
|
BuildRequires: texlive-pdftex-bin
|
|
|
|
%endif
|
2011-01-25 13:22:58 +01:00
|
|
|
|
|
|
|
%description
|
2013-09-12 18:19:26 +02:00
|
|
|
libdbi implements a database-independent abstraction layer in C,
|
|
|
|
similar to the DBI/DBD layer in Perl. Drivers are distributed
|
|
|
|
separately from the library itself.
|
2011-01-25 13:22:58 +01:00
|
|
|
|
2014-06-27 20:32:07 +02:00
|
|
|
%package dbd-freetds
|
|
|
|
Summary: FreeTDS driver for libdbi
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description dbd-freetds
|
|
|
|
This driver provides connectivity to FreeTDS database servers
|
|
|
|
through the libdbi database independent abstraction layer. Switching
|
|
|
|
a program's driver does not require recompilation or rewriting source
|
|
|
|
code.
|
|
|
|
|
2011-01-25 13:22:58 +01:00
|
|
|
%package dbd-mysql
|
|
|
|
Summary: MySQL driver for libdbi
|
2013-09-12 18:19:26 +02:00
|
|
|
Group: System/Libraries
|
2011-01-25 13:22:58 +01:00
|
|
|
|
|
|
|
%description dbd-mysql
|
2013-09-12 18:19:26 +02:00
|
|
|
This driver provides connectivity to MySQL database servers through
|
|
|
|
the libdbi database independent abstraction layer. Switching a
|
|
|
|
program's driver does not require recompilation or rewriting source
|
|
|
|
code.
|
2011-01-25 13:22:58 +01:00
|
|
|
|
|
|
|
%package dbd-pgsql
|
|
|
|
Summary: PostgreSQL driver for libdbi
|
2013-09-12 18:19:26 +02:00
|
|
|
Group: System/Libraries
|
2011-01-25 13:22:58 +01:00
|
|
|
|
|
|
|
%description dbd-pgsql
|
2013-09-12 18:19:26 +02:00
|
|
|
This driver provides connectivity to PostgreSQL database servers
|
|
|
|
through the libdbi database independent abstraction layer. Switching
|
|
|
|
a program's driver does not require recompilation or rewriting source
|
|
|
|
code.
|
2011-01-25 13:22:58 +01:00
|
|
|
|
2014-04-17 17:13:59 +02:00
|
|
|
%package dbd-sqlite
|
2014-06-27 20:32:07 +02:00
|
|
|
Summary: SQLite2 driver for libdbi
|
2014-04-17 17:13:59 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description dbd-sqlite
|
|
|
|
This driver provides connectivity to SQLite database servers through the
|
|
|
|
libdbi database independent abstraction layer. Switching a program's driver
|
|
|
|
does not require recompilation or rewriting source code.
|
|
|
|
|
2011-01-25 13:22:58 +01:00
|
|
|
%package dbd-sqlite3
|
|
|
|
Summary: SQLite3 driver for libdbi
|
2013-09-12 18:19:26 +02:00
|
|
|
Group: System/Libraries
|
2011-01-25 13:22:58 +01:00
|
|
|
|
|
|
|
%description dbd-sqlite3
|
2014-04-17 17:13:59 +02:00
|
|
|
This driver provides connectivity to SQLite 3.x database servers through the
|
2011-01-25 13:22:58 +01:00
|
|
|
libdbi database independent abstraction layer. Switching a program's driver
|
|
|
|
does not require recompilation or rewriting source code.
|
|
|
|
|
|
|
|
%prep
|
2014-04-17 17:13:59 +02:00
|
|
|
%setup -qn %name
|
2014-06-27 20:32:07 +02:00
|
|
|
chmod a-x COPYING
|
2014-02-11 10:30:14 +01:00
|
|
|
|
2013-09-12 18:19:26 +02:00
|
|
|
# Fake the __DATE__ so we do not needelessly rebuild
|
2014-02-07 16:08:18 +01:00
|
|
|
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %_sourcedir/%name.changes '+%%b %%e %%Y')
|
2013-09-12 18:19:26 +02:00
|
|
|
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" drivers/*/*.c
|
2011-01-25 13:22:58 +01:00
|
|
|
|
|
|
|
%build
|
2014-06-30 21:36:58 +02:00
|
|
|
if [ ! -e configure ]; then
|
|
|
|
autoreconf -fi
|
|
|
|
fi
|
2012-02-14 19:02:16 +01:00
|
|
|
%configure \
|
2014-06-27 20:32:07 +02:00
|
|
|
--with-freetds \
|
2011-01-25 13:22:58 +01:00
|
|
|
--with-mysql \
|
|
|
|
--with-pgsql \
|
2014-04-17 17:13:59 +02:00
|
|
|
--with-sqlite3 --with-sqlite \
|
|
|
|
--with-dbi-incdir="%_includedir/dbi" \
|
|
|
|
--with-dbi-libdir="%_libdir" \
|
2011-01-25 13:22:58 +01:00
|
|
|
--disable-static \
|
2014-04-17 17:13:59 +02:00
|
|
|
--docdir="%_docdir/%name" --disable-docs
|
2013-09-12 18:19:26 +02:00
|
|
|
make %{?_smp_mflags}
|
2011-01-25 13:22:58 +01:00
|
|
|
|
|
|
|
%install
|
2014-04-17 17:13:59 +02:00
|
|
|
make install DESTDIR="%buildroot"
|
2013-09-12 18:19:26 +02:00
|
|
|
find "%buildroot" -type f -name "*.la" -delete
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check || :
|
2011-01-25 13:22:58 +01:00
|
|
|
|
2014-06-27 20:32:07 +02:00
|
|
|
%files dbd-freetds
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
|
|
|
%dir %_libdir/dbd
|
|
|
|
%_libdir/dbd/libdbdfreetds.so
|
|
|
|
|
2011-01-25 13:22:58 +01:00
|
|
|
%files dbd-mysql
|
|
|
|
%defattr(-,root,root)
|
2014-02-11 10:30:14 +01:00
|
|
|
%doc COPYING
|
2014-02-07 16:08:18 +01:00
|
|
|
%dir %_libdir/dbd
|
|
|
|
%_libdir/dbd/libdbdmysql.so
|
2011-01-25 13:22:58 +01:00
|
|
|
|
|
|
|
%files dbd-pgsql
|
|
|
|
%defattr(-,root,root)
|
2014-02-11 10:30:14 +01:00
|
|
|
%doc COPYING
|
2014-02-07 16:08:18 +01:00
|
|
|
%dir %_libdir/dbd
|
|
|
|
%_libdir/dbd/libdbdpgsql.so
|
2011-01-25 13:22:58 +01:00
|
|
|
|
2014-04-17 17:13:59 +02:00
|
|
|
%files dbd-sqlite
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_libdir/dbd
|
|
|
|
%_libdir/dbd/libdbdsqlite.so
|
|
|
|
|
2011-01-25 13:22:58 +01:00
|
|
|
%files dbd-sqlite3
|
|
|
|
%defattr(-,root,root)
|
2014-02-11 10:30:14 +01:00
|
|
|
%doc COPYING
|
2014-02-07 16:08:18 +01:00
|
|
|
%dir %_libdir/dbd
|
|
|
|
%_libdir/dbd/libdbdsqlite3.so
|
2011-01-25 13:22:58 +01:00
|
|
|
|
|
|
|
%changelog
|