FaramosCZ 56b9bda
Name:           mariadb-connector-odbc
e42ef36
Version:        3.0.3
e42ef36
Release:        1%{?dist}
FaramosCZ 56b9bda
Summary:        The MariaDB Native Client library (ODBC driver)
FaramosCZ 56b9bda
License:        LGPLv2+
e42ef36
Source:         https://downloads.mariadb.org/f/connector-odbc-%{version}/%{name}-%{version}-ga-src.tar.gz
FaramosCZ 56b9bda
Url:            https://mariadb.org/en/
807be88
b2b1687
BuildRequires:  cmake unixODBC-devel gcc-c++
0debdc6
BuildRequires:  mariadb-connector-c-devel >= 3.0.2
FaramosCZ 56b9bda
FaramosCZ 56b9bda
%description
FaramosCZ 56b9bda
MariaDB Connector/ODBC is a standardized, LGPL licensed database driver using
FaramosCZ 56b9bda
the industry standard Open Database Connectivity (ODBC) API. It supports ODBC
FaramosCZ 56b9bda
Standard 3.5, can be used as a drop-in replacement for MySQL Connector/ODBC,
FaramosCZ 56b9bda
and it supports both Unicode and ANSI modes.
FaramosCZ 56b9bda
FaramosCZ 56b9bda
%prep
e42ef36
%setup -q -n %{name}-%{version}-ga-src
FaramosCZ 56b9bda
FaramosCZ 56b9bda
%build
e4855a2
%cmake ./ -DMARIADB_LINK_DYNAMIC="%{_libdir}/mariadb/libmariadb.so"
FaramosCZ 56b9bda
FaramosCZ 56b9bda
%install
e42ef36
%make_install
FaramosCZ 56b9bda
e42ef36
rm %{buildroot}%{_datadir}/doc/mariadb_connector_odbc/COPYING
e42ef36
rm %{buildroot}%{_datadir}/doc/mariadb_connector_odbc/README
FaramosCZ 56b9bda
0f7d2f8
# Can be removed on F27 EOL
0f7d2f8
%ldconfig_scriptlets
FaramosCZ 56b9bda
FaramosCZ 56b9bda
%files
FaramosCZ 56b9bda
%license COPYING
FaramosCZ 56b9bda
%doc     README
e42ef36
df5ba1a
# This is 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.
e42ef36
%{_libdir}/libmaodbc.so
FaramosCZ 56b9bda
FaramosCZ 56b9bda
FaramosCZ 56b9bda
FaramosCZ 56b9bda
%changelog
e42ef36
* Sat Feb 10 2018 Michal Schorm <mschorm@redhat.com> - 3.0.3-1
e42ef36
- Rebase to 3.0.3 version
e42ef36
- Use more macros
e42ef36
9286272
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
9286272
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9286272
0f7d2f8
* Tue Jan 30 2018 Michal Schorm <mschorm@redhat.com> - 3.0.2-1
0f7d2f8
- Rebase to 3.0.2 version
0f7d2f8
- Update ldconfig scriptlets
0f7d2f8
- Remove Group tag
0f7d2f8
e4855a2
* Thu Sep 07 2017 Augusto Caringi <acaringi@fedoraproject.org> - 3.0.1-2
e4855a2
- Update to top of 3.0 branch from GitHub 860e7f8b754f (version supporting dynamic linking)
e4855a2
- Source tarball composed from upstream GitHub, because the latest version solves the issues
e4855a2
  with dynamic linking.
e4855a2
0debdc6
* Mon Sep 04 2017 Augusto Caringi <acaringi@fedoraproject.org> - 3.0.1-1
0debdc6
- Update to version 3.0.1
0debdc6
80f2811
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.14-3
80f2811
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
80f2811
29da15e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.14-2
29da15e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
29da15e
df5ba1a
* Tue May 16 2017 Michal Schorm <mschorm@redhat.com> - 2.0.14-1
df5ba1a
- Update to version 2.0.14 and check, if blockers still apply. They do.
df5ba1a
- Upstream issue created
df5ba1a
2df30a3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.12-2
2df30a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2df30a3
FaramosCZ 56b9bda
* Wed Oct 19 2016 Michal Schorm <mschorm@redhat.com> - 2.0.12-1
FaramosCZ 56b9bda
- Initial version for 2.0.12