X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=mysql.spec;h=21183215820bb0e00627b71421a42e7b55e658ae;hb=97e12482fabfccbdf4c8952317b1219b6419f15e;hp=0c59b0f431cb8d11be54a681f973677520ff1a36;hpb=4256f5531a4ed577c755dd49d69145f5ec52f7cf;p=packages%2Fmysql.git diff --git a/mysql.spec b/mysql.spec index 0c59b0f..2118321 100644 --- a/mysql.spec +++ b/mysql.spec @@ -23,7 +23,7 @@ %bcond_with tests # FIXME: don't run correctly %bcond_with ndb # NDB is now a separate product, this here is broken, so disable it -%define rel 1 +%define rel 4 %define percona_rel 68.0 %include /usr/lib/rpm/macros.perl Summary: MySQL: a very fast and reliable SQL database engine @@ -62,8 +62,10 @@ Patch1: %{name}-versioning.patch Patch2: %{name}hotcopy-5.0-5.5.patch Patch3: bug-67402.patch Patch4: %{name}-no-default-secure-auth.patch +Patch5: %{name}-system-libhsclient.patch # from fedora Patch6: %{name}-system-users.patch +Patch7: bug-73834.patch Patch9: %{name}-build.patch Patch11: %{name}-upgrade.patch @@ -89,6 +91,7 @@ BuildRequires: libstdc++4-devel >= 5:4.0 BuildRequires: libstdc++-devel >= 5:4.0 %endif BuildRequires: automake +BuildRequires: libhsclient-devel %{?with_tcpd:BuildRequires: libwrap-devel} BuildRequires: ncurses-devel >= 4.2 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} @@ -508,8 +511,9 @@ mv sphinx-*/mysqlse storage/sphinx %patch2 -p1 %patch3 -p1 %patch4 -p1 - +%patch5 -p1 %patch6 -p1 +%patch7 -p1 %patch9 -p1 %patch11 -p1 @@ -525,8 +529,8 @@ mv sphinx-*/mysqlse storage/sphinx %patch26 -p1 # to get these files rebuild -[ -f sql/sql_yacc.cc ] && rm sql/sql_yacc.cc -[ -f sql/sql_yacc.h ] && rm sql/sql_yacc.h +[ -f sql/sql_yacc.cc ] && %{__rm} sql/sql_yacc.cc +[ -f sql/sql_yacc.h ] && %{__rm} sql/sql_yacc.h # map has more sane versioning that default "global everything" in ver.in cp -p libmysql/libmysql.map libmysql/libmysql.ver.in @@ -545,7 +549,7 @@ cd build %{expand:%%define __cpp %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')} %endif -%cmake \ +%cmake .. \ -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \ -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \ -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \ @@ -556,7 +560,7 @@ cd build -DINSTALL_LAYOUT=RPM \ -DINSTALL_LIBDIR=%{_lib} \ -DINSTALL_MYSQLTESTDIR_RPM="" \ - -DINSTALL_PLUGINDIR=%{_libdir}/%{name}/plugin \ + -DINSTALL_PLUGINDIR=%{_lib}/%{name}/plugin \ -DINSTALL_SQLBENCHDIR=%{_datadir} \ -DINSTALL_SUPPORTFILESDIR=share/%{_orgname}-support \ -DINSTALL_MYSQLSHAREDIR=share/%{_orgname} \ @@ -575,8 +579,7 @@ cd build -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \ %endif -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \ - -DWITH_ZLIB=system \ - .. + -DWITH_ZLIB=system %{__make} @@ -915,7 +918,7 @@ done #%attr(755,root,root) %{_libdir}/%{name}/plugin/ha_archive.so #%attr(755,root,root) %{_libdir}/%{name}/plugin/ha_blackhole.so #%attr(755,root,root) %{_libdir}/%{name}/plugin/ha_federated.so -#%attr(755,root,root) %{_libdir}/%{name}/plugin/handlersocket.so +%attr(755,root,root) %{_libdir}/%{name}/plugin/handlersocket.so %attr(755,root,root) %{_libdir}/%{name}/plugin/libfnv1a_udf.so %attr(755,root,root) %{_libdir}/%{name}/plugin/libfnv_udf.so %attr(755,root,root) %{_libdir}/%{name}/plugin/libmurmur_udf.so