From f7fa2205bf1c7a657eab8bddf1814cf5fa158c45 Mon Sep 17 00:00:00 2001 From: FaramosCZ Date: Oct 24 2016 10:05:34 +0000 Subject: Initial version for 2.0.12 Michal Schorm --- diff --git a/.gitignore b/.gitignore index e69de29..53177d2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mariadb-connector-odbc-2.0.12-ga-src.tar.gz diff --git a/mariadb-connector-odbc.spec b/mariadb-connector-odbc.spec new file mode 100644 index 0000000..0478184 --- /dev/null +++ b/mariadb-connector-odbc.spec @@ -0,0 +1,50 @@ +Name: mariadb-connector-odbc +Version: 2.0.12 +Release: 1%{?dist} +Summary: The MariaDB Native Client library (ODBC driver) +Group: Applications/Databases +License: LGPLv2+ +Source: http://mirror.hosting90.cz/mariadb/connector-odbc-%{version}/source/mariadb-connector-odbc-%{version}-ga-src.tar.gz +Url: https://mariadb.org/en/ +BuildRequires: cmake unixODBC-devel +BuildRequires: mariadb-connector-c-devel >= 2.3.1 + +# Set Cmake to build against dynamic library with parameter "-DMARIADB_DYNAMIC_LIB=..." +Patch: CMakeLists.txt.patch + +%description +MariaDB Connector/ODBC is a standardized, LGPL licensed database driver using +the industry standard Open Database Connectivity (ODBC) API. It supports ODBC +Standard 3.5, can be used as a drop-in replacement for MySQL Connector/ODBC, +and it supports both Unicode and ANSI modes. + + + +%prep +%setup -q -n mariadb-connector-odbc-%{version}-ga-src +%patch -p1 -b .backup + +%build +%cmake ./ -DMARIADB_DYNAMIC_LIB="%{_libdir}/mariadb/libmariadb.so" + +%install +%make_install DESTDIR=$RPM_BUILD_ROOT + +rm /$RPM_BUILD_ROOT/usr/share/doc/mariadb_connector_odbc/COPYING +rm /$RPM_BUILD_ROOT/usr/share/doc/mariadb_connector_odbc/README + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%license COPYING +%doc README +%{_libdir}/libmaodbc.so +# This id unixODBC plugin. It resides directly in {libdir} to be consistent with the rest of unixODBC plugins. Since it is plugin, it doesn´t need to be versioned. + + + +%changelog +* Wed Oct 19 2016 Michal Schorm - 2.0.12-1 +- Initial version for 2.0.12 diff --git a/sources b/sources index e69de29..1a5cc52 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +24ee4d2401e32f9d5973104aaa67f811 mariadb-connector-odbc-2.0.12-ga-src.tar.gz