0f7375
# ---------------------------------------------------
0f7375
#
0f7375
# READ ME: !!
0f7375
#
0f7375
#  This package is currently empty.
0f7375
#  The only thing it does, is that it pulls in correct dependencies of mariadb package
0f7375
#
0f7375
#  This is because in Fedora<=27 there were dependency issues, which lead to some package being
0f7375
#  non-installable.
0f7375
#  The fully functional package is present in F28 and later. It provides part fo the functionality
0f7375
#  of mariadb, which also has been updated to not conflict with the connector.
0f7375
#
0f7375
#  Please, in F<=27 use mariadb instead. In F>=28 use this package.
0f7375
#
0f7375
# ---------------------------------------------------
0f7375
4deac4
Name:           mariadb-connector-c
e231d8
Version:        3.0.2
af8dcf
Release:        14%{?dist}
4deac4
Summary:        The MariaDB Native Client library (C driver)
4deac4
Group:          Applications/Databases
4deac4
License:        LGPLv2+
a73d4a
Source:         https://downloads.mariadb.org/interstitial/connector-c-%{version}/mariadb-connector-c-%{version}-src.tar.gz
ac3f8b
Url:            http://mariadb.org/
470b18
0f7375
Requires:       mariadb-libs
f1c279
470b18
%description
470b18
The MariaDB Native Client library (C driver) is used to connect applications
470b18
developed in C/C++ to MariaDB and MySQL databases.
470b18
470b18
%package devel
8c7981
Summary:        Development files for mariadb-connector-c
4deac4
Group:          Development/Libraries
eba70a
Requires: %{name} = %{version}-%{release}
0f7375
Requires:       mariadb-devel
470b18
470b18
%description devel
470b18
Development files for mariadb-connector-c.
039fdb
Contains everything needed to build against libmariadb.so >=3 client library.
4deac4
4deac4
470b18
%prep
039fdb
470b18
%build
039fdb
470b18
%install
4deac4
af8dcf
# https://fedoraproject.org/wiki/Packaging:Directory_Replacement
af8dcf
%pretrans -p <lua> devel
af8dcf
path = "%{_libdir}/mariadb"
af8dcf
st = posix.stat(path)
af8dcf
if st and st.type == "link" then
af8dcf
  os.remove(path)
af8dcf
end
af8dcf
path = "%{_libdir}/mysql"
af8dcf
st = posix.stat(path)
af8dcf
if st and st.type == "link" then
af8dcf
  os.remove(path)
af8dcf
end
af8dcf
470b18
%files
470b18
e5dd63
%files devel
039fdb
470b18
%changelog
af8dcf
* Tue Oct 31 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-14
af8dcf
- Update scriplet dealing with symlinks as Guidelines suggests
af8dcf
  Related: #1501933
af8dcf
0f7375
* Mon Oct 30 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-13
0f7375
- For Fedora 27 and less, this package has been emptied. That should resolve
0f7375
  conflicts and requirements issues on those Fedora releases.
0f7375
039fdb
* Thu Oct 26 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-12
039fdb
- Move library directly to libdir, don't create any symlinks to directories
039fdb
- Update scritplets, so they only check for old symlinks to directories
039fdb
  Related: #1501933
039fdb
- Add 'Conflicts' with mariadb package on F<28
039fdb
  Related: #1506441
039fdb
949ef8
* Mon Oct 09 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-11
949ef8
- Fix ldconfig path
949ef8
d052d1
* Wed Oct 04 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-10
d052d1
- Add scriptlets to handle errors in /usr/lib64/ created by older versions
d052d1
  of mariadb and mariadb-connector-c pakages
d052d1
3f6ef0
* Wed Sep 20 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-9
264004
- Add symlinks so more packages will build succesfully
3f6ef0
- Change libdir from .../lib64/mariadb to mysql
3f6ef0
  Related: #1497234
264004
f1c279
* Wed Sep 13 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-7
f1c279
- Move header files to the same location, as they would be in mariadb-server
f1c279
- Add provides "libmysqlclient.so"
2d5799
43f97f
* Tue Sep 05 2017 Honza Horak <hhorak@redhat.com> - 3.0.2-5
43f97f
- Remove a symlink /usr/lib64/mysql that conflicts with mariadb-libs
43f97f
71fa31
* Mon Aug 14 2017 Honza Horak <hhorak@redhat.com> - 3.0.2-4
71fa31
- Add compatibility symlinks
71fa31
b3cfa7
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
b3cfa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b3cfa7
0ebca0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
0ebca0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0ebca0
e231d8
* Wed Jun 07 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-1
e231d8
- Rebase to version 3.0.2
e231d8
- Library libmariadb.so.3 introduced
e231d8
- Plugin Remote-IO enabled
e231d8
d4edcb
* Wed Jun 07 2017 Michal Schorm <mschorm@redhat.com> - 2.3.3-1
d4edcb
- Rebase to version 2.3.3
d4edcb
- Patch dropped, solved by upstream; https://jira.mariadb.org/browse/CONC-231
d4edcb
54a433
* Tue Feb 07 2017 Michal Schorm <mschorm@redhat.com> - 2.3.2-2
54a433
- Fix based on output from RPMLint in previous version
54a433
ac3f8b
* Tue Jan 24 2017 Michal Schorm <mschorm@redhat.com> - 2.3.2-1
54a433
- Rebase to version 2.3.2, patch needed (fixed by upstream in later versions)
ac3f8b
- Plugin dir moved from /libdir/plugin to /libdir/mariadb/plugin
ac3f8b
FaramosCZ 0fb978
* Thu Oct 27 2016 Michal Schorm <mschorm@redhat.com> - 2.3.1-3
FaramosCZ 0fb978
- Fixed ownership of {_libdir}/mariadb (this dir must me owned by package)
FaramosCZ 0fb978
- Fixed ownership of {_sysconfigdir}/ld.so.conf.d (this dir must me owned by package)
FaramosCZ 0fb978
- Fixed redundnace on lines with {_sysconfigdir}/ld.so.conf.d
FaramosCZ 0fb978
- Fixed ownership of {_bindir} (only one program is owned, so let's be accurate)
e5dd63
- Some comments added, for me and future maintainers
FaramosCZ 0fb978
4deac4
* Mon Oct 17 2016 Michal Schorm <mschorm@redhat.com> - 2.3.1-2
4deac4
- Fixed ownership of {_libdir}/mariadb directory and cosmetic specfile changes
4deac4
ca722d
* Tue Sep 13 2016 Michal Schorm <mschorm@redhat.com> - 2.3.1-1
ca722d
- Rebase to version 2.3.1
ca722d
fb5524
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
fb5524
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fb5524
eba70a
* Thu Jul 23 2015 Matej Mužila <mmuzila@redhat.com> - 2.1.0-1
eba70a
- Rebase to version 2.1.0
eba70a
5c93e8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3
5c93e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5c93e8
5665b1
* Wed Sep 24 2014 Matej Mužila <mmuzila@redhat.com> - 2.0.0-2
5665b1
- Fixed html IDs in documentation
5665b1
470b18
* Tue Aug 26 2014 Matej Mužila <mmuzila@redhat.com> - 2.0.0-2
470b18
- Initial version for 2.0.0