aboutsummaryrefslogtreecommitdiffstats
path: root/rpm-local/spec/libdbi-drivers/libdbi-drivers.spec
diff options
context:
space:
mode:
Diffstat (limited to 'rpm-local/spec/libdbi-drivers/libdbi-drivers.spec')
-rw-r--r--rpm-local/spec/libdbi-drivers/libdbi-drivers.spec402
1 files changed, 233 insertions, 169 deletions
diff --git a/rpm-local/spec/libdbi-drivers/libdbi-drivers.spec b/rpm-local/spec/libdbi-drivers/libdbi-drivers.spec
index 746a0f6..d3a941a 100644
--- a/rpm-local/spec/libdbi-drivers/libdbi-drivers.spec
+++ b/rpm-local/spec/libdbi-drivers/libdbi-drivers.spec
@@ -1,181 +1,245 @@
-#
-# spec file for package libdbi-drivers
-#
-# Copyright (c) 2014 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 build_freetds 0
-
-%if 0%{centos_ver}
-%define build_mysql 0
-%else
-%define build_mysql 1
-%endif
-
-Name: libdbi-drivers
-Version: 0.9.0.g55
-Release: 0
-Summary: Database drivers for libdbi
-License: LGPL-2.1+
-Group: Productivity/Databases/Servers
-URL: http://libdbi-drivers.sf.net/
-
-#Source: http://downloads.sf.net/libdbi-drivers/%name-%version.tar.gz
-Source: %name-%version.tar.xz
-Patch1: configure.ac.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: gettext
-%if %build_freetds
-BuildRequires: freetds-devel
-%endif
-BuildRequires: libdbi-devel >= 0.9.0.g30
-BuildRequires: libtool
-%if %build_mysql
-BuildRequires: mysql-devel
-%endif
-BuildRequires: openjade
-BuildRequires: postgresql-devel
-%if 0%{centos_ver}
-BuildRequires: sqlite-devel
-%else
-BuildRequires: sqlite3-devel
-%endif
-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
+Summary: Database-specific drivers for libdbi
+Name: libdbi-drivers
+Version: 0.9.0
+Release: 14%{?dist}
+License: LGPLv2+
+URL: http://libdbi-drivers.sourceforge.net/
+
+Source: http://prdownloads.sourceforge.net/libdbi-drivers/%{name}-%{version}.tar.gz
+# old automake does not offer aarch64
+Patch1: libdbi-drivers-aarch64.patch
+
+Requires: libdbi%{?_isa} >= 0.9
+BuildRequires: libdbi-devel >= 0.9
+BuildRequires: autoconf openjade docbook-style-dsssl
+BuildRequires: gcc
%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.
-
-%if %build_freetds
-%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.
-%endif
-
-%if %build_mysql
-%package dbd-mysql
-Summary: MySQL driver for libdbi
-Group: System/Libraries
-
-%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.
-%endif
-
-%package dbd-pgsql
-Summary: PostgreSQL driver for libdbi
-Group: System/Libraries
-
-%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.
-
-%package dbd-sqlite3
-Summary: SQLite3 driver for libdbi
-Group: System/Libraries
-
-%description dbd-sqlite3
-This driver provides connectivity to SQLite 3.x database servers through the
-libdbi database independent abstraction layer. Switching a program's driver
+libdbi implements a database-independent abstraction layer in C, similar to the
+DBI/DBD layer in Perl. Writing one generic set of code, programmers can
+leverage the power of multiple databases and multiple simultaneous database
+connections by using this framework.
+
+libdbi-drivers contains the database-specific plugins needed to connect
+libdbi to particular database servers.
+
+%package -n libdbi-dbd-mysql
+Summary: MySQL plugin for libdbi
+Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: mariadb-connector-c-devel, openssl-devel
+
+%description -n libdbi-dbd-mysql
+This plugin provides connectivity to MySQL/MariaDB database servers through
+the libdbi database independent abstraction layer. Switching a program's
+plugin does not require recompilation or rewriting source code.
+
+%package -n libdbi-dbd-pgsql
+Summary: PostgreSQL plugin for libdbi
+Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: libpq-devel, krb5-devel, openssl-devel
+
+%description -n libdbi-dbd-pgsql
+This plugin provides connectivity to PostgreSQL database servers through the
+libdbi database independent abstraction layer. Switching a program's plugin
does not require recompilation or rewriting source code.
-%prep
-%setup -q
-%if 0%{?suse_version} == 1110
-%patch -P 1 -p1
-%endif
-chmod a-x COPYING
+%package -n libdbi-dbd-sqlite
+Summary: SQLite plugin for libdbi
+Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: sqlite-devel
+
+%description -n libdbi-dbd-sqlite
+This plugin provides access to an embedded SQL engine using libsqlite3 through
+the libdbi database independent abstraction layer. Switching a program's plugin
+does not require recompilation or rewriting source code.
-# Fake the __DATE__ so we do not needelessly rebuild
-FAKE_BUILDDATE=$(LC_ALL=C date -u -r %_sourcedir/%name.changes '+%%b %%e %%Y')
-sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" drivers/*/*.c
+%prep
+%setup -q -n %{name}-%{version}
+%patch1 -p1
+autoconf
+# mariadb provides headers in a subfolder <mysql/mysql.h>
+sed -i -r 's|<(mysql\.h)>|<mysql/\1>|' drivers/mysql/dbd_mysql.c
+# exporting LDFLAGS or LIBS or SQLITE3_LIBS before running autoconf or
+# ./configure doesn't help => hardcode it
+sed -i -r "s|(SQLITE3_LIBS=)-lsqlite[^[:space:]]*|\1$(pkg-config --libs-only-l sqlite3)|" \
+ configure
%build
-if [ ! -e configure ]; then
- autoreconf -fi
-fi
-export CFLAGS="%optflags -O0 -ggdb3"
-%configure \
-%if %build_freetds
- --with-freetds \
-%endif
-%if %build_mysql
- --with-mysql \
-%endif
- --with-pgsql \
- --with-sqlite3 \
- --with-dbi-incdir="%_includedir/dbi" \
- --with-dbi-libdir="%_libdir" \
- --disable-static \
- --docdir="%_docdir/%name" --disable-docs
+# configure is broken, must pass both --with-*sql-libdir _AND_
+# --with-*sql-incdir in order for --with-*sql-libdir to be used
+%configure --with-mysql --with-pgsql --with-sqlite3 \
+ --with-mysql-libdir=%{_libdir}/mariadb \
+ --with-mysql-incdir=%{_includedir} \
+ --with-pgsql-libdir=%{_libdir} \
+ --with-pgsql-incdir=%{_includedir} \
+ --with-sqlite3-libdir=%{_libdir} \
+ --with-sqlite3-incdir=%{_includedir} \
+ --with-dbi-libdir=%{_libdir}
+
make %{?_smp_mflags}
%install
-make install DESTDIR="%buildroot"
-find "%buildroot" -type f -name "*.la" -delete
-
-%check
-make check || :
-
-%if %build_freetds
-%files dbd-freetds
-%defattr(-,root,root)
-%doc COPYING
-%dir %_libdir/dbd
-%_libdir/dbd/libdbdfreetds.so
-%endif
-
-%if %build_mysql
-%files dbd-mysql
-%defattr(-,root,root)
-%doc COPYING
-%dir %_libdir/dbd
-%_libdir/dbd/libdbdmysql.so
-%endif
-
-%files dbd-pgsql
-%defattr(-,root,root)
-%doc COPYING
-%dir %_libdir/dbd
-%_libdir/dbd/libdbdpgsql.so
-
-%files dbd-sqlite3
-%defattr(-,root,root)
-%doc COPYING
-%dir %_libdir/dbd
-%_libdir/dbd/libdbdsqlite3.so
+make DESTDIR=$RPM_BUILD_ROOT install
+
+rm -f ${RPM_BUILD_ROOT}%{_libdir}/dbd/*.a
+rm -f ${RPM_BUILD_ROOT}%{_libdir}/dbd/*.la
+
+# package the docs via %%doc directives
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
+%ldconfig_scriptlets
+
+%files
+%doc AUTHORS ChangeLog COPYING README
+%doc drivers/mysql/dbd_mysql/*.html
+%doc drivers/mysql/*.pdf
+%doc drivers/pgsql/dbd_pgsql/*.html
+%doc drivers/pgsql/*.pdf
+%doc drivers/sqlite3/dbd_sqlite3/*.html
+%doc drivers/sqlite3/*.pdf
+%dir %{_libdir}/dbd
+
+%files -n libdbi-dbd-mysql
+%{_libdir}/dbd/libdbdmysql.*
+
+%files -n libdbi-dbd-pgsql
+%{_libdir}/dbd/libdbdpgsql.*
+
+%files -n libdbi-dbd-sqlite
+%{_libdir}/dbd/libdbdsqlite3.*
%changelog
+* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-14
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-13
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-12
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Tue Feb 27 2018 Marek Skalick√Ĺ <mskalick@redhat.com> - 0.9.0-11
+- Add missing BuildRequires: gcc/gcc-c++
+
+* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-10
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Tue Oct 17 2017 Marek Skalick√Ĺ <mskalick@redhat.com> - 0.9.0-9
+- Use mariadb-connector-c-devel instead of mariadb-devel
+
+* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
+
+* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Thu Jan 23 2014 Jan Pacner <jpacner@redhat.com> - 0.9.0-1
+- new release
+
+* Mon Jul 29 2013 Honza Horak <hhorak@redhat.com> 0.8.3-13
+- Spec file clean-up
+- Add support for aarch64
+
+* Tue Mar 5 2013 Tom Lane <tgl@redhat.com> 0.8.3-12
+- Remove unnecessary package-name Requires:, since dependencies on library
+ sonames should be enough, and we don't want to hard-wire assumptions about
+ which packages provide which libraries
+- isa-ify cross-subpackage Requires:
+
+* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-11
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-10
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Tue Mar 22 2011 Tom Lane <tgl@redhat.com> 0.8.3-8
+- Rebuild for libmysqlclient 5.5.10 soname version bump
+
+* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Fri Sep 3 2010 Tom Lane <tgl@redhat.com> 0.8.3-6
+- Do not use -ffast-math; it breaks things and seems quite unlikely to offer
+ any useful performance benefit for this type of package, anyway
+Resolves: #629964
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 0.8.3-3
+- Rebuild for mysql 5.1
+
+* Mon Sep 1 2008 Tom Lane <tgl@redhat.com> 0.8.3-2
+- Fix mistaken external reference in libdbdsqlite3.so. (I'm applying this
+ as a patch, rather than updating to upstream's 0.8.3-1, because that isn't
+ acceptable as an RPM Version tag.)
+Resolves: #460734
+
+* Mon Feb 11 2008 Tom Lane <tgl@redhat.com> 0.8.3-1
+- Update to version 0.8.3.
+- Code is now all licensed LGPLv2+, so adjust License tags.
+
+* Tue Oct 30 2007 Tom Lane <tgl@redhat.com> 0.8.2-1.3
+- Fix package's selection of CFLAGS to include RPM_OPT_FLAGS
+Resolves: #330691
+
+* Fri Aug 3 2007 Tom Lane <tgl@redhat.com> 0.8.2-1.2
+- Correct License tag for sqlite subpackage; it's currently not same license
+ as the rest of the code.
+
+* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 0.8.2-1.1
+- Update to version 0.8.2-1.
+- Update License tag to match code.
+- Remove static libraries and .la files, per packaging guidelines.
+- Fix up packaging of documentation.
+
+* Mon Dec 11 2006 Tom Lane <tgl@redhat.com> 0.8.1a-2
+- Enable building of sqlite driver
+Resolves: #184568
+- Rebuild needed anyway for Postgres library update
+
+* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.8.1a-1.2.2
+- rebuild
+
+* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.8.1a-1.2.1
+- bump again for double-long bug on ppc(64)
+
+* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.8.1a-1.2
+- rebuilt for new gcc4.1 snapshot and glibc changes
+
+* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt
+
+* Sat Nov 12 2005 Tom Lane <tgl@redhat.com> 0.8.1a-1
+- Update to version 0.8.1a.
+
+* Tue Apr 12 2005 Tom Lane <tgl@redhat.com> 0.7.1-3
+- Rebuild for Postgres 8.0.2 (new libpq major version).
+
+* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 0.7.1-2
+- Packaging improvements per discussion with sopwith.
+
+* Thu Mar 10 2005 Tom Lane <tgl@redhat.com> 0.7.1-1
+- Import new libdbi version, splitting libdbi-drivers into a separate SRPM
+ so we can track new upstream packaging.