49 |
|
|
50 |
%define mirror http://ftp.osuosl.org/pub/mariadb |
%define mirror http://ftp.osuosl.org/pub/mariadb |
51 |
|
|
52 |
|
%define boostver 1_53_0 |
53 |
|
|
54 |
%define muser mysql |
%define muser mysql |
55 |
Summary: A very fast and reliable SQL database engine |
Summary: A very fast and reliable SQL database engine |
56 |
Name: mariadb |
Name: mariadb |
57 |
Version: 5.5.32 |
Version: 5.5.32 |
58 |
Release: %mkrel 2 |
Release: %mkrel 1 |
59 |
Group: Databases |
Group: Databases |
60 |
License: GPLv2 with exceptions |
License: GPLv2 with exceptions |
61 |
URL: http://mariadb.org/ |
URL: http://mariadb.org/ |
118 |
BuildRequires: texinfo |
BuildRequires: texinfo |
119 |
BuildRequires: xfs-devel |
BuildRequires: xfs-devel |
120 |
BuildRequires: zlib-devel |
BuildRequires: zlib-devel |
|
BuildRequires: boost-devel |
|
121 |
BuildRequires: libaio-devel |
BuildRequires: libaio-devel |
122 |
BuildRequires: pam-devel |
BuildRequires: pam-devel |
123 |
BuildConflicts: edit-devel |
BuildConflicts: edit-devel |
124 |
|
|
125 |
|
## internal BOOST sources |
126 |
|
Source200: http://download.sourceforge.net/boost/boost_%{boostver}.tar.bz2 |
127 |
|
# https://svn.boost.org/trac/boost/ticket/6150 |
128 |
|
Patch204: boost-1.50.0-fix-non-utf8-files.patch |
129 |
|
# https://bugzilla.redhat.com/show_bug.cgi?id=756005 |
130 |
|
# https://svn.boost.org/trac/boost/ticket/6131 |
131 |
|
Patch207: boost-1.50.0-foreach.patch |
132 |
|
# https://bugzilla.redhat.com/show_bug.cgi?id=783660 |
133 |
|
# https://svn.boost.org/trac/boost/ticket/6459 fixed |
134 |
|
Patch210: boost-1.50.0-long-double-1.patch |
135 |
|
# https://bugzilla.redhat.com/show_bug.cgi?id=828856 |
136 |
|
# https://bugzilla.redhat.com/show_bug.cgi?id=828857 |
137 |
|
Patch215: boost-1.50.0-pool.patch |
138 |
|
|
139 |
%description |
%description |
140 |
The MariaDB software delivers a very fast, multi-threaded, multi-user, and |
The MariaDB software delivers a very fast, multi-threaded, multi-user, and |
141 |
robust SQL (Structured Query Language) database server. MariaDB Server is |
robust SQL (Structured Query Language) database server. MariaDB Server is |
349 |
|
|
350 |
%prep |
%prep |
351 |
%setup -q |
%setup -q |
352 |
%apply_patches |
%patch1 -p1 |
353 |
|
%patch3 -p1 |
354 |
|
%patch4 -p1 |
355 |
|
%patch101 -p1 |
356 |
|
%patch106 -p1 |
357 |
|
%patch107 -p1 |
358 |
|
%patch120 -p1 |
359 |
|
%patch132 -p1 |
360 |
|
|
361 |
mkdir -p Mageia |
mkdir -p Mageia |
362 |
cp %{SOURCE2} Mageia/mysqld.sysconfig |
cp %{SOURCE2} Mageia/mysqld.sysconfig |
387 |
# fix distribution name |
# fix distribution name |
388 |
sed -i 's/Source distribution/%{_vendor} MariaDB Server/' mysql-test/suite/percona/innodb_sys_index.result |
sed -i 's/Source distribution/%{_vendor} MariaDB Server/' mysql-test/suite/percona/innodb_sys_index.result |
389 |
|
|
390 |
|
## prep internal BOOST |
391 |
|
%setup -q -D -T -b 200 |
392 |
|
cd ../boost_%{boostver} |
393 |
|
%patch204 -p1 |
394 |
|
%patch207 -p2 |
395 |
|
%patch210 -p1 |
396 |
|
%patch215 -p0 |
397 |
|
cd .. |
398 |
|
|
399 |
%build |
%build |
400 |
|
|
401 |
|
pushd ../boost_%{boostver} |
402 |
|
## build internal BOOST |
403 |
|
%define gcc_ver %(rpm -q --queryformat="%%{VERSION}" gcc) |
404 |
|
cat > ./tools/build/v2/user-config.jam << EOF |
405 |
|
using gcc : %gcc_ver : gcc : <cflags>"%optflags -I%{_includedir}/python%{py_ver}" <cxxflags>"%optflags -I%{_includedir}/python%{py_ver}" <linkflags>"%ldflags" ; |
406 |
|
using python : %py_ver : %{_bindir}/python%{py_ver} : %{_includedir}/python%{py_ver} : %{_libdir} ; |
407 |
|
EOF |
408 |
|
./bootstrap.sh --with-toolset=gcc --with-icu --prefix=%{_prefix} --libdir=%{_libdir} |
409 |
|
./b2 -d+2 -q %{?_smp_mflags} --without-mpi \ |
410 |
|
--prefix=%{_prefix} --libdir=%{_libdir} \ |
411 |
|
linkflags="%{ldflags} -lpython%{py_ver} -lstdc++ -lm" \ |
412 |
|
-sHAVE_ICU=1 \ |
413 |
|
link=shared threading=multi debug-symbols=off --layout=system |
414 |
|
|
415 |
|
## install internal BOOST |
416 |
|
./b2 -d+2 -q %{?_smp_mflags} --without-mpi \ |
417 |
|
--prefix=%{buildroot}/../boost%{_prefix} --libdir=%{buildroot}/../boost%{_libdir} \ |
418 |
|
link=shared \ |
419 |
|
install |
420 |
|
popd |
421 |
|
|
422 |
|
## let oqgraph find boost |
423 |
|
sed -i '1iSET(BOOST_ROOT %{buildroot}/../boost%{_prefix})' storage/oqgraph/CMakeLists.txt |
424 |
|
|
425 |
|
## MariaDB |
426 |
%serverbuild |
%serverbuild |
427 |
export CFLAGS="${CFLAGS:-%{optflags}}" |
export CFLAGS="${CFLAGS:-%{optflags}}" |
428 |
export CXXFLAGS="${CXXFLAGS:-%{optflags}}" |
export CXXFLAGS="${CXXFLAGS:-%{optflags}}" |
562 |
|
|
563 |
# no RHEL4 selinux files for us |
# no RHEL4 selinux files for us |
564 |
rm -rf %{buildroot}%{_datadir}/mysql/SELinux |
rm -rf %{buildroot}%{_datadir}/mysql/SELinux |
565 |
|
# no solaris files for us |
566 |
|
rm -rf %{buildroot}%{_datadir}/mysql/solaris |
567 |
# no init script for us |
# no init script for us |
568 |
rm -f %{buildroot}%{_initrddir}/mysql |
rm -f %{buildroot}%{_initrddir}/mysql |
569 |
rm -f %{buildroot}%{_initrddir}/mysqld |
rm -f %{buildroot}%{_initrddir}/mysqld |
735 |
%{_libdir}/mysql/plugin/handlersocket.so |
%{_libdir}/mysql/plugin/handlersocket.so |
736 |
# new optional functionality |
# new optional functionality |
737 |
%{_libdir}/mysql/plugin/query_cache_info.so |
%{_libdir}/mysql/plugin/query_cache_info.so |
738 |
|
# sphinx has 2 plugins now? odd, but wth |
739 |
|
%{_libdir}/mysql/plugin/sphinx.so |
740 |
|
|
741 |
%files client |
%files client |
742 |
%config(noreplace) %{_sysconfdir}/mysqlaccess.conf |
%config(noreplace) %{_sysconfdir}/mysqlaccess.conf |
874 |
%{_mandir}/man1/mysqlhotcopy.1* |
%{_mandir}/man1/mysqlhotcopy.1* |
875 |
%{_mandir}/man1/mysql_install_db.1* |
%{_mandir}/man1/mysql_install_db.1* |
876 |
%{_mandir}/man1/mysqlman.1* |
%{_mandir}/man1/mysqlman.1* |
877 |
|
%{_mandir}/man1/mysql_plugin.1* |
878 |
%{_mandir}/man1/mysql_secure_installation.1* |
%{_mandir}/man1/mysql_secure_installation.1* |
879 |
%{_mandir}/man1/mysql.server.1* |
%{_mandir}/man1/mysql.server.1* |
880 |
%{_mandir}/man1/mysql_setpermission.1* |
%{_mandir}/man1/mysql_setpermission.1* |