Name: opendbx Version: 1.4.6 Release: 23%{?dist} Summary: Lightweight but extensible database access library written in C #License: LGPLv2+ # (util/argmap.{cpp,hpp}) have a GPL license header rather than an LGPL one # until upstream decides about this I am leaving GPLv2+ here as the stricter license License: GPLv2+ URL: http://www.linuxnetworks.de/doc/index.php/OpenDBX Source0: http://linuxnetworks.de/opendbx/download/%{name}-%{version}.tar.gz Patch0: opendbx-1.4.6-freetds-fix.patch Patch1: opendbx-1.4.6-doxyfile-fix.patch %if 0%{?fedora} || 0%{?rhel} <= 7 BuildRequires: gcc-c++ BuildRequires: gcc BuildRequires: sqlite2-devel %endif BuildRequires: mysql-devel, libpq-devel, sqlite-devel, firebird-devel, readline-devel BuildRequires: freetds-devel, ncurses-devel BuildRequires: doxygen, docbook2X, gettext %{?filter_setup: %filter_provides_in %{_libdir}/opendbx/lib.*backend\.so.*$ %filter_requires_in %{_libdir}/opendbx/lib.*backend\.so.*$ %filter_setup } %description Provides an abstraction layer to all supported databases with a single, clean and simple interface that leads to an elegant code design automatically. If you want your application to support different databases with little effort, this is definitively the right thing for you! %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package mysql Summary: MySQL backend - provides mysql support in %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description mysql Allows odbx_init with "mysql" as the backend parameter. %package postgresql Summary: PostgreSQL backend - provides postgresql support in %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description postgresql Allows odbx_init with "pgsql" as the backend parameter. %if 0%{?fedora} || 0%{?rhel} <= 7 %package sqlite2 Summary: SQLite 2 backend - provides sqlite2 support in %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description sqlite2 Allows odbx_init with "sqlite" as the backend parameter. %endif %package sqlite Summary: SQLite 3 backend - provides sqlite3 support in %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description sqlite Allows odbx_init with "sqlite3" as the backend parameter. %package firebird Summary: Firebird backend - provides firebird support in %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description firebird Allows odbx_init with "firebird" as the backend parameter. %package mssql Summary: MSSQL backend - provides mssql support in %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description mssql Allows odbx_init with "mssql" as the backend parameter. %package sybase Summary: Sybase backend - provides sybase support in %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description sybase Allows odbx_init with "sybase" as the backend parameter. %package utils Summary: Utility binaries for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description utils The %{name}-utils package provides the odbx-sql tool. %prep %setup -q %patch0 -p1 -b .freetds %patch1 -p1 -b .doxyfile # To fix Doxygen parsing issue ln -s api lib/%{name}/api.dox %build %if 0%{?fedora} || 0%{?rhel} <= 7 %configure --with-backends="mysql pgsql sqlite sqlite3 firebird mssql sybase" CPPFLAGS="-I%{_includedir}/mysql -I%{_includedir}/firebird" --disable-test --disable-static LDFLAGS="-L%{_libdir}/mysql" %else %configure --with-backends="mysql pgsql sqlite3 firebird mssql sybase" CPPFLAGS="-I%{_includedir}/mysql -I%{_includedir}/firebird" --disable-test --disable-static LDFLAGS="-L%{_libdir}/mysql" %endif sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %find_lang %{name} %find_lang %{name}-utils %ldconfig_scriptlets %files -f %{name}.lang %doc AUTHORS COPYING ChangeLog NEWS README %dir %{_libdir}/opendbx %{_libdir}/*.so.* %{_datadir}/opendbx/keywords %files devel %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_mandir}/man3/*.gz %files mysql %{_libdir}/opendbx/*mysql*.so %{_libdir}/opendbx/*mysql*.so.* %files postgresql %{_libdir}/opendbx/*pgsql*.so %{_libdir}/opendbx/*pgsql*.so.* %if 0%{?fedora} || 0%{?rhel} <= 7 %files sqlite2 %{_libdir}/opendbx/*sqlitebackend.so %{_libdir}/opendbx/*sqlitebackend.so.* %endif %files sqlite %{_libdir}/opendbx/*sqlite3backend.so %{_libdir}/opendbx/*sqlite3backend.so.* %files firebird %{_libdir}/opendbx/*firebird*.so %{_libdir}/opendbx/*firebird*.so.* %files mssql %{_libdir}/opendbx/*mssql*.so %{_libdir}/opendbx/*mssql*.so.* %files sybase %{_libdir}/opendbx/*sybase*.so %{_libdir}/opendbx/*sybase*.so.* %files utils -f %{name}-utils.lang %{_bindir}/odbx-sql %{_mandir}/man1/odbx-sql.1.gz %changelog * Tue Jul 28 2020 Fedora Release Engineering - 1.4.6-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.4.6-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.4.6-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 17 2019 Igor Gnatenko - 1.4.6-20 - Rebuild for readline 8.0 * Fri Feb 01 2019 Fedora Release Engineering - 1.4.6-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.4.6-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 21 2018 Karsten Hopp - 1.4.6-17 - make sqlite2 dependency depend on release * Thu Feb 08 2018 Fedora Release Engineering - 1.4.6-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 25 2018 Merlin Mathesius - 1.4.6-15 - Fix FBTFS by adding firebird header path to CPPFLAGS, since firebird-devel package no longer includes top level symlinks (BZ#1424018) * Thu Aug 03 2017 Fedora Release Engineering - 1.4.6-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.4.6-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jul 07 2017 Igor Gnatenko - 1.4.6-12 - Rebuild due to bug in RPM (RHBZ #1468476) * Sat Feb 11 2017 Fedora Release Engineering - 1.4.6-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 12 2017 Igor Gnatenko - 1.4.6-10 - Rebuild for readline 7.x * Thu Feb 04 2016 Fedora Release Engineering - 1.4.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.4.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 1.4.6-7 - Rebuilt for GCC 5 C++11 ABI change * Fri Apr 03 2015 Steve Jenkins - 1.4.6-6 - Removing percentage sign from 1.4.6-5 comments; it made EL6 choke * Fri Apr 03 2015 Steve Jenkins - 1.4.6-5 - Applied patch for Doxyfile.in issue (similar to Debian bug #759951) - Create symlink in prep to work around doxygen issue (Bugzilla #1208902) * Thu Apr 02 2015 Steve Jenkins - 1.4.6-4 - Added Group: info for package and sub-packages (for EL5 and EL6) - Added ncurses-devel to BuildRequires (for EL5) - Added BuildRoot (for EL5) * Sun Aug 17 2014 Fedora Release Engineering - 1.4.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.4.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat May 3 2014 Peter Robinson 1.4.6-1 - Update to 1.4.6 * Sat Aug 03 2013 Fedora Release Engineering - 1.4.5-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.4.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 1.4.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Feb 28 2012 Fedora Release Engineering - 1.4.5-8 - Rebuilt for c++ ABI breakage * Wed Jan 18 2012 Martin Preisler 1.4.5-7 - fixed compile error caused by freetds API break via a patch * Fri Jan 13 2012 Fedora Release Engineering - 1.4.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Oct 19 2011 Martin Preisler 1.4.5-5 - also filter requires for the backend packages * Mon Oct 17 2011 Martin Preisler 1.4.5-4 - only the base package owns {_libdir}/opendbx now * Wed Oct 12 2011 Martin Preisler 1.4.5-3 - the backends now explicity require opendbx of the same version - filter out provides of backend subpackages - use GPLv2+ as license for now because of the 2 GPLv2+ files * Tue Sep 20 2011 Martin Preisler 1.4.5-2 - added mysql, postgresql, sqlite2, sqlite3, firebird, mssql, sybase backends - moved readline dependency to utils subpackage * Mon Sep 19 2011 Martin Preisler 1.4.5-1 - initial package