Package opendbx: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | %define _unpackaged_files_terminate_build 1 %define _stripped_files_terminate_build 1 %set_verify_elf_method strict %def_with mysql %def_with pgsql %def_with sqlite3 %def_without firebird Name: opendbx Version: 1.4.3 Release: alt3 Summary: Unified database layer with a clean and lightweight interface Summary(de): Bibliothek zum Zugriff auf Datenbanken über eine einheitliche Schnittstelle License: LGPL Group: Development/Databases Url: http://www.linuxnetworks.de/doc/index.php/OpenDBX # http://www.linuxnetworks.de/opendbx/download/%name-%version.tar.gz Source: %name-%version.tar Patch: %name-1.4.0-alt-sqlite3-no-threadsafe.patch # Automatically added by buildreq on Wed Apr 08 2009 BuildRequires: gcc-c++ libncurses-devel libreadline-devel %description OpenDBX provides a clean and lightweight API for interfacing native relational database APIs in a consistent way. By using the OpenDBX API you don't have to adapt your program to the different database APIs by yourself. %description -l de OpenDBX ist eine schlanke und einfach zu verwendende Bibliothek, die es ermöglicht verschiedene Datenbankserver über eine konsistente Schnittstelle anzusprechen. %package devel Summary: OpenDBX development headers Summary(de): Entwicklungsschnittstellen für OpenDBX Group: Development/Databases Requires: %name = %EVR Requires: pkgconfig %{?_with_mysql:%name-mysql} %{?_with_pgsql:%name-pgsql} %{?_with_sqlite3:%name-sqlite3} %{?_with_firebird:%name-firebird} %description devel Header files for the OpenDBX database abstraction library %description -l de devel Schnittstellen der OpenDBX Datenbankbibliothek zur Softwareentwicklung %if_with mysql %package mysql Summary: MySQL backend for OpenDBX Summary(de): MySQL Unterstützung für OpenDBX Group: Development/Databases Requires: %name = %EVR BuildRequires: mysql-devel %description mysql MySQL backend for the OpenDBX database abstraction library %description -l de mysql MySQL Unterstützung für die OpenDBX Datenbankbibliothek %endif %if_with pgsql %package pgsql Summary: PostgreSQL backend for OpenDBX Summary(de): PostgreSQL Unterstützung für OpenDBX Group: Development/Databases Requires: %name = %EVR BuildRequires: postgresql-devel %description pgsql PostgreSQL backend for the OpenDBX database abstraction library %description -l de pgsql PostgreSQL Unterstützung für die OpenDBX Datenbankbibliothek %endif %if_with sqlite3 %package sqlite3 Summary: SQLite3 backend for OpenDBX Summary(de): SQLite3 Unterstützung für OpenDBX Group: Development/Databases Requires: %name = %EVR BuildRequires: libsqlite3-devel %description sqlite3 SQLite3 backend for the OpenDBX database abstraction library %description -l de sqlite3 Sqlite3 Unterstützung für die OpenDBX Datenbankbibliothek %endif %if_with firebird %package firebird Summary: Firebird/Interbase backend for OpenDBX Summary(de): Firebird/Interbase Unterstützung für OpenDBX Group: Development/Databases Requires: %name = %EVR BuildRequires: firebird-devel %description firebird Firebird/Interbase backend for the OpenDBX database abstraction library %description -l de firebird Firebird/Interbase Unterstützung für die OpenDBX Datenbankbibliothek %endif %prep %setup -q %patch -p0 %build %if_with mysql %add_optflags "-I%_includedir/mysql" %endif %if_with pgsql %add_optflags "-I%_includedir/pgsql" %endif %add_optflags -std=c++14 %undefine __libtoolize %configure --with-pic --disable-static --with-backends="\ %{?_with_mysql:mysql }\ %{?_with_pgsql:pgsql }\ %{?_with_sqlite3:sqlite3 }\ %{?_with_firebird:firebird }\ " sed -ri 's/^(hardcode_libdir_flag_spec|runpath_var)=.*/\1=/' libtool %make_build -j1 %install %makeinstall rm %buildroot%_libdir/%name/*.la %find_lang --all %name %files -f %name.lang %_bindir/* %dir %_libdir/%name %_libdir/*.so.* %_datadir/%name %doc AUTHORS ChangeLog NEWS README TODO %files devel %_includedir/odbx.h %_includedir/%name %_libdir/*.so %_pkgconfigdir/%name.pc %_pkgconfigdir/opendbxplus.pc %if_with mysql %files mysql %_libdir/%name/libmysqlbackend.so* %endif %if_with pgsql %files pgsql %_libdir/%name/libpgsqlbackend.so* %endif %if_with sqlite3 %files sqlite3 %_libdir/%name/libsqlite3backend.so* %endif %if_with firebird %files firebird %_libdir/%name/libfirebirdbackend.so* %endif %changelog * Tue Oct 12 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 1.4.3-alt3 - Fixed build with gcc-11. * Wed Feb 06 2019 Grigory Ustinov <grenka@altlinux.org> 1.4.3-alt2.2.qa2 - Rebuild with libreadline7. * Fri Apr 08 2016 Gleb F-Malinovskiy (qa) <qa_glebfm@altlinux.org> 1.4.3-alt1.2.qa2 - Rebuilt for gcc5 C++11 ABI. * Sun Apr 14 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 1.4.3-alt1.2.qa1 - NMU: rebuilt with libmysqlclient.so.18. * Fri Feb 10 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.3-alt1.2 - Removed bad RPATH * Wed Nov 25 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 1.4.3-alt1.1 - build into Sisyphus * Mon Sep 28 2009 Grigory Batalov <bga@altlinux.ru> 1.4.3-alt1 - New upstream release. * Wed Apr 08 2009 Grigory Batalov <bga@altlinux.ru> 1.4.0-alt0.M40.1 - New upstream release. - Built for ALT Linux branch 4.0. * Wed Feb 27 2008 - mge@arcor.de 1.3.8-26 - build in OBS with FreeTDS * Wed Jan 31 2007 Norbert Sendetzky <norbert@linuxnetworks.de> 1.2.1-1 - Added German summary and descriptions - Disabled static library builds and removed libtool files - Added ldconfig call in post and postun sections - Added gettext and pkgconfig as requirements - Replaced language file handling with find_lang macro - Used optflags macro instead of hard coded compiler flags - Used macro style consistently - Corrected mail addresses - Removed oracle sections - Fixed _without_pgqql - Minor changes * Sat Dec 09 2006 Norbert Sendetzky <norbert@linuxnetworks.de> 1.1.8-1 - Added mssql, sybase and oracle backend * Tue Jun 13 2006 Kees Monshouwer <mind@monshouwer.com> 1.1.0-2 - Fixed a few minor problems - Added conditional build support - Added firefird and freetds backend * Mon Jun 12 2006 Kees Monshouwer <mind@monshouwer.com> 1.1.0-1 - Initial build for CentOS 4.3 |