summaryrefslogtreecommitdiff
path: root/support-files/mysql.spec.sh
diff options
context:
space:
mode:
authorJonathan Perkin <jonathan.perkin@oracle.com>2010-04-08 12:30:04 +0200
committerJonathan Perkin <jonathan.perkin@oracle.com>2010-04-08 12:30:04 +0200
commit37ca19e01fb652faaf5123d3b039b857fcf32e47 (patch)
treef7c4830e31c65f08fa53c0784f1369c65920c50c /support-files/mysql.spec.sh
parentc7ed531ce6345997edfb602e1e177ed0e7f26991 (diff)
downloadmariadb-git-37ca19e01fb652faaf5123d3b039b857fcf32e47.tar.gz
Revert library changes, let's just stick with keeping to existing
setup for now, leave large changes to later.
Diffstat (limited to 'support-files/mysql.spec.sh')
-rw-r--r--support-files/mysql.spec.sh25
1 files changed, 15 insertions, 10 deletions
diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh
index a7bd6fe8234..8dba4fb4277 100644
--- a/support-files/mysql.spec.sh
+++ b/support-files/mysql.spec.sh
@@ -406,8 +406,8 @@ then
if [ -f $libgcc ]
then
%define WITH_LIBGCC 1
- mkdir -p $RBR%{_libdir}
- install -m 644 $libgcc $RBR%{_libdir}/libmygcc.a
+ mkdir -p $RBR%{_libdir}/mysql
+ install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a
fi
fi
@@ -432,6 +432,11 @@ install -d $RBR%{_sbindir}
make DESTDIR=$RBR install
)
+# FIXME: at some point we should stop doing this and just install everything
+# FIXME: directly into %{_libdir}/mysql - perhaps at the same time as renaming
+# FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax
+mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/
+
# Install logrotate and autostart
install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
@@ -828,14 +833,14 @@ fi
%{_includedir}/mysql/*
%{_datadir}/aclocal/mysql.m4
%if %{WITH_LIBGCC}
-%{_libdir}/libmygcc.a
+%{_libdir}/mysql/libmygcc.a
%endif
-%{_libdir}/libmysqlclient.a
-%{_libdir}/libmysqlclient_r.a
-%{_libdir}/libmysqlservices.a
+%{_libdir}/mysql/libmysqlclient.a
+%{_libdir}/mysql/libmysqlclient_r.a
+%{_libdir}/mysql/libmysqlservices.a
%if %{CLUSTER_BUILD}
-%{_libdir}/libndbclient.a
-%{_libdir}/libndbclient.la
+%{_libdir}/mysql/libndbclient.a
+%{_libdir}/mysql/libndbclient.la
%endif
%files shared
@@ -864,8 +869,8 @@ fi
%files embedded
%defattr(-, root, root, 0755)
%attr(755, root, root) %{_bindir}/mysql_embedded
-%attr(644, root, root) %{_libdir}/libmysqld.a
-%attr(644, root, root) %{_libdir}/libmysqld-debug.a
+%attr(644, root, root) %{_libdir}/mysql/libmysqld.a
+%attr(644, root, root) %{_libdir}/mysql/libmysqld-debug.a
%endif
##############################################################################