commit 9a5b4471ad005002ac4a1437a1ad02e42763ccd5b0d366ab10411dc449207bfd Author: Lars Vogdt Date: Tue Jan 25 12:22:58 2011 +0000 Accepting request 56131 from devel:libraries:c_c++ Accepted submit request 56131 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/56131 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdbi-drivers?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libdbi-drivers-0.8.3-1.tar.bz2 b/libdbi-drivers-0.8.3-1.tar.bz2 new file mode 100644 index 0000000..d346af5 --- /dev/null +++ b/libdbi-drivers-0.8.3-1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4bf319ffcfd87b1dfb14469eade057c419ecec1e827a2d6f5c15dddc034ec75 +size 1332620 diff --git a/libdbi-drivers.changes b/libdbi-drivers.changes new file mode 100644 index 0000000..5daa4cd --- /dev/null +++ b/libdbi-drivers.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Wed Dec 15 16:17:10 CET 2010 - meissner@suse.de + +- spec file cleanup +- disabled static driver libs +- pass in RPM_OPT_FLAGS + +------------------------------------------------------------------- +Wed Dec 15 16:05:55 CET 2010 - meissner@suse.de + +- split off from libdbi + diff --git a/libdbi-drivers.spec b/libdbi-drivers.spec new file mode 100644 index 0000000..8e42a09 --- /dev/null +++ b/libdbi-drivers.spec @@ -0,0 +1,162 @@ +# +# spec file for package libdbi-drivers (Version 0.8.3) +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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/ +# + + +%define special -1 + +Summary: Database drivers for libdbi + +Name: libdbi-drivers +Version: 0.8.3 +Release: 1 +Group: Development/Libraries +License: LGPL +Url: http://libdbi-drivers.sourceforge.net/ +Source: %{name}-%{version}%{special}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +BuildRequires: gettext libdbi-devel mysql-devel openjade postgresql-devel sqlite-devel + +%description +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. + +_Original_Vendor: Neon Goat Productions +_Original_Packager: David A. Parker + + +%package dbd-mysql +License: LGPL +Summary: MySQL driver for libdbi +Group: Development/Libraries +Requires: libdbi0 = %{version}, mysqlclient9 >= 3.23.22 + +%description dbd-mysql +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. + +%package dbd-pgsql +License: LGPL +Summary: PostgreSQL driver for libdbi +Group: Development/Libraries +Requires: libdbi0 = %{version}, postgresql >= 7.0.3 + +%description dbd-pgsql +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. + +%if 0%{?suse_version} == 910 +# SLES 9 + +%package dbd-sqlite +License: LGPL +Summary: SQLite driver for libdbi +Group: Development/Libraries +Requires: libdbi0 = %{version}, sqlite + +%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. + +%else + +%package dbd-sqlite3 + +Summary: SQLite3 driver for libdbi +Group: Development/Libraries +Requires: libdbi0 = %{version}, sqlite + +%description dbd-sqlite3 +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. + +%endif + +%prep +%setup -q -n %{name}-%{version}%{special} + +%build +CFLAGS="$RPM_OPT_FLAGS" %configure \ + --with-mysql \ + --with-mysql-incdir=/usr/include/mysql \ + --with-mysql-libdir=%{_libdir}/mysql \ + --with-pgsql \ + --with-pgsql-incdir=/usr/include/pgsql \ + --with-pgsql-libdir=%{_libdir} \ +%if 0%{?suse_version} == 910 + --with-sqlite \ + --with-sqlite-incdir=/usr/include \ + --with-sqlite-libdir=%{_libdir} \ +%else + --with-sqlite3 \ + --with-sqlite3-incdir=/usr/include \ + --with-sqlite3-libdir=%{_libdir} \ +%endif + --with-dbi-incdir=/usr/include/dbi \ + --with-dbi-libdir=%{_libdir} \ + --disable-static \ + --disable-docs +make AM_CFLAGS="$RPM_OPT_FLAGS" + +%install +make DESTDIR=$RPM_BUILD_ROOT install + +%files dbd-mysql +%defattr(-,root,root) +%dir %{_libdir}/dbd +%{_libdir}/dbd/libdbdmysql.so +%{_libdir}/dbd/libdbdmysql.la + +%files dbd-pgsql +%defattr(-,root,root) +%dir %{_libdir}/dbd +%{_libdir}/dbd/libdbdpgsql.so +%{_libdir}/dbd/libdbdpgsql.la + +%if 0%{?suse_version} == 910 +%defattr(-,root,root) +# SLES 9 + +%files dbd-sqlite +%defattr(-,root,root) +%dir %{_libdir}/dbd +%{_libdir}/dbd/libdbdsqlite.so +%{_libdir}/dbd/libdbdsqlite.la + +%else + +%files dbd-sqlite3 +%defattr(-,root,root) +%dir %{_libdir}/dbd +%{_libdir}/dbd/libdbdsqlite3.so +%{_libdir}/dbd/libdbdsqlite3.la + +%endif + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%changelog