%bcond_with tests # run test suite
%bcond_with ndb # NDB is now a separate product, this here is broken, so disable it
%bcond_without ldap # LDAP auth support (requires MIT Kerberos)
+%bcond_without default # default version of MySQL (with -common and -devel)
%define mysqlversion 8.0
%define mysqlpriority 80
Summary: Common directories for MysSQL %{mysqlversion}
Summary(pl.UTF-8): Wspólne pliki i katalogi dla MySQL %{mysqlversion}
Group: Applicataion/Databases
-Requires: mysql-common >= %{version}-%{release}
+Requires: mysql-common >= 8.0.0
%description dirs
Common directories for MysSQL %{mysqlversion}
%defattr(644,root,root,755)
%{_datadir}/mysql/%{mysqlversion}/lang/charsets
+%if %{with default}
%files -n mysql-common
%defattr(644,root,root,755)
%attr(751,root,root) %dir %{_sysconfdir}/mysql
%attr(751,root,root) %dir /var/log/archive/mysql
%attr(751,root,root) %dir /var/log/mysqlrouter
%attr(751,root,root) %dir /var/log/archive/mysqlrouter
+%endif
%files dirs
%defattr(644,root,root,755)
%attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
%endif
+%if %{with default}
%files -n mysql-devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysql_config
%if %{with ndb}
%{_libdir}/libndbclient.a
%endif
+%endif
%if %{with ndb}
%files ndb