Add symlinks so more packages will build succesfully
This should be reconsidered later, with mariadb-server version approximatelly about 10.2.10 and CONC/C version about 3.0.3.
This commit is contained in:
parent
f1c2799361
commit
26400422d8
@ -1,6 +1,6 @@
|
||||
Name: mariadb-connector-c
|
||||
Version: 3.0.2
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: The MariaDB Native Client library (C driver)
|
||||
Group: Applications/Databases
|
||||
License: LGPLv2+
|
||||
@ -77,6 +77,8 @@ rm %{buildroot}%{_libdir}/mariadb/libmysqlclient_r.a
|
||||
|
||||
# add a compatibility symlink
|
||||
ln -s mariadb_config %{buildroot}%{_bindir}/mysql_config
|
||||
ln -s mariadb %{buildroot}%{_libdir}/mysql
|
||||
ln -s mariadb_version.h %{buildroot}%{_includedir}/mysql_version.h
|
||||
|
||||
# move header files to the same location, as they would be in mariadb-server (10.2.8)
|
||||
# which means from /usr/include to /usr/include/mysql
|
||||
@ -91,7 +93,8 @@ mv %{buildroot}%{_includedir}/temporary %{buildroot}%{_includedir}/mysql
|
||||
|
||||
%files
|
||||
%{_libdir}/mariadb/libmariadb.so.*
|
||||
%{_libdir}/mariadb/plugin
|
||||
%dir %{_libdir}/mariadb/plugin
|
||||
%{_libdir}/mariadb/plugin/*
|
||||
|
||||
# fix of RPATH. If there is a set config file, libdir/mariadb/ is added to search for libraries
|
||||
%config(noreplace) %{_sysconfdir}/ld.so.conf.d
|
||||
@ -102,11 +105,12 @@ mv %{buildroot}%{_includedir}/temporary %{buildroot}%{_includedir}/mysql
|
||||
|
||||
|
||||
%files devel
|
||||
# program which provides info for compiling programs with this library
|
||||
# program which provides compiler info for programs compiling with this library
|
||||
%{_bindir}/mariadb_config
|
||||
%{_bindir}/mysql_config
|
||||
|
||||
%dir %{_libdir}/mariadb
|
||||
%{_libdir}/mysql
|
||||
%{_libdir}/mariadb/libmariadb.so
|
||||
%{_libdir}/mariadb/libmysqlclient.so
|
||||
%{_libdir}/mariadb/libmysqlclient_r.so
|
||||
@ -117,6 +121,9 @@ mv %{buildroot}%{_includedir}/temporary %{buildroot}%{_includedir}/mysql
|
||||
%license COPYING.LIB
|
||||
|
||||
%changelog
|
||||
* Wed Sep 20 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-8
|
||||
- Add symlinks so more packages will build succesfully
|
||||
|
||||
* Wed Sep 13 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-7
|
||||
- Move header files to the same location, as they would be in mariadb-server
|
||||
- Add provides "libmysqlclient.so"
|
||||
|
Loading…
Reference in New Issue
Block a user