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