1 |
#(ie. use with rpm --rebuild): |
2 |
# |
3 |
# --with debug Compile with debugging code |
4 |
# |
5 |
# enable build with debugging code: will _not_ strip away any debugging code, |
6 |
# will _add_ -g3 to CFLAGS, will _add_ --enable-maintainer-mode to |
7 |
# configure. |
8 |
|
9 |
%define build_debug 0 |
10 |
%define build_test 0 |
11 |
|
12 |
# commandline overrides: |
13 |
# rpm -ba|--rebuild --with 'xxx' |
14 |
%{?_with_debug: %{expand: %%define build_debug 1}} |
15 |
%{?_with_test: %{expand: %%define build_test 1}} |
16 |
%{?_without_test: %global build_test 0} |
17 |
|
18 |
%if %{build_debug} |
19 |
# disable build root strip policy |
20 |
%define __spec_install_post %{_libdir}/rpm/brp-compress || : |
21 |
|
22 |
# This gives extra debuggin and huge binaries |
23 |
%{expand:%%define optflags %{optflags} %([ ! $DEBUG ] && echo '-g3')} |
24 |
%endif |
25 |
|
26 |
%if %{build_debug} |
27 |
%define build_debug 1 |
28 |
%endif |
29 |
|
30 |
%if %{build_test} |
31 |
%define build_test 1 |
32 |
%endif |
33 |
|
34 |
%define major 18 |
35 |
%define libmysqlembedded_major 0 |
36 |
%define libmysqlembedded_minor 0.1 |
37 |
%define libname %mklibname mariadb %{major} |
38 |
%define libmariadbservices %mklibname mariadbservices |
39 |
%define libmariadbembedded %mklibname mariadb-embedded %{major} |
40 |
%define develname %mklibname -d mariadb |
41 |
%define old_staticdevelname %mklibname -d -s mariadb |
42 |
%define libmariadbembedded_devel %mklibname -d mariadb-embedded |
43 |
|
44 |
%define mysql_libname %mklibname mysql %{major} |
45 |
%define mysql_develname %mklibname -d mysql |
46 |
%define libmysqlservices %mklibname mysqlservices |
47 |
%define libmysqlembedded %mklibname mysqld %{libmysqlembedded_major} |
48 |
%define libmysqlembedded_devel %mklibname -d mariadb-embedded |
49 |
|
50 |
%define mirror http://ftp.osuosl.org/pub/mariadb |
51 |
|
52 |
%define muser mysql |
53 |
|
54 |
# rule out some useless autodeps in the test suite |
55 |
%global __requires_exclude perl\\(th|perl\\(lib|perl\\(mtr|perl\\(My |
56 |
%global __provides_exclude perl\\(th|perl\\(lib|perl\\(mtr|perl\\(My |
57 |
|
58 |
Summary: A very fast and reliable SQL database engine |
59 |
Name: mariadb |
60 |
Version: 10.0.33 |
61 |
Release: %mkrel 1 |
62 |
Group: Databases |
63 |
License: GPLv2 with exceptions |
64 |
URL: http://mariadb.org/ |
65 |
Source0: %{mirror}/%{name}-%{version}/source/%{name}-%{version}.tar.gz |
66 |
Source3: my.cnf |
67 |
Source10: mysql.tmpfiles.d |
68 |
Source11: mysqld.service |
69 |
Source12: mysqld-prepare-db-dir |
70 |
Source13: mysqld-wait-ready |
71 |
|
72 |
# config files to load plugins |
73 |
Source50: auth_pam.cnf |
74 |
Source51: auth_socket.cnf |
75 |
Source52: ha_archive.cnf |
76 |
Source53: ha_blackhole.cnf |
77 |
Source54: ha_cassandra.cnf |
78 |
Source55: ha_connect.cnf |
79 |
Source56: ha_federatedx.cnf |
80 |
Source57: handlersocket.cnf |
81 |
Source58: ha_oqgraph.cnf |
82 |
Source59: ha_sequence.cnf |
83 |
Source60: ha_sphinx.cnf |
84 |
Source61: ha_spider.cnf |
85 |
Source62: locales.cnf |
86 |
Source63: metadata_lock_info.cnf |
87 |
Source64: query_cache_info.cnf |
88 |
Source65: query_response_time.cnf |
89 |
Source66: semisync_master.cnf |
90 |
Source67: semisync_slave.cnf |
91 |
Source68: sql_errlog.cnf |
92 |
Source69: feedback.cnf |
93 |
Source70: ha_innodb.cnf |
94 |
Source71: server_audit.cnf |
95 |
Source72: ha_mroonga.cnf |
96 |
|
97 |
# the following patches are rediffed from the mysql-5.5 src.rpm to mariadb-5.5 |
98 |
# fedora patches |
99 |
Patch1: mariadb-5.5-errno.patch |
100 |
|
101 |
# upstream patches |
102 |
|
103 |
# mandriva patches |
104 |
Patch101: mariadb-5.5-logrotate.patch |
105 |
Patch106: mariadb-5.5-hotcopy.patch |
106 |
Patch107: mariadb-5.5-mysql_install_db-quiet.patch |
107 |
|
108 |
Requires(post): systemd >= %{systemd_required_version} |
109 |
Requires(post): rpm-helper >= 0.24.8-1 |
110 |
Requires(preun): rpm-helper >= 0.24.8-1 |
111 |
Requires(post): %{name}-common%{_isa} = %{version}-%{release} |
112 |
Requires(preun): %{name}-common%{_isa} = %{version}-%{release} |
113 |
Requires(post): %{name}-client%{_isa} = %{version}-%{release} |
114 |
Requires(preun): %{name}-client%{_isa} = %{version}-%{release} |
115 |
Requires(postun): %{name}-common%{_isa} = %{version}-%{release} |
116 |
Requires(postun): %{name}-client%{_isa} = %{version}-%{release} |
117 |
Requires: %{name}-common%{_isa} = %{version}-%{release} |
118 |
Requires: %{name}-core%{_isa} = %{version}-%{release} |
119 |
Requires: %{name}-client%{_isa} = %{version}-%{release} |
120 |
Provides: mysql = %{version}-%{release} |
121 |
Obsoletes: mysql < %{version}-%{release} |
122 |
Obsoletes: %{libmariadbservices} < 5.5.18-0.3194.20111227.1 |
123 |
Obsoletes: %{libmysqlservices} < %{version}-%{release} |
124 |
Conflicts: %{name}-extra%{_isa} < %{version}-%{release} |
125 |
Conflicts: %{name}-feedback%{_isa} < %{version}-%{release} |
126 |
Conflicts: %{name}-obsolete%{_isa} < %{version}-%{release} |
127 |
Recommends: %{name}-extra%{_isa} |
128 |
Recommends: %{name}-feedback%{_isa} |
129 |
BuildRequires: bison |
130 |
BuildRequires: cmake |
131 |
BuildRequires: doxygen |
132 |
BuildRequires: glibc-devel |
133 |
BuildRequires: libaio-devel |
134 |
BuildRequires: libstdc++-devel |
135 |
BuildRequires: libtermcap-devel |
136 |
BuildRequires: multiarch-utils >= 1.0.3 |
137 |
BuildRequires: ncurses-devel |
138 |
BuildRequires: openssl-devel |
139 |
BuildRequires: wrap-devel |
140 |
BuildRequires: python |
141 |
BuildRequires: systemtap |
142 |
BuildRequires: tetex |
143 |
BuildRequires: texinfo |
144 |
BuildRequires: xfs-devel |
145 |
BuildRequires: zlib-devel |
146 |
BuildRequires: libaio-devel |
147 |
BuildRequires: pam-devel |
148 |
BuildConflicts: edit-devel |
149 |
BuildRequires: python-devel |
150 |
BuildRequires: icu-devel |
151 |
BuildRequires: bzip2-devel |
152 |
# use system jemalloc libs instead of bundled ones |
153 |
BuildRequires: jemalloc-devel |
154 |
# required by oqgraph v3 |
155 |
BuildRequires: boost-devel |
156 |
BuildRequires: judy-devel |
157 |
# required by cassandra |
158 |
BuildRequires: thrift-devel |
159 |
# external pcre, 10.0.9+ |
160 |
# https://bugs.mageia.org/show_bug.cgi?id=12665 |
161 |
BuildRequires: pcre-devel >= 8.34-2 |
162 |
BuildRequires: pcreposix-devel >= 8.34-2 |
163 |
|
164 |
%description |
165 |
The MariaDB software delivers a very fast, multi-threaded, multi-user, and |
166 |
robust SQL (Structured Query Language) database server. MariaDB Server is |
167 |
intended for mission-critical, heavy-load production systems as well as for |
168 |
embedding into mass-deployed software. |
169 |
|
170 |
The mariadb server is compiled with the following storage engines: |
171 |
|
172 |
- Aria Storage Engine |
173 |
- Archive Storage Engine |
174 |
- Blackhole Storage Engine |
175 |
- CSV Storage Engine |
176 |
- FederatedX Storage Engine (Federated replacement) |
177 |
- Heap Storage Engine |
178 |
- MyISAM Storage Engine |
179 |
- MyISAMMRG Storage Engine |
180 |
- Partition Storage Engine |
181 |
- Perfschema Storage Engine |
182 |
- Percona XtraDB Storage Engine (InnoDB replacement) |
183 |
|
184 |
A multitude of storage engines and handlers are being provided in separate sub |
185 |
packages such as: |
186 |
|
187 |
mariadb-cassandra - Cassandra Storage Engine |
188 |
mariadb-feedback - Feedback Storage Engine |
189 |
mariadb-oqgraph - Open Query GRAPH computation engine |
190 |
mariadb-connect - CONNECT handler |
191 |
mariadb-sphinx - Sphinx Storage Engine |
192 |
mariadb-sequence - Sequence Storage Engine |
193 |
mariadb-spider - Spider Storage Engine |
194 |
|
195 |
The following extra storage engines are provided by the mariadb-extra package |
196 |
|
197 |
- handlersocket |
198 |
- query_cache_info |
199 |
|
200 |
The following storage engines are provided in the mariadb-obsolete package |
201 |
|
202 |
- Federated Storage Engine |
203 |
|
204 |
%package -n mysql-MariaDB |
205 |
Summary: A MySQL drop-in replacement |
206 |
Group: System/Servers |
207 |
Requires: %{name}%{_isa} |
208 |
|
209 |
%description -n mysql-MariaDB |
210 |
MariaDB is a complete MySQL drop-in replacement with additional fixes and |
211 |
storage engines. |
212 |
|
213 |
This package is used as a transitional virtual package, which requires |
214 |
MariaDB so that people who used to use mysql can find it nicely. |
215 |
|
216 |
%package cassandra |
217 |
Summary: Cassandra Storage Engine |
218 |
Group: System/Servers |
219 |
Requires: %{name}-common-core%{_isa} >= %{version}-%{release} |
220 |
Conflicts: %{name}-common-core%{_isa} < %{version}-%{release} |
221 |
|
222 |
%description cassandra |
223 |
The Cassandra Storage Engine allows access to data in a Cassandra cluster from |
224 |
MariaDB. |
225 |
|
226 |
%package feedback |
227 |
Summary: Feedback storage engine |
228 |
Group: System/Servers |
229 |
Requires: %{name}-common-core%{_isa} >= %{version}-%{release} |
230 |
Conflicts: %{name}-common-core%{_isa} < %{version}-%{release} |
231 |
|
232 |
%description feedback |
233 |
MariaDB feedback storage engine submits feedback about your mariadb server. |
234 |
Results can be seen on http://mariadb.org/feedback_plugin/ . |
235 |
|
236 |
%package oqgraph |
237 |
Summary: Open Query GRAPH computation engine |
238 |
Group: System/Servers |
239 |
Requires: %{name}-common-core%{_isa} >= %{version}-%{release} |
240 |
Conflicts: %{name}-common-core%{_isa} < %{version}-%{release} |
241 |
Conflicts: mariadb-extra < 10.0.7 |
242 |
|
243 |
%description oqgraph |
244 |
The Open Query GRAPH computation engine allows you to handle hierarchies |
245 |
(tree structures) and complex graphs (nodes having many connections in |
246 |
several directions). |
247 |
|
248 |
%package connect |
249 |
Summary: CONNECT handler |
250 |
Group: System/Servers |
251 |
Requires: %{name}-common-core%{_isa} >= %{version}-%{release} |
252 |
Conflicts: %{name}-common-core%{_isa} < %{version}-%{release} |
253 |
|
254 |
%description connect |
255 |
The CONNECT handler enables MariaDB to access external local or remote data. |
256 |
This is done by defining tables based on different data types, in particular |
257 |
files of various format, data extracted from other products (such as Excel), |
258 |
or data retrieved from the environment (for example DIR, WMI, and MAC tables). |
259 |
|
260 |
This handler supports MariaDB virtual columns and also permits to define |
261 |
“special” columns such as ROWID and FILEID. |
262 |
|
263 |
%package sphinx |
264 |
Summary: Sphinx Storage Engine |
265 |
Group: System/Servers |
266 |
Requires: %{name}-common-core%{_isa} >= %{version}-%{release} |
267 |
Conflicts: %{name}-common-core%{_isa} < %{version}-%{release} |
268 |
Conflicts: mariadb-extra < 10.0.7 |
269 |
Recommends: sphinx >= 2.1.5 |
270 |
|
271 |
%description sphinx |
272 |
SphinxSE is a storage engine that talks to searchd (Sphinx daemon) to enable |
273 |
full text searching. |
274 |
|
275 |
%package mroonga |
276 |
Summary: Mroonga Storage Engine |
277 |
Group: System/Servers |
278 |
Requires: %{name}-common-core%{_isa} >= %{version}-%{release} |
279 |
Conflicts: %{name}-common-core%{_isa} < %{version}-%{release} |
280 |
|
281 |
%description mroonga |
282 |
Mroonga is a storage engine for MySQL. It provides fast fulltext search feature |
283 |
to all MySQL users. Mroonga was called Groonga storage engine. |
284 |
|
285 |
%package sequence |
286 |
Summary: Sequence Storage Engine |
287 |
Group: System/Servers |
288 |
Requires: %{name}-common-core%{_isa} >= %{version}-%{release} |
289 |
Conflicts: %{name}-common-core%{_isa} < %{version}-%{release} |
290 |
|
291 |
%description sequence |
292 |
A Sequence engine allows the creation of ascending or descending sequences of |
293 |
numbers with a given starting value, ending value and increment. |
294 |
|
295 |
It creates completely virtual, ephemeral tables automatically when you need |
296 |
them. There is no way to create a Sequence table explicitly. Nor are they ever |
297 |
written to disk or create .frm files. They are read-only, transactional, and |
298 |
support XA. |
299 |
|
300 |
%package spider |
301 |
Summary: Spider Storage Engine |
302 |
Group: System/Servers |
303 |
Requires: %{name}-common-core%{_isa} >= %{version}-%{release} |
304 |
Conflicts: %{name}-common-core%{_isa} < %{version}-%{release} |
305 |
|
306 |
%description spider |
307 |
The Spider storage engine supports partitioning and xa transactions, and allows |
308 |
tables of different MariaDB instances to be handled as if they were on the same |
309 |
instance. |
310 |
|
311 |
%package extra |
312 |
Summary: MariaDB extra storage engines |
313 |
Group: System/Servers |
314 |
Requires: %{name}-common-core%{_isa} >= %{version}-%{release} |
315 |
Conflicts: %{name}-common-core%{_isa} < %{version}-%{release} |
316 |
|
317 |
%description extra |
318 |
This package provides various storage engines/handlers such as: |
319 |
|
320 |
- handlersocket |
321 |
- query_cache_info |
322 |
|
323 |
%package obsolete |
324 |
Summary: MariaDB obsolete storage engines |
325 |
Group: System/Servers |
326 |
Requires: %{name}-common-core%{_isa} >= %{version}-%{release} |
327 |
Conflicts: %{name}-common-core%{_isa} < %{version}-%{release} |
328 |
Conflicts: mysql-core < 5.5.18 |
329 |
|
330 |
%description obsolete |
331 |
MariaDB obsolete storage engines. Federated are being replaced by XtraDB and |
332 |
FederatedX storage engines. These obsolete storage engines are provided in |
333 |
case you need the vanilla mysql storage engines. |
334 |
|
335 |
%package core |
336 |
Summary: Server core binary |
337 |
Group: System/Servers |
338 |
Requires: %{name}-common-core%{_isa} >= %{version}-%{release} |
339 |
Provides: mysql-core = %{version}-%{release} |
340 |
Obsoletes: mysql-core < %{version}-%{release} |
341 |
|
342 |
%description core |
343 |
Core mysqld server binary. For a full MariaDB database server, install |
344 |
package 'mariadb'. |
345 |
|
346 |
%package common-core |
347 |
Summary: Common files required by core binary |
348 |
Group: System/Servers |
349 |
Requires: %{name}-common%{_isa} >= %{version}-%{release} |
350 |
Provides: mysql-common-core = %{version}-%{release} |
351 |
Obsoletes: mysql-common-core < %{version}-%{release} |
352 |
|
353 |
%description common-core |
354 |
Common files minimally required by mysqld server binary. |
355 |
|
356 |
%package common |
357 |
Summary: Common files |
358 |
Group: System/Servers |
359 |
Requires(post): rpm-helper |
360 |
Requires(preun): rpm-helper |
361 |
Requires(pre): rpm-helper |
362 |
Requires(postun): rpm-helper |
363 |
Requires(post): %{name}-client%{_isa} >= %{version}-%{release} |
364 |
Requires(preun): %{name}-client%{_isa} >= %{version}-%{release} |
365 |
Requires: %{name}-client%{_isa} >= %{version}-%{release} |
366 |
Provides: mysql-common = %{version}-%{release} |
367 |
Obsoletes: mysql-common < %{version}-%{release} |
368 |
|
369 |
%description common |
370 |
Common files for the MariaDB database server. |
371 |
|
372 |
%package client |
373 |
Summary: Client |
374 |
Group: Databases |
375 |
Requires(post): %{libname}%{_isa} >= %{version}-%{release} |
376 |
Requires(preun): %{libname}%{_isa} >= %{version}-%{release} |
377 |
Requires: %{libname}%{_isa} >= %{version}-%{release} |
378 |
Requires: %{name}-common%{_isa} >= %{version}-%{release} |
379 |
Provides: mysql-client = %{version}-%{release} |
380 |
Obsoletes: mysql-client < %{version}-%{release} |
381 |
|
382 |
%description client |
383 |
This package contains the standard MariaDB clients. |
384 |
|
385 |
%package bench |
386 |
Summary: Benchmarks and test system |
387 |
Group: System/Servers |
388 |
Requires(post): %{name}-client%{_isa} >= %{version}-%{release} |
389 |
Requires(preun): %{name}-client%{_isa} >= %{version}-%{release} |
390 |
Requires: %{name}-client%{_isa} >= %{version}-%{release} |
391 |
Requires: perl(DBD::mysql) |
392 |
Recommends: %{name}%{_isa} >= %{version}-%{release} |
393 |
Provides: mysql-bench = %{version}-%{release} |
394 |
Obsoletes: mysql-bench < %{version}-%{release} |
395 |
Conflicts: mariadb < 10.0.7 |
396 |
|
397 |
%description bench |
398 |
This package contains MariaDB benchmark scripts and data. |
399 |
|
400 |
%package -n %{libname} |
401 |
Summary: Shared libraries |
402 |
Group: System/Libraries |
403 |
Provides: %{name}-shared-libs = %{version}-%{release} |
404 |
Provides: %{name}-shared = %{version}-%{release} |
405 |
Provides: %{mysql_libname} = %{version}-%{release} |
406 |
Obsoletes: %{mysql_libname} < %{version}-%{release} |
407 |
|
408 |
%description -n %{libname} |
409 |
This package contains the shared libraries (*.so*) which certain languages and |
410 |
applications need to dynamically load and use MariaDB. |
411 |
|
412 |
%package -n %{develname} |
413 |
Summary: Development header files and libraries |
414 |
Group: Development/Other |
415 |
Requires(post): %{libname} >= %{version}-%{release} |
416 |
Requires(preun): %{libname} >= %{version}-%{release} |
417 |
Requires(post): %{name}-common%{_isa} >= %{version}-%{release} |
418 |
Requires(preun): %{name}-common%{_isa} >= %{version}-%{release} |
419 |
Requires(post): %{name}-client%{_isa} >= %{version}-%{release} |
420 |
Requires(preun): %{name}-client%{_isa} >= %{version}-%{release} |
421 |
Requires: %{libname} = %{version}-%{release} |
422 |
Requires: %{name}-common%{_isa} >= %{version}-%{release} |
423 |
Requires: %{name}-client%{_isa} >= %{version}-%{release} |
424 |
Provides: %{name}-devel = %{version}-%{release} |
425 |
Provides: %{libname}-devel = %{version}-%{release} |
426 |
Obsoletes: %{libname}-devel < %{version}-%{release} |
427 |
Obsoletes: %{old_staticdevelname} < %{version}-%{release} |
428 |
Provides: %{mysql_develname} = %{version}-%{release} |
429 |
Obsoletes: %{mysql_develname} < %{version}-%{release} |
430 |
Provides: mysql-devel = %{version}-%{release} |
431 |
|
432 |
%description -n %{develname} |
433 |
This package contains the development header files and libraries necessary to |
434 |
develop MariaDB client applications. |
435 |
|
436 |
%package -n %{libmariadbembedded} |
437 |
Summary: MariaDB as an embeddable library |
438 |
Group: System/Libraries |
439 |
Provides: %{name}-embedded = %{version}-%{release} |
440 |
Obsoletes: %{name}-embedded < %{version}-%{release} |
441 |
Provides: %{libmysqlembedded} = %{version}-%{release} |
442 |
Obsoletes: %{libmysqlembedded} < %{version}-%{release} |
443 |
|
444 |
%description -n %{libmariadbembedded} |
445 |
MariaDB is a multi-user, multi-threaded SQL database server. This |
446 |
package contains a version of the MariaDB server that can be embedded |
447 |
into a client application instead of running as a separate process. |
448 |
|
449 |
The API is identical for the embedded MariaDB version and the client/server |
450 |
version. |
451 |
|
452 |
%package -n %{libmariadbembedded_devel} |
453 |
Summary: Development files for MySQL as an embeddable library |
454 |
Group: Development/Other |
455 |
Provides: %{name}-embedded-devel = %{version}-%{release} |
456 |
Obsoletes: %{name}-embedded-devel < %{version}-%{release} |
457 |
Requires: %{libmariadbembedded} = %{version}-%{release} |
458 |
Requires: %{develname} = %{version}-%{release} |
459 |
Provides: %{libmysqlembedded_devel} = %{version}-%{release} |
460 |
Obsoletes: %{libmysqlembedded_devel} < %{version}-%{release} |
461 |
Provides: mysql-embedded-devel = %{version}-%{release} |
462 |
Conflicts: mariadb-bench < %{version}-%{release} |
463 |
|
464 |
%description -n %{libmariadbembedded_devel} |
465 |
MariaDB is a multi-user, multi-threaded SQL database server. This |
466 |
package contains files needed for developing and testing with |
467 |
the embedded version of the MariaDB server. |
468 |
|
469 |
The API is identical for the embedded MariaDB version and the client/server |
470 |
version. |
471 |
|
472 |
|
473 |
%prep |
474 |
%setup -q |
475 |
%apply_patches |
476 |
|
477 |
# no bundled pcre |
478 |
rm -rf pcre |
479 |
|
480 |
mkdir -p Mageia |
481 |
cp %{SOURCE3} Mageia/my.cnf |
482 |
|
483 |
# remove the sql_yacc.cc file so that bison will regenerate it properly, even if it's patched |
484 |
rm -f sql/sql_yacc.cc |
485 |
|
486 |
# lib64 fix |
487 |
perl -pi -e "s|/usr/lib/|%{_libdir}/|g" Mageia/my.cnf |
488 |
|
489 |
# antiborker |
490 |
perl -pi -e "s|\@bindir\@|%{_bindir}|g" support-files/* scripts/* |
491 |
perl -pi -e "s|\@sbindir\@|%{_sbindir}|g" support-files/* scripts/* |
492 |
perl -pi -e "s|\@libexecdir\@|%{_sbindir}|g" support-files/* scripts/* |
493 |
perl -pi -e "s|\@localstatedir\@|/var/lib/mysql|g" support-files/* scripts/* |
494 |
perl -pi -e "s|^basedir=.*|basedir=%{_prefix}|g" support-files/* scripts/mysql_install_db* |
495 |
|
496 |
# this may be part of the problems with mysql-test |
497 |
# http://bugs.mysql.com/bug.php?id=52223 |
498 |
#perl -pi -e "s|basedir/lib\b|basedir/%{_lib}\b|g" mysql-test/mysql-test-run.pl |
499 |
#perl -pi -e "s|basedir/lib/|basedir/%{_lib}/|g" mysql-test/mysql-test-run.pl |
500 |
|
501 |
# workaround for upstream bug #56342 |
502 |
rm -f mysql-test/t/ssl_8k_key-master.opt |
503 |
rm -f mysql-test/t/file_contents.test |
504 |
|
505 |
# fix distribution name |
506 |
sed -i 's/Source distribution/%{_vendor} MariaDB Server/' mysql-test/suite/percona/innodb_sys_index.result |
507 |
|
508 |
%build |
509 |
|
510 |
## MariaDB |
511 |
%serverbuild |
512 |
export CFLAGS="${CFLAGS:-%{optflags}} -fno-delete-null-pointer-checks" |
513 |
export CXXFLAGS="${CXXFLAGS:-%{optflags}} -fno-delete-null-pointer-checks" |
514 |
export FFLAGS="${FFLAGS:-%{optflags}}" |
515 |
export LC_ALL=C |
516 |
|
517 |
%cmake \ |
518 |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
519 |
-DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
520 |
-DINSTALL_SBINDIR=sbin \ |
521 |
-DMYSQL_DATADIR=/var/lib/mysql \ |
522 |
-DSYSCONFDIR=%{_sysconfdir} \ |
523 |
-DINSTALL_PLUGINDIR=%{_lib}/mysql/plugin \ |
524 |
-DINSTALL_MANDIR=share/man \ |
525 |
-DINSTALL_SHAREDIR=share/mysql \ |
526 |
-DINSTALL_LIBDIR=%{_lib} \ |
527 |
-DINSTALL_INCLUDEDIR=include/mysql \ |
528 |
-DINSTALL_INFODIR=share/info \ |
529 |
-DINSTALL_MYSQLDATADIR=/var/lib/mysql \ |
530 |
-DINSTALL_MYSQLTESTDIR=share/mysql/mysql-test \ |
531 |
-DINSTALL_SQLBENCHDIR=share/mysql \ |
532 |
-DINSTALL_SUPPORTFILESDIR=share/mysql \ |
533 |
-DINSTALL_MYSQLSHAREDIR=share/mysql \ |
534 |
-DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock \ |
535 |
-DWITH_READLINE=0 \ |
536 |
-DWITH_LIBEDIT=0 \ |
537 |
-DWITH_LIBWRAP=1 \ |
538 |
-DWITH_SSL=system \ |
539 |
-DWITH_ZLIB=system \ |
540 |
-DWITH_PRCE=system \ |
541 |
-DWITH_PIC=1 \ |
542 |
-DMYSQL_TCP_PORT=3306 \ |
543 |
-DEXTRA_CHARSETS=all \ |
544 |
-DENABLED_LOCAL_INFILE=1 \ |
545 |
-DENABLE_DTRACE=1 \ |
546 |
-DWITH_EMBEDDED_SERVER=1 \ |
547 |
-DMYSQL_USER=%{muser} \ |
548 |
%if %{build_debug} |
549 |
-DWITH_DEBUG=1 \ |
550 |
%else |
551 |
-DWITH_DEBUG=0 \ |
552 |
%endif |
553 |
-DWITHOUT_TOKUDB_STORAGE_ENGINE=1 \ |
554 |
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \ |
555 |
-DWITHOUT_NDBCLUSTER_STORAGE_ENGINE=1 \ |
556 |
-DWITHOUT_DAEMON_EXAMPLE=1 \ |
557 |
-DWITH_PLUGIN_PBXT=0 \ |
558 |
-DFEATURE_SET="community" \ |
559 |
-DRPM=1 \ |
560 |
-DCOMPILATION_COMMENT="%{_vendor} MariaDB Server" |
561 |
|
562 |
%make VERBOSE=1 |
563 |
|
564 |
%install |
565 |
# don't fiddle with the initscript! |
566 |
export DONT_GPRINTIFY=1 |
567 |
|
568 |
%if %{build_debug} |
569 |
export DONT_STRIP=1 |
570 |
%endif |
571 |
|
572 |
install -d %{buildroot}%{_sysconfdir}/sysconfig |
573 |
install -d %{buildroot}%{_var}/log/mysqld |
574 |
install -d %{buildroot}/var/lib/mysql/{mysql,test} |
575 |
|
576 |
%makeinstall_std -C build |
577 |
|
578 |
# exclude loaddata7 from being converted |
579 |
export EXCLUDE_FROM_EOL_CONVERSION="std_data/loaddata7.dat" |
580 |
|
581 |
# install configuration files |
582 |
install -m0644 Mageia/my.cnf %{buildroot}%{_sysconfdir}/my.cnf |
583 |
|
584 |
install -m 0644 -D %{SOURCE10} %{buildroot}%{_tmpfilesdir}/mysql.conf |
585 |
install -m 0644 -D %{SOURCE11} %{buildroot}%{_unitdir}/mysqld.service |
586 |
install -m 0755 %{SOURCE12} %{buildroot}%{_sbindir}/mysqld-prepare-db-dir |
587 |
install -m 0755 %{SOURCE13} %{buildroot}%{_sbindir}/mysqld-wait-ready |
588 |
|
589 |
# cleanup some config files |
590 |
rm -f %{buildroot}%{_sysconfdir}/my.cnf.d/cassandra.cnf \ |
591 |
%{buildroot}%{_sysconfdir}/my.cnf.d/connect.cnf \ |
592 |
%{buildroot}%{_sysconfdir}/my.cnf.d/oqgraph.cnf |
593 |
|
594 |
# magic by anssi |
595 |
pushd %{buildroot}%{_sysconfdir}/my.cnf.d |
596 |
%{expand:%(for i in {50..72}; do echo "install -m 644 %%SOURCE$i ."; done)} |
597 |
popd |
598 |
|
599 |
# bork |
600 |
mv %{buildroot}%{_datadir}/mysql/aclocal %{buildroot}%{_datadir}/aclocal |
601 |
|
602 |
pushd %{buildroot}%{_bindir} |
603 |
ln -sf mysqlcheck mysqlrepair |
604 |
ln -sf mysqlcheck mysqlanalyze |
605 |
ln -sf mysqlcheck mysqloptimize |
606 |
popd |
607 |
|
608 |
# nuke -Wl,--as-needed from the mysql_config file |
609 |
perl -pi -e "s|^ldflags=.*|ldflags=\'-rdynamic\'|g" %{buildroot}%{_bindir}/mysql_config |
610 |
|
611 |
# cmake generates some completely wacko references to -lprobes_mysql when |
612 |
# building with dtrace support. Haven't found where to shut that off, |
613 |
# so resort to this blunt instrument. While at it, let's not reference |
614 |
# libmysqlclient_r anymore either. |
615 |
sed -e 's/-lprobes_mysql//' -e 's/-lmysqlclient_r/-lmysqlclient/' \ |
616 |
%{buildroot}%{_bindir}/mysql_config >mysql_config.tmp |
617 |
cp -f mysql_config.tmp %{buildroot}%{_bindir}/mysql_config |
618 |
chmod 755 %{buildroot}%{_bindir}/mysql_config |
619 |
install -m 0755 -d %{buildroot}/var/lib/mysql |
620 |
|
621 |
# Remove libmysqld.a, + hardlink libmysqld.so.%{libmysqlembedded_major} so that it's provided |
622 |
rm -f %{buildroot}%{_libdir}/libmysqld.a |
623 |
ln %{buildroot}%{_libdir}/libmysqld.so.%{major} %{buildroot}%{_libdir}/libmysqld.so.%{libmysqlembedded_major}.%{libmysqlembedded_minor} |
624 |
ln -s libmysqld.so.%{libmysqlembedded_major}.%{libmysqlembedded_minor} %{buildroot}%{_libdir}/libmysqld.so.%{libmysqlembedded_major} |
625 |
|
626 |
# missing header |
627 |
install -m0644 build/include/probes_mysql_dtrace.h %{buildroot}%{_includedir}/mysql/ |
628 |
cp -rp %{buildroot}%{_datadir}/mysql/english %{buildroot}%{_datadir}/mysql/default |
629 |
|
630 |
# libmysqlclient_r is no more. Upstream tries to replace it with symlinks |
631 |
# but that really doesn't work (wrong soname in particular). We'll keep |
632 |
# just the devel libmysqlclient_r.so link, so that rebuilding without any |
633 |
# source change is enough to get rid of dependency on libmysqlclient_r. |
634 |
rm -f %{buildroot}%{_libdir}/libmysqlclient_r.so* |
635 |
ln -s libmysqlclient.so %{buildroot}%{_libdir}/libmysqlclient_r.so |
636 |
|
637 |
# remove static libs |
638 |
rm -f %{buildroot}%{_libdir}/libmysqlclient.a |
639 |
rm -f %{buildroot}%{_libdir}/libmysqlclient_r.a |
640 |
|
641 |
# mysql-test includes one executable that doesn't belong under /usr/share, |
642 |
# so move it and provide a symlink |
643 |
mv %{buildroot}%{_datadir}/mysql/mysql-test/lib/My/SafeProcess/my_safe_process %{buildroot}%{_bindir} |
644 |
ln -s %{_bindir}/my_safe_process %{buildroot}%{_datadir}/mysql/mysql-test/lib/My/SafeProcess/my_safe_process |
645 |
|
646 |
# mysql client statically built against a local embedded library, pretty useless |
647 |
rm -f %{buildroot}%{_bindir}/mysql_embedded |
648 |
|
649 |
# this command enables plugins, but needs ini file + configuration in my.cnf |
650 |
# before executing... and oh yeah, mysql must be stopped... => useless |
651 |
# however, apparently tests seem to want it, even thought they don't use it. |
652 |
#rm -f %{buildroot}%{_bindir}/mysql_plugin |
653 |
rm -f %{buildroot}%{_libdir}/mysql/plugin/daemon_example.ini |
654 |
|
655 |
# no RHEL4 selinux files for us |
656 |
rm -rf %{buildroot}%{_datadir}/mysql/SELinux |
657 |
# no solaris files for us |
658 |
rm -rf %{buildroot}%{_datadir}/mysql/solaris |
659 |
# no init script for us |
660 |
rm -f %{buildroot}%{_initrddir}/mysql |
661 |
rm -f %{buildroot}%{_initrddir}/mysqld |
662 |
|
663 |
# house cleaning |
664 |
rm -rf %{buildroot}%{_datadir}/info |
665 |
rm -f %{buildroot}%{_bindir}/client_test |
666 |
rm -f %{buildroot}%{_bindir}/make_win_binary_distribution |
667 |
rm -f %{buildroot}%{_bindir}/make_win_src_distribution |
668 |
rm -f %{buildroot}%{_datadir}/mysql/binary-configure |
669 |
rm -f %{buildroot}%{_datadir}/mysql/config.huge.ini |
670 |
rm -f %{buildroot}%{_datadir}/mysql/config.medium.ini |
671 |
rm -f %{buildroot}%{_datadir}/mysql/config.small.ini |
672 |
rm -f %{buildroot}%{_datadir}/mysql/mysqld_multi.server |
673 |
rm -f %{buildroot}%{_datadir}/mysql/mysql-log-rotate |
674 |
rm -f %{buildroot}%{_datadir}/mysql/mysql.server |
675 |
rm -f %{buildroot}%{_datadir}/mysql/ndb-config-2-node.ini |
676 |
rm -f %{buildroot}%{_datadir}/mysql/binary-configure |
677 |
rm -f %{buildroot}%{_mandir}/man1/make_win_bin_dist.1* |
678 |
rm -f %{buildroot}%{_mandir}/man1/make_win_src_distribution.1* |
679 |
rm -f %{buildroot}%{_datadir}/mysql/magic |
680 |
|
681 |
# no idea how to fix this |
682 |
rm -rf %{buildroot}%{_prefix}/data |
683 |
rm -rf %{buildroot}%{_prefix}/docs |
684 |
rm -rf %{buildroot}%{_prefix}/scripts |
685 |
rm -rf %{buildroot}%{_datadir}/doc |
686 |
rm -rf %{buildroot}%{_sysconfdir}/init.d/mysql |
687 |
rm -rf %{buildroot}%{_sysconfdir}/logrotate.d/mysql |
688 |
|
689 |
%multiarch_binaries %{buildroot}%{_bindir}/mysql_config |
690 |
%multiarch_includes %{buildroot}%{_includedir}/mysql/my_config.h |
691 |
|
692 |
cat > README.urpmi <<EOF |
693 |
|
694 |
NOTE: MariaDB is installed without root password, it is recommended to set the |
695 |
root password with the following command as soon as possible: |
696 |
|
697 |
mysqladmin password |
698 |
|
699 |
The initscript used to start mysql has been reverted to use the one shipped |
700 |
by MariaDB. This means the following changes: |
701 |
|
702 |
* The generation of the initial system mysql database is now done when mysql |
703 |
is started from the initscript and only if the /var/lib/mysql/mysql |
704 |
directory is empty (mysql_install_db). Previousely this was quite hidden and |
705 |
silently done at (rpm) install time. As a consequence to this change you may |
706 |
have to perform some manual tasks to upgrade the mysql system database and |
707 |
such. So, doing something like this might help you: |
708 |
|
709 |
systemctl stop mysqld.service |
710 |
TMPDIR=/var/tmp mysql_install_db |
711 |
mysql_upgrade --skip-write-binlog |
712 |
|
713 |
The cluster functionalities (ndb) has been deactivated and will be removed in |
714 |
future mysql versions. Oracle has a new product named mysql-cluster that |
715 |
replaces the cluster functionalities. |
716 |
|
717 |
The mysql-common-core package ships with a default /etc/my.cnf file that is |
718 |
based on the my-medium.cnf file that comes with the source code. |
719 |
EOF |
720 |
|
721 |
################################################################################ |
722 |
# run the tests |
723 |
%if %{build_test} |
724 |
# disable failing tests |
725 |
# --ssl \ |
726 |
pushd build/mysql-test |
727 |
export LANG=C |
728 |
export LC_ALL=C |
729 |
export LANGUAGE=C |
730 |
perl ./mysql-test-run.pl \ |
731 |
--mtr-build-thread="$((${RANDOM} % 100))" \ |
732 |
--retry=0 \ |
733 |
--big-test \ |
734 |
--force \ |
735 |
--max-test-fail=0 \ |
736 |
--testcase-timeout=60 \ |
737 |
--suite-timeout=1200 || false |
738 |
popd |
739 |
%endif |
740 |
|
741 |
%pre |
742 |
# enable plugins |
743 |
if [ -f %{_sysconfdir}/my.cnf ]; then |
744 |
perl -pi -e "s|^#plugin-load|plugin-load|g" %{_sysconfdir}/my.cnf |
745 |
perl -pi -e "s|^#federated|federated|g" %{_sysconfdir}/my.cnf |
746 |
# switch to federatedx provider |
747 |
perl -pi -e "s|;ha_federated\.so$|;ha_federatedx\.so|g" %{_sysconfdir}/my.cnf |
748 |
fi |
749 |
|
750 |
%pre common |
751 |
# delete the mysql group if no mysql user is found, before adding the user |
752 |
if [ -z "`getent passwd %{muser}`" ] && ! [ -z "`getent group %{muser}`" ]; then |
753 |
%{_sbindir}/groupdel %{muser} 2> /dev/null || : |
754 |
fi |
755 |
|
756 |
%_pre_useradd %{muser} /var/lib/mysql /bin/bash |
757 |
|
758 |
%post |
759 |
%_tmpfilescreate mysql |
760 |
%_post_service mysqld |
761 |
|
762 |
%preun |
763 |
%_preun_service mysqld |
764 |
|
765 |
%postun |
766 |
%_post_service mysqld |
767 |
|
768 |
%pre common-core |
769 |
# enable plugins |
770 |
if [ -f %{_sysconfdir}/my.cnf ]; then |
771 |
perl -pi -e "s|^#plugin-load|plugin-load|g" %{_sysconfdir}/my.cnf |
772 |
perl -pi -e "s|^#federated|federated|g" %{_sysconfdir}/my.cnf |
773 |
# switch to federatedx provider |
774 |
perl -pi -e "s|;ha_federated\.so$|;ha_federatedx\.so|g" %{_sysconfdir}/my.cnf |
775 |
fi |
776 |
|
777 |
%files |
778 |
%doc README.urpmi |
779 |
# authentication plugins |
780 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/auth_pam.cnf |
781 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/auth_socket.cnf |
782 |
# replication plugins |
783 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/semisync_master.cnf |
784 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/semisync_slave.cnf |
785 |
# storage engines |
786 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/ha_archive.cnf |
787 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/ha_blackhole.cnf |
788 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/ha_federatedx.cnf |
789 |
# sql logging plugin |
790 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/sql_errlog.cnf |
791 |
# new since 10.x |
792 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/locales.cnf |
793 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/metadata_lock_info.cnf |
794 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/query_response_time.cnf |
795 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/server_audit.cnf |
796 |
|
797 |
%{_tmpfilesdir}/mysql.conf |
798 |
%{_unitdir}/mysqld.service |
799 |
%{_sbindir}/mysqld-prepare-db-dir |
800 |
%{_sbindir}/mysqld-wait-ready |
801 |
# authentication plugins |
802 |
%{_libdir}/mysql/plugin/auth_pam.so |
803 |
%{_libdir}/mysql/plugin/auth_socket.so |
804 |
# replication plugins |
805 |
%{_libdir}/mysql/plugin/semisync_master.so |
806 |
%{_libdir}/mysql/plugin/semisync_slave.so |
807 |
# storage engines |
808 |
%{_libdir}/mysql/plugin/ha_archive.so |
809 |
%{_libdir}/mysql/plugin/ha_blackhole.so |
810 |
%{_libdir}/mysql/plugin/ha_federatedx.so |
811 |
# sql logging plugin |
812 |
%{_libdir}/mysql/plugin/sql_errlog.so |
813 |
# new since 10.x |
814 |
%{_libdir}/mysql/plugin/locales.so |
815 |
%{_libdir}/mysql/plugin/metadata_lock_info.so |
816 |
%{_libdir}/mysql/plugin/query_response_time.so |
817 |
%{_libdir}/mysql/plugin/server_audit.so |
818 |
|
819 |
%files -n mysql-MariaDB |
820 |
|
821 |
%files obsolete |
822 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/ha_innodb.cnf |
823 |
%{_libdir}/mysql/plugin/ha_innodb.so |
824 |
%{_libdir}/mysql/plugin/ha_federated.so |
825 |
|
826 |
%files cassandra |
827 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/ha_cassandra.cnf |
828 |
%{_libdir}/mysql/plugin/ha_cassandra.so |
829 |
|
830 |
%files feedback |
831 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/feedback.cnf |
832 |
%{_libdir}/mysql/plugin/feedback.so |
833 |
|
834 |
%files oqgraph |
835 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/ha_oqgraph.cnf |
836 |
%{_libdir}/mysql/plugin/ha_oqgraph.so |
837 |
|
838 |
%files connect |
839 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/ha_connect.cnf |
840 |
%{_libdir}/mysql/plugin/ha_connect.so |
841 |
|
842 |
%files sphinx |
843 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/ha_sphinx.cnf |
844 |
%{_libdir}/mysql/plugin/ha_sphinx.so |
845 |
|
846 |
%files mroonga |
847 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/ha_mroonga.cnf |
848 |
%{_libdir}/mysql/plugin/ha_mroonga.so |
849 |
%{_datadir}/mysql/mroonga/install.sql |
850 |
%{_datadir}/mysql/mroonga/uninstall.sql |
851 |
|
852 |
%files sequence |
853 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/ha_sequence.cnf |
854 |
%{_libdir}/mysql/plugin/ha_sequence.so |
855 |
|
856 |
%files spider |
857 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/ha_spider.cnf |
858 |
%{_libdir}/mysql/plugin/ha_spider.so |
859 |
%{_datadir}/mysql/install_spider.sql |
860 |
|
861 |
%files extra |
862 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/handlersocket.cnf |
863 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/query_cache_info.cnf |
864 |
%{_libdir}/mysql/plugin/handlersocket.so |
865 |
# new optional functionality |
866 |
%{_libdir}/mysql/plugin/query_cache_info.so |
867 |
|
868 |
%files client |
869 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/client.cnf |
870 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/mysql-clients.cnf |
871 |
%{_bindir}/msql2mysql |
872 |
%{_bindir}/mysql |
873 |
%{_bindir}/mysqlaccess |
874 |
%{_bindir}/mysqladmin |
875 |
%{_bindir}/mysqlanalyze |
876 |
%{_bindir}/mysqlbinlog |
877 |
%{_bindir}/mysqlcheck |
878 |
%{_bindir}/mysqldump |
879 |
%{_bindir}/mysqldumpslow |
880 |
%{_bindir}/mysql_find_rows |
881 |
%{_bindir}/mysqlimport |
882 |
%{_bindir}/mysqloptimize |
883 |
%{_bindir}/mysqlrepair |
884 |
%{_bindir}/mysqlshow |
885 |
%{_bindir}/mysqlslap |
886 |
%{_bindir}/mysql_waitpid |
887 |
%{_mandir}/man1/msql2mysql.1* |
888 |
%{_mandir}/man1/myisam_ftdump.1* |
889 |
%{_mandir}/man1/mysql.1* |
890 |
%{_mandir}/man1/mysqlaccess.1* |
891 |
%{_mandir}/man1/mysqladmin.1* |
892 |
%{_mandir}/man1/mysqlbinlog.1* |
893 |
%{_mandir}/man1/mysqlcheck.1* |
894 |
%{_mandir}/man1/mysqldump.1* |
895 |
%{_mandir}/man1/mysqldumpslow.1* |
896 |
%{_mandir}/man1/mysql_find_rows.1* |
897 |
%{_mandir}/man1/mysqlimport.1* |
898 |
%{_mandir}/man1/mysqlshow.1* |
899 |
%{_mandir}/man1/mysql_waitpid.1* |
900 |
# libmysqlclient plugins |
901 |
%{_libdir}/mysql/plugin/dialog.so |
902 |
%{_libdir}/mysql/plugin/mysql_clear_password.so |
903 |
|
904 |
%files bench |
905 |
%doc build/sql-bench/README |
906 |
%{_bindir}/my_safe_process |
907 |
%{_bindir}/mysql_client_test |
908 |
%{_datadir}/mysql/sql-bench |
909 |
%attr(-,mysql,mysql) %{_datadir}/mysql/mysql-test |
910 |
%{_mandir}/man1/mysql-stress-test.pl.1* |
911 |
%{_mandir}/man1/mysql-test-run.pl.1* |
912 |
%{_mandir}/man1/mysql_client_test.1* |
913 |
%{_mandir}/man1/mysqltest.1* |
914 |
%{_libdir}/mysql/plugin/adt_null.so |
915 |
%{_libdir}/mysql/plugin/auth_0x0100.so |
916 |
%{_libdir}/mysql/plugin/auth_test_plugin.so |
917 |
%{_libdir}/mysql/plugin/dialog_examples.so |
918 |
%{_libdir}/mysql/plugin/ha_test_sql_discovery.so |
919 |
%{_libdir}/mysql/plugin/mypluglib.so |
920 |
%{_libdir}/mysql/plugin/qa_auth_client.so |
921 |
%{_libdir}/mysql/plugin/qa_auth_interface.so |
922 |
%{_libdir}/mysql/plugin/qa_auth_server.so |
923 |
|
924 |
%files core |
925 |
%{_sbindir}/mysqld |
926 |
|
927 |
%files common-core |
928 |
%config(noreplace) %{_sysconfdir}/my.cnf.d/server.cnf |
929 |
%config(noreplace) %{_sysconfdir}/my.cnf |
930 |
%dir %{_datadir}/mysql |
931 |
%{_datadir}/mysql/english |
932 |
%{_datadir}/mysql/charsets |
933 |
|
934 |
%files common |
935 |
%doc README COPYING |
936 |
%dir %{_sysconfdir}/my.cnf.d |
937 |
%dir %{_libdir}/mysql/plugin |
938 |
%{_bindir}/aria_chk |
939 |
%{_bindir}/aria_dump_log |
940 |
%{_bindir}/aria_ftdump |
941 |
%{_bindir}/aria_pack |
942 |
%{_bindir}/aria_read_log |
943 |
%{_bindir}/innochecksum |
944 |
%{_bindir}/myisamchk |
945 |
%{_bindir}/myisam_ftdump |
946 |
%{_bindir}/myisamlog |
947 |
%{_bindir}/myisampack |
948 |
%{_bindir}/my_print_defaults |
949 |
%{_bindir}/mysqlbug |
950 |
%{_bindir}/mysql_convert_table_format |
951 |
%{_bindir}/mysqld_multi |
952 |
%{_bindir}/mysqld_safe |
953 |
%{_bindir}/mysqld_safe_helper |
954 |
%{_bindir}/mysql_fix_extensions |
955 |
%{_bindir}/mysqlhotcopy |
956 |
%{_bindir}/mysql_install_db |
957 |
%{_bindir}/mysql_plugin |
958 |
%{_bindir}/mysql_secure_installation |
959 |
%{_bindir}/mysql_setpermission |
960 |
%{_bindir}/mysqltest |
961 |
%{_bindir}/mysql_tzinfo_to_sql |
962 |
%{_bindir}/mysql_upgrade |
963 |
%{_bindir}/mysql_zap |
964 |
%{_bindir}/mytop |
965 |
%{_bindir}/perror |
966 |
%{_bindir}/replace |
967 |
%{_bindir}/resolveip |
968 |
%{_bindir}/resolve_stack_dump |
969 |
%attr(0755,%{muser},%{muser}) %dir /var/lib/mysql |
970 |
%attr(0755,%{muser},%{muser}) %dir /var/lib/mysql/mysql |
971 |
%attr(0755,%{muser},%{muser}) %dir /var/lib/mysql/test |
972 |
%attr(0755,%{muser},%{muser}) %dir %{_var}/log/mysqld |
973 |
%{_datadir}/mysql/*.cnf |
974 |
%{_datadir}/mysql/fill_help_tables.sql |
975 |
%{_datadir}/mysql/mysql_performance_tables.sql |
976 |
%{_datadir}/mysql/mysql_system_tables.sql |
977 |
%{_datadir}/mysql/mysql_system_tables_data.sql |
978 |
%{_datadir}/mysql/mysql_test_data_timezone.sql |
979 |
%{_datadir}/mysql/errmsg-utf8.txt |
980 |
%{_datadir}/mysql/czech |
981 |
%{_datadir}/mysql/danish |
982 |
%{_datadir}/mysql/dutch |
983 |
%{_datadir}/mysql/estonian |
984 |
%{_datadir}/mysql/french |
985 |
%{_datadir}/mysql/german |
986 |
%{_datadir}/mysql/greek |
987 |
%{_datadir}/mysql/hungarian |
988 |
%{_datadir}/mysql/italian |
989 |
%{_datadir}/mysql/japanese |
990 |
%{_datadir}/mysql/korean |
991 |
%{_datadir}/mysql/norwegian |
992 |
%{_datadir}/mysql/norwegian-ny |
993 |
%{_datadir}/mysql/polish |
994 |
%{_datadir}/mysql/portuguese |
995 |
%{_datadir}/mysql/romanian |
996 |
%{_datadir}/mysql/russian |
997 |
%{_datadir}/mysql/serbian |
998 |
%{_datadir}/mysql/slovak |
999 |
%{_datadir}/mysql/spanish |
1000 |
%{_datadir}/mysql/swedish |
1001 |
%{_datadir}/mysql/ukrainian |
1002 |
%{_mandir}/man1/aria_chk.1* |
1003 |
%{_mandir}/man1/aria_dump_log.1* |
1004 |
%{_mandir}/man1/aria_ftdump.1* |
1005 |
%{_mandir}/man1/aria_pack.1* |
1006 |
%{_mandir}/man1/aria_read_log.1* |
1007 |
%{_mandir}/man1/innochecksum.1* |
1008 |
%{_mandir}/man1/myisamchk.1* |
1009 |
%{_mandir}/man1/myisamlog.1* |
1010 |
%{_mandir}/man1/myisampack.1* |
1011 |
%{_mandir}/man1/my_print_defaults.1* |
1012 |
%{_mandir}/man1/mysqlbug.1* |
1013 |
%{_mandir}/man1/mysql_convert_table_format.1* |
1014 |
%{_mandir}/man1/mysqld_multi.1* |
1015 |
%{_mandir}/man1/mysqld_safe.1* |
1016 |
%{_mandir}/man1/mysql_fix_extensions.1* |
1017 |
%{_mandir}/man1/mysqlhotcopy.1* |
1018 |
%{_mandir}/man1/mysql_install_db.1* |
1019 |
%{_mandir}/man1/mysql_plugin.1* |
1020 |
%{_mandir}/man1/mysql_secure_installation.1* |
1021 |
%{_mandir}/man1/mysql.server.1* |
1022 |
%{_mandir}/man1/mysql_setpermission.1* |
1023 |
%{_mandir}/man1/mysqlslap.1* |
1024 |
%{_mandir}/man1/mysql_tzinfo_to_sql.1* |
1025 |
%{_mandir}/man1/mysql_upgrade.1* |
1026 |
%{_mandir}/man1/mysql_zap.1* |
1027 |
%{_mandir}/man1/perror.1* |
1028 |
%{_mandir}/man1/replace.1* |
1029 |
%{_mandir}/man1/resolveip.1* |
1030 |
%{_mandir}/man1/resolve_stack_dump.1* |
1031 |
%{_mandir}/man8/mysqld.8* |
1032 |
|
1033 |
%files -n %{libname} |
1034 |
%{_libdir}/libmysqlclient.so.%{major}* |
1035 |
|
1036 |
%files -n %{develname} |
1037 |
%doc INSTALL-SOURCE |
1038 |
%multiarch %{multiarch_bindir}/mysql_config |
1039 |
%{_bindir}/mysql_config |
1040 |
%{_libdir}/libmysqlclient_r.so |
1041 |
%{_libdir}/libmysqlclient.so |
1042 |
%dir %{_includedir}/mysql |
1043 |
%dir %{_includedir}/mysql/psi |
1044 |
%{_includedir}/mysql/*.h |
1045 |
%{_includedir}/mysql/private/*.h |
1046 |
%{_includedir}/mysql/private/atomic/*.h |
1047 |
%{_includedir}/mysql/psi/*.h |
1048 |
%multiarch %{multiarch_includedir}/mysql/my_config.h |
1049 |
%{_mandir}/man1/mysql_config.1* |
1050 |
%{_datadir}/aclocal/mysql.m4 |
1051 |
# mysqlservices library is static, because it doesn't contain any code |
1052 |
# itself, and is meant to be statically linked to all plugins. |
1053 |
%{_libdir}/libmysqlservices.a |
1054 |
|
1055 |
%files -n %{libmariadbembedded} |
1056 |
%doc README COPYING |
1057 |
%{_datadir}/mysql/default |
1058 |
%{_libdir}/libmysqld.so.%{major} |
1059 |
%{_libdir}/libmysqld.so.%{libmysqlembedded_major}* |
1060 |
|
1061 |
%files -n %{libmariadbembedded_devel} |
1062 |
%{_libdir}/libmysqld.so |
1063 |
%{_bindir}/mysql_client_test_embedded |
1064 |
%{_bindir}/mysqltest_embedded |
1065 |
%{_mandir}/man1/mysql_client_test_embedded.1* |
1066 |
%{_mandir}/man1/mysqltest_embedded.1* |