|
|
4deac40 |
Name: mariadb-connector-c
|
|
|
e231d8c |
Version: 3.0.2
|
|
|
d4edcb7 |
Release: 1%{?dist}
|
|
|
4deac40 |
Summary: The MariaDB Native Client library (C driver)
|
|
|
4deac40 |
Group: Applications/Databases
|
|
|
4deac40 |
License: LGPLv2+
|
|
|
a73d4a5 |
Source: https://downloads.mariadb.org/interstitial/connector-c-%{version}/mariadb-connector-c-%{version}-src.tar.gz
|
|
|
ac3f8b7 |
Url: http://mariadb.org/
|
|
|
e231d8c |
# Informations: https://mariadb.com/kb/en/mariadb/building-connectorc-from-source/
|
|
|
e231d8c |
|
|
|
4deac40 |
BuildRequires: zlib-devel cmake openssl-devel
|
|
|
e231d8c |
# Remote-IO plugin
|
|
|
e231d8c |
BuildRequires: libcurl-devel
|
|
|
470b182 |
|
|
|
ab4d524 |
# RPMLint issues of 2.3.2 release tracked on the upstream JIRA:
|
|
|
ab4d524 |
# https://jira.mariadb.org/browse/CONC-232
|
|
|
ab4d524 |
# https://jira.mariadb.org/browse/CONC-234
|
|
|
ab4d524 |
|
|
|
e231d8c |
# Patch for "-DINSTALL_LAYOUT=RPM"
|
|
|
e231d8c |
Patch1: cmake.patch
|
|
|
e231d8c |
|
|
|
470b182 |
%description
|
|
|
470b182 |
The MariaDB Native Client library (C driver) is used to connect applications
|
|
|
470b182 |
developed in C/C++ to MariaDB and MySQL databases.
|
|
|
470b182 |
|
|
|
470b182 |
%package devel
|
|
|
8c79813 |
Summary: Development files for mariadb-connector-c
|
|
|
4deac40 |
Group: Development/Libraries
|
|
|
4deac40 |
BuildRequires: xmlto
|
|
|
eba70a7 |
Requires: %{name} = %{version}-%{release}
|
|
|
470b182 |
|
|
|
470b182 |
%description devel
|
|
|
470b182 |
Development files for mariadb-connector-c.
|
|
|
470b182 |
|
|
|
4deac40 |
|
|
|
4deac40 |
|
|
|
470b182 |
%prep
|
|
|
eba70a7 |
%setup -q -n mariadb-connector-c-%{version}-src
|
|
|
e231d8c |
%patch1 -p1
|
|
|
470b182 |
|
|
|
470b182 |
%build
|
|
|
e231d8c |
%cmake . \
|
|
|
e231d8c |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
e231d8c |
-DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock \
|
|
|
e231d8c |
-DWITH_EXTERNAL_ZLIB=ON \
|
|
|
e231d8c |
-DCMAKE_SYSTEM_PROCESSOR="%{_arch}" \
|
|
|
e231d8c |
-DPLUGIN_INSTALL_DIR="%{_libdir}/mariadb/plugin" \
|
|
|
e231d8c |
-DWITH_MYSQLCOMPAT=ON \
|
|
|
e231d8c |
-DINSTALL_LAYOUT=RPM \
|
|
|
e231d8c |
-DWITH_SSL=OPENSSL \
|
|
|
e231d8c |
|
|
|
e231d8c |
# Causes build errors
|
|
|
e231d8c |
# -DAUTH_NATIVE=DYNAMIC
|
|
|
470b182 |
|
|
|
470b182 |
make %{?_smp_mflags}
|
|
|
470b182 |
|
|
|
470b182 |
%install
|
|
|
ab4d524 |
make install DESTDIR=%{buildroot}
|
|
|
ab4d524 |
|
|
|
ab4d524 |
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
|
|
ab4d524 |
echo "%{_libdir}/mariadb" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
ab4d524 |
|
|
|
e231d8c |
# static linked libraries and symlinks to them
|
|
|
e231d8c |
rm %{buildroot}%{_libdir}/mariadb/libmariadbclient.a
|
|
|
e231d8c |
rm %{buildroot}%{_libdir}/mariadb/libmysqlclient.a
|
|
|
e231d8c |
rm %{buildroot}%{_libdir}/mariadb/libmysqlclient_r.a
|
|
|
ab4d524 |
|
|
|
ab4d524 |
|
|
|
470b182 |
|
|
|
4deac40 |
%post -p /sbin/ldconfig
|
|
|
4deac40 |
%postun -p /sbin/ldconfig
|
|
|
4deac40 |
|
|
|
4deac40 |
|
|
|
4deac40 |
|
|
|
470b182 |
%files
|
|
|
e231d8c |
%{_libdir}/mariadb/libmariadb.so.*
|
|
|
ac3f8b7 |
%{_libdir}/mariadb/plugin
|
|
|
8c79813 |
|
|
|
e5dd63c |
# fix of RPATH. If there is a set config file, libdir/mariadb/ is added to search for libraries
|
|
|
54a433a |
%config(noreplace) %{_sysconfdir}/ld.so.conf.d
|
|
|
54a433a |
|
|
|
54a433a |
%doc README
|
|
|
54a433a |
%license COPYING.LIB
|
|
|
54a433a |
|
|
|
54a433a |
|
|
|
470b182 |
|
|
|
e5dd63c |
%files devel
|
|
|
e5dd63c |
# program which provides info for compiling programs with this library
|
|
|
e5dd63c |
%{_bindir}/mariadb_config
|
|
|
8c79813 |
|
|
|
8c79813 |
%{_libdir}/mariadb
|
|
|
e231d8c |
%exclude %{_libdir}/mariadb/libmariadb.so.*
|
|
|
8c79813 |
%exclude %{_libdir}/mariadb/plugin
|
|
|
8c79813 |
|
|
|
e5dd63c |
# header files
|
|
|
e231d8c |
%{_includedir}/*
|
|
|
4deac40 |
|
|
|
54a433a |
%license COPYING.LIB
|
|
|
470b182 |
|
|
|
470b182 |
%changelog
|
|
|
e231d8c |
* Wed Jun 07 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-1
|
|
|
e231d8c |
- Rebase to version 3.0.2
|
|
|
e231d8c |
- Library libmariadb.so.3 introduced
|
|
|
e231d8c |
- Plugin Remote-IO enabled
|
|
|
e231d8c |
|
|
|
d4edcb7 |
* Wed Jun 07 2017 Michal Schorm <mschorm@redhat.com> - 2.3.3-1
|
|
|
d4edcb7 |
- Rebase to version 2.3.3
|
|
|
d4edcb7 |
- Patch dropped, solved by upstream; https://jira.mariadb.org/browse/CONC-231
|
|
|
d4edcb7 |
|
|
|
54a433a |
* Tue Feb 07 2017 Michal Schorm <mschorm@redhat.com> - 2.3.2-2
|
|
|
54a433a |
- Fix based on output from RPMLint in previous version
|
|
|
54a433a |
|
|
|
ac3f8b7 |
* Tue Jan 24 2017 Michal Schorm <mschorm@redhat.com> - 2.3.2-1
|
|
|
54a433a |
- Rebase to version 2.3.2, patch needed (fixed by upstream in later versions)
|
|
|
ac3f8b7 |
- Plugin dir moved from /libdir/plugin to /libdir/mariadb/plugin
|
|
|
ac3f8b7 |
|
|
FaramosCZ |
0fb9789 |
* Thu Oct 27 2016 Michal Schorm <mschorm@redhat.com> - 2.3.1-3
|
|
FaramosCZ |
0fb9789 |
- Fixed ownership of {_libdir}/mariadb (this dir must me owned by package)
|
|
FaramosCZ |
0fb9789 |
- Fixed ownership of {_sysconfigdir}/ld.so.conf.d (this dir must me owned by package)
|
|
FaramosCZ |
0fb9789 |
- Fixed redundnace on lines with {_sysconfigdir}/ld.so.conf.d
|
|
FaramosCZ |
0fb9789 |
- Fixed ownership of {_bindir} (only one program is owned, so let's be accurate)
|
|
|
e5dd63c |
- Some comments added, for me and future maintainers
|
|
FaramosCZ |
0fb9789 |
|
|
|
4deac40 |
* Mon Oct 17 2016 Michal Schorm <mschorm@redhat.com> - 2.3.1-2
|
|
|
4deac40 |
- Fixed ownership of {_libdir}/mariadb directory and cosmetic specfile changes
|
|
|
4deac40 |
|
|
|
ca722dc |
* Tue Sep 13 2016 Michal Schorm <mschorm@redhat.com> - 2.3.1-1
|
|
|
ca722dc |
- Rebase to version 2.3.1
|
|
|
ca722dc |
|
|
|
fb55243 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
|
|
fb55243 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
fb55243 |
|
|
|
eba70a7 |
* Thu Jul 23 2015 Matej Mužila <mmuzila@redhat.com> - 2.1.0-1
|
|
|
eba70a7 |
- Rebase to version 2.1.0
|
|
|
eba70a7 |
|
|
|
5c93e84 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3
|
|
|
5c93e84 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
5c93e84 |
|
|
|
5665b17 |
* Wed Sep 24 2014 Matej Mužila <mmuzila@redhat.com> - 2.0.0-2
|
|
|
5665b17 |
- Fixed html IDs in documentation
|
|
|
5665b17 |
|
|
|
470b182 |
* Tue Aug 26 2014 Matej Mužila <mmuzila@redhat.com> - 2.0.0-2
|
|
|
470b182 |
- Initial version for 2.0.0
|