/[packages]/cauldron/mariadb/releases/5.5.15/0.4.mga2/SPECS/mariadb.spec
ViewVC logotype

Contents of /cauldron/mariadb/releases/5.5.15/0.4.mga2/SPECS/mariadb.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 169078 - (show annotations) (download)
Sat Nov 19 09:26:29 2011 UTC (9 years, 10 months ago) by schedbot
File size: 25777 byte(s)
%repsys markrelease
version: 5.5.15
release: 0.4.mga2
revision: 169072

Copying 5.5.15-0.4.mga2 to releases/ directory.
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
35 %define major 18
36 %define libmariadbembedded_major 0
37 %define libmariadbembedded_minor 0.1
38 %define libname %mklibname mariadb %{major}
39 %define libmariadbservices %mklibname mariadbservices
40 %define libmariadbembedded %mklibname mariadb-embedded %{libmariadbembedded_major}
41 %define develname %mklibname -d mariadb
42 %define old_staticdevelname %mklibname -d -s mariadb
43 %define libmariadbembedded_devel %mklibname -d mariadb-embedded
44
45 %define mirror http://mirror2.hs-esslingen.de/mariadb
46 %define subrel 4
47
48 %define muser mysql
49 Summary: A very fast and reliable SQL database engine
50 Name: mariadb
51 Version: 5.5.15
52 Release: %mkrel 0
53 Group: Databases
54 License: GPLv2 with exceptions
55 URL: http://mariadb.org/
56 Source0: %{mirror}/%{name}-%{version}/kvm-tarbake-jaunty-x86/%{name}-%{version}.tar.gz
57 Source2: mysqld.sysconfig
58 Source3: my.cnf
59 Source4: libmysql.version
60 Source10: mysql.tmpfiles.d
61 Source11: mysqld.service
62 Source12: mysqld-prepare-db-dir
63 Source13: mysqld-wait-ready
64 # the following patches are rediffed from the mysql-5.5 src.rpm to mariadb-5.5
65 # fedora patches
66 Patch1: mariadb-5.5-errno.patch
67 Patch2: mariadb-5.5-strmov.patch
68 Patch3: mariadb-5.5-install-test.patch
69 Patch4: mysql-expired-certs.patch
70 # filed upstream: https://bugs.launchpad.net/maria/+bug/886368
71 Patch5: mariadb-5.5-stack-guard.patch
72 # filed upstream: https://bugs.launchpad.net/maria/+bug/886378
73 Patch6: mariadb-5.5-chain-certs.patch
74 Patch7: mariadb-5.5-versioning.patch
75 Patch8: mariadb-5.5-dubious-exports.patch
76 # filed upstream: https://bugs.launchpad.net/maria/+bug/886476
77 Patch9: mariadb-5.5-disable-test.patch
78 # filed upstream: https://bugs.launchpad.net/maria/+bug/886479
79 Patch10: mariadb-5.5-plugin-bool.patch
80 Patch12: mysql-openssl-test.patch
81 # filed upstream: https://bugs.launchpad.net/maria/+bug/886484
82 Patch13: mariadb-5.5-mysqld-nowatch.patch
83
84 # mandriva patches
85 Patch101: mariadb-5.5-logrotate.patch
86 Patch102: mariadb-5.5-initscript.patch
87 Patch103: mariadb-5.5-mysql_upgrade-exit-status.patch
88 # filed upstream: https://bugs.launchpad.net/maria/+bug/886526
89 Patch104: mariadb-5.5-shebang.patch
90 # unsure if still required
91 #Patch105: mysql-5.1.35-test-variables-big.patch
92 Patch106: mariadb-5.5-hotcopy.patch
93 Patch107: mariadb-5.5-mysql_install_db-quiet.patch
94
95 # mageia patches
96 # (ahmad) add patch to fix some header files location (hint from Mandriva)
97 # filed upstream: https://bugs.launchpad.net/maria/+bug/886550
98 Patch110: mariadb-5.5-fix-headers-location.patch
99
100 Requires(post): rpm-helper
101 Requires(preun): rpm-helper
102 Requires(pre): rpm-helper
103 Requires(postun): rpm-helper
104 Requires(post): %{name}-common = %{version}-%{release}
105 Requires(preun): %{name}-common = %{version}-%{release}
106 Requires(post): %{name}-client = %{version}-%{release}
107 Requires(preun): %{name}-client = %{version}-%{release}
108 Requires(postun): %{name}-common = %{version}-%{release}
109 Requires(postun): %{name}-client = %{version}-%{release}
110 Requires: %{name}-common = %{version}-%{release}
111 Requires: %{name}-core = %{version}-%{release}
112 Requires: %{name}-client = %{version}-%{release}
113 Provides: mysql
114 BuildRequires: bison
115 BuildRequires: cmake
116 BuildRequires: doxygen
117 BuildRequires: glibc-devel
118 BuildRequires: libaio-devel
119 BuildRequires: libstdc++-devel
120 BuildRequires: libtermcap-devel
121 BuildRequires: multiarch-utils >= 1.0.3
122 BuildRequires: ncurses-devel
123 BuildRequires: openssl-devel
124 BuildRequires: wrap-devel
125 BuildRequires: python
126 BuildRequires: readline-devel
127 BuildRequires: systemtap
128 BuildRequires: tetex
129 BuildRequires: texinfo
130 BuildRequires: xfs-devel
131 BuildRequires: zlib-devel
132 BuildRequires: boost-devel
133 BuildConflicts: edit-devel
134
135 %description
136 The MariaDB software delivers a very fast, multi-threaded, multi-user, and
137 robust SQL (Structured Query Language) database server. MariaDB Server is
138 intended for mission-critical, heavy-load production systems as well as for
139 embedding into mass-deployed software.
140
141 The mariadb server is compiled with the following storage engines:
142
143 - Aria Storage Engine
144 - Archive Storage Engine
145 - Blackhole Storage Engine
146 - CSV Storage Engine
147 - Federated Storage Engine
148 - FederatedX Storage Engine
149 - Heap Storage Engine
150 - InnoDB Storage Engine
151 - MyISAM Storage Engine
152 - MyISAMMRG Storage Engine
153 - OQGraph Storage Engine
154 - Partition Storage Engine
155 - Perfschema Storage Engine
156 - Sphinx Storage Engine
157 - XtraDB Storage Engine
158
159
160 %package core
161 Summary: Server core binary
162 Group: System/Servers
163 Requires: %{name}-common-core >= %{version}-%{release}
164 Provides: mysql-core
165
166 %description core
167 Core mysqld server binary. For a full MariaDB database server, install
168 package 'mariadb'.
169
170 %package common-core
171 Summary: Common files required by core binary
172 Group: System/Servers
173 Provides: mysql-common-core
174
175 %description common-core
176 Common files minimally required by mysqld server binary.
177
178 %package common
179 Summary: Common files
180 Group: System/Servers
181 Requires(post): rpm-helper
182 Requires(preun): rpm-helper
183 Requires(pre): rpm-helper
184 Requires(postun): rpm-helper
185 Requires(post): %{name}-client >= %{version}-%{release}
186 Requires(preun): %{name}-client >= %{version}-%{release}
187 Requires: %{name}-client >= %{version}-%{release}
188 Requires: %{name}-common-core >= %{version}-%{release}
189 Provides: mysql-common
190
191 %description common
192 Common files for the MariaDB database server.
193
194 %package client
195 Summary: Client
196 Group: Databases
197 Requires(post): %{libname} >= %{version}-%{release}
198 Requires(preun): %{libname} >= %{version}-%{release}
199 Requires: %{libname} >= %{version}-%{release}
200 Provides: mysql-client
201
202 %description client
203 This package contains the standard MariaDB clients.
204
205 %package bench
206 Summary: Benchmarks and test system
207 Group: System/Servers
208 Requires(post): %{name}-client >= %{version}-%{release}
209 Requires(preun): %{name}-client >= %{version}-%{release}
210 Requires: %{name}-client >= %{version}-%{release}
211 Provides: mysql-bench
212
213 %description bench
214 This package contains MariaDB benchmark scripts and data.
215
216 %package -n %{libname}
217 Summary: Shared libraries
218 Group: System/Libraries
219 Provides: %{name}-shared-libs = %{version}-%{release}
220 Provides: %{name}-shared = %{version}-%{release}
221 Provides: %mklibname mysql %{major}
222
223 %description -n %{libname}
224 This package contains the shared libraries (*.so*) which certain languages and
225 applications need to dynamically load and use MariaDB.
226
227
228 %package -n %{libmariadbservices}
229 Summary: Shared libraries
230 Group: System/Libraries
231 Provides: %mklibname mysqlservices
232
233 %description -n %{libmariadbservices}
234 The libmariadbservices library provides access to the available services and
235 dynamic plugins now must be linked against this library
236 (use the -lmysqlservices flag).
237
238 %package -n %{develname}
239 Summary: Development header files and libraries
240 Group: Development/Other
241 Requires(post): %{libname} >= %{version}-%{release}
242 Requires(preun): %{libname} >= %{version}-%{release}
243 Requires(post): %{name}-common >= %{version}-%{release}
244 Requires(preun): %{name}-common >= %{version}-%{release}
245 Requires(post): %{name}-client >= %{version}-%{release}
246 Requires(preun): %{name}-client >= %{version}-%{release}
247 Requires: %{libname} = %{version}-%{release}
248 Requires: %{libmariadbservices} = %{version}-%{release}
249 Requires: %{name}-common >= %{version}-%{release}
250 Requires: %{name}-client >= %{version}-%{release}
251 Provides: %{name}-devel = %{version}-%{release}
252 Provides: %{libname}-devel = %{version}-%{release}
253 Obsoletes: %{libname}-devel
254 Obsoletes: %{old_staticdevelname} < 5.5.10
255 Conflicts: %mklibname -d mysql
256
257 %description -n %{develname}
258 This package contains the development header files and libraries necessary to
259 develop MariaDB client applications.
260
261 %package -n %{libmariadbembedded}
262 Summary: MariaDB as an embeddable library
263 Group: System/Libraries
264 Provides: %{name}-embedded = %{version}-%{release}
265 Obsoletes: %{name}-embedded < 5.5.10-6
266 Provides: %mklibname mysqld %{libmariadbembedded_major}
267
268 %description -n %{libmariadbembedded}
269 MariaDB is a multi-user, multi-threaded SQL database server. This
270 package contains a version of the MariaDB server that can be embedded
271 into a client application instead of running as a separate process.
272
273 The API is identical for the embedded MariaDB version and the client/server
274 version.
275
276 %package -n %{libmariadbembedded_devel}
277 Summary: Development files for MySQL as an embeddable library
278 Group: Development/Other
279 Provides: %{name}-embedded-devel = %{version}-%{release}
280 Obsoletes: %{name}-embedded-devel < 5.5.10-6
281 Requires: %{libmariadbembedded} = %{version}-%{release}
282 Requires: %{name}-devel = %{version}-%{release}
283 Conflicts: %mklibname -d mysqld
284
285 %description -n %{libmariadbembedded_devel}
286 MariaDB is a multi-user, multi-threaded SQL database server. This
287 package contains files needed for developing and testing with
288 the embedded version of the MariaDB server.
289
290 The API is identical for the embedded MariaDB version and the client/server
291 version.
292
293 %prep
294 %setup -q -n %{name}-%{version}-MariaDB
295 %apply_patches
296
297 mkdir -p Mageia
298 cp %{SOURCE2} Mageia/mysqld.sysconfig
299 cp %{SOURCE3} Mageia/my.cnf
300
301 # lib64 fix
302 perl -pi -e "s|/usr/lib/|%{_libdir}/|g" Mageia/my.cnf
303
304 # antiborker
305 perl -pi -e "s|\@bindir\@|%{_bindir}|g" support-files/* scripts/*
306 perl -pi -e "s|\@sbindir\@|%{_sbindir}|g" support-files/* scripts/*
307 perl -pi -e "s|\@libexecdir\@|%{_sbindir}|g" support-files/* scripts/*
308 perl -pi -e "s|\@localstatedir\@|/var/lib/mysql|g" support-files/* scripts/*
309 perl -pi -e "s|^basedir=.*|basedir=%{_prefix}|g" support-files/* scripts/mysql_install_db*
310
311 # this may be part of the problems with mysql-test
312 # http://bugs.mysql.com/bug.php?id=52223
313 #perl -pi -e "s|basedir/lib\b|basedir/%{_lib}\b|g" mysql-test/mysql-test-run.pl
314 #perl -pi -e "s|basedir/lib/|basedir/%{_lib}/|g" mysql-test/mysql-test-run.pl
315
316 # workaround for upstream bug #56342
317 rm -f mysql-test/t/ssl_8k_key-master.opt
318
319 # upstream has fallen down badly on symbol versioning, do it ourselves
320 cp %{SOURCE4} libmysql/libmysql.version
321
322 %build
323 %serverbuild
324 export CFLAGS="${CFLAGS:-%{optflags}}"
325 export CXXFLAGS="${CXXFLAGS:-%{optflags}}"
326 export FFLAGS="${FFLAGS:-%{optflags}}"
327
328 %cmake \
329 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
330 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
331 -DINSTALL_SBINDIR=sbin \
332 -DMYSQL_DATADIR=/var/lib/mysql \
333 -DSYSCONFDIR=%{_sysconfdir} \
334 -DINSTALL_PLUGINDIR=%{_lib}/mysql/plugin \
335 -DINSTALL_MANDIR=share/man \
336 -DINSTALL_SHAREDIR=share/mysql \
337 -DINSTALL_LIBDIR=%{_lib} \
338 -DINSTALL_INCLUDEDIR=include/mysql \
339 -DINSTALL_INFODIR=share/info \
340 -DINSTALL_MYSQLDATADIR=/var/lib/mysql \
341 -DINSTALL_MYSQLTESTDIR=share/mysql/mysql-test \
342 -DINSTALL_SQLBENCHDIR=share/mysql \
343 -DINSTALL_SUPPORTFILESDIR=share/mysql \
344 -DINSTALL_MYSQLSHAREDIR=share/mysql \
345 -DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock \
346 -DWITH_READLINE=0 \
347 -DWITH_LIBEDIT=0 \
348 -DWITH_LIBWRAP=1 \
349 -DWITH_SSL=system \
350 -DWITH_ZLIB=system \
351 -DWITH_PIC=1 \
352 -DMYSQL_TCP_PORT=3306 \
353 -DEXTRA_CHARSETS=all \
354 -DENABLED_LOCAL_INFILE=1 \
355 -DENABLE_DTRACE=1 \
356 -DWITH_EMBEDDED_SERVER=1 \
357 -DMYSQL_USER=%{muser} \
358 %if %{build_debug}
359 -DWITH_DEBUG=1 \
360 %else
361 -DWITH_DEBUG=0 \
362 %endif
363 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
364 -DWITHOUT_NDBCLUSTER_STORAGE_ENGINE=1 \
365 -DWITHOUT_DAEMON_EXAMPLE=1 \
366 -DWITH_PLUGIN_PBXT=1 \
367 -DFEATURE_SET="community" \
368 -DCOMPILATION_COMMENT="Mageia - MariaDB Community Edition (GPL)"
369
370 cp ../libmysql/libmysql.version libmysql/libmysql.version
371
372 %make
373
374 %install
375 rm -rf %{buildroot}
376
377 # don't fiddle with the initscript!
378 export DONT_GPRINTIFY=1
379
380 %if %{build_debug}
381 export DONT_STRIP=1
382 %endif
383
384 install -d %{buildroot}%{_sysconfdir}/sysconfig
385 install -d %{buildroot}%{_initrddir}
386 install -d %{buildroot}%{_var}/run/mysqld
387 install -d %{buildroot}%{_var}/log/mysqld
388 install -d %{buildroot}/var/lib/mysql/{mysql,test}
389
390 %makeinstall_std -C build
391
392 # install init scripts
393 install -m0755 build/support-files/mysql.server %{buildroot}%{_initrddir}/mysqld
394
395 # install configuration files
396 install -m0644 Mageia/mysqld.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/mysqld
397 install -m0644 Mageia/my.cnf %{buildroot}%{_sysconfdir}/my.cnf
398
399 mkdir -p %{buildroot}/etc/tmpfiles.d
400 install -m 0644 %{SOURCE10} %{buildroot}/etc/tmpfiles.d/mysql.conf
401 mkdir -p %{buildroot}/lib/systemd/system
402 install -m 644 %{SOURCE11} %{buildroot}/lib/systemd/system
403 install -m 755 %{SOURCE12} %{buildroot}%{_sbindir}/mysqld-prepare-db-dir
404 install -m 755 %{SOURCE13} %{buildroot}%{_sbindir}/mysqld-wait-ready
405
406 # bork
407 mv %{buildroot}%{_bindir}/mysqlaccess.conf %{buildroot}%{_sysconfdir}/
408 chmod 644 %{buildroot}%{_sysconfdir}/mysqlaccess.conf
409 mv %{buildroot}%{_prefix}/scripts/mysql_install_db %{buildroot}%{_bindir}/
410 mv %{buildroot}%{_datadir}/mysql/aclocal %{buildroot}%{_datadir}/aclocal
411
412 pushd %{buildroot}%{_bindir}
413 ln -sf mysqlcheck mysqlrepair
414 ln -sf mysqlcheck mysqlanalyze
415 ln -sf mysqlcheck mysqloptimize
416 popd
417
418 # nuke -Wl,--as-needed from the mysql_config file
419 perl -pi -e "s|^ldflags=.*|ldflags=\'-rdynamic\'|g" %{buildroot}%{_bindir}/mysql_config
420
421 # cmake generates some completely wacko references to -lprobes_mysql when
422 # building with dtrace support. Haven't found where to shut that off,
423 # so resort to this blunt instrument. While at it, let's not reference
424 # libmysqlclient_r anymore either.
425 sed -e 's/-lprobes_mysql//' -e 's/-lmysqlclient_r/-lmysqlclient/' \
426 %{buildroot}%{_bindir}/mysql_config >mysql_config.tmp
427 cp -f mysql_config.tmp %{buildroot}%{_bindir}/mysql_config
428 chmod 755 %{buildroot}%{_bindir}/mysql_config
429 install -m 0755 -d %{buildroot}/var/lib/mysql
430
431 # Remove libmysqld.a, install libmysqld.so
432 rm -f %{buildroot}%{_libdir}/libmysqld.a
433 mv %{buildroot}%{_libdir}/libmysqld.so %{buildroot}%{_libdir}/libmysqld.so.%{libmariadbembedded_major}.%{libmariadbembedded_minor}
434 ln -s libmysqld.so.%{libmariadbembedded_major}.%{libmariadbembedded_minor} %{buildroot}%{_libdir}/libmysqld.so.%{libmariadbembedded_major}
435 ln -s libmysqld.so.%{libmariadbembedded_major} %{buildroot}%{_libdir}/libmysqld.so
436
437 # libmysqlclient_r is no more. Upstream tries to replace it with symlinks
438 # but that really doesn't work (wrong soname in particular). We'll keep
439 # just the devel libmysqlclient_r.so link, so that rebuilding without any
440 # source change is enough to get rid of dependency on libmysqlclient_r.
441 rm -f %{buildroot}%{_libdir}/libmysqlclient_r.so*
442 ln -s libmysqlclient.so %{buildroot}%{_libdir}/libmysqlclient_r.so
443
444 # remove static libs
445 rm -f %{buildroot}%{_libdir}/libmysqlclient.a
446 rm -f %{buildroot}%{_libdir}/libmysqlclient_r.a
447
448 # mysql-test includes one executable that doesn't belong under /usr/share,
449 # so move it and provide a symlink
450 mv %{buildroot}%{_datadir}/mysql/mysql-test/lib/My/SafeProcess/my_safe_process %{buildroot}%{_bindir}
451 ln -s %{_bindir}/my_safe_process %{buildroot}%{_datadir}/mysql/mysql-test/lib/My/SafeProcess/my_safe_process
452
453 # house cleaning
454 rm -rf %{buildroot}%{_datadir}/info
455 rm -f %{buildroot}%{_bindir}/client_test
456 rm -f %{buildroot}%{_bindir}/make_win_binary_distribution
457 rm -f %{buildroot}%{_bindir}/make_win_src_distribution
458 rm -f %{buildroot}%{_datadir}/mysql/binary-configure
459 rm -f %{buildroot}%{_datadir}/mysql/config.huge.ini
460 rm -f %{buildroot}%{_datadir}/mysql/config.medium.ini
461 rm -f %{buildroot}%{_datadir}/mysql/config.small.ini
462 rm -f %{buildroot}%{_datadir}/mysql/mysqld_multi.server
463 rm -f %{buildroot}%{_datadir}/mysql/mysql-log-rotate
464 rm -f %{buildroot}%{_datadir}/mysql/mysql.server
465 rm -f %{buildroot}%{_datadir}/mysql/ndb-config-2-node.ini
466 rm -f %{buildroot}%{_datadir}/mysql/binary-configure
467 rm -f %{buildroot}%{_mandir}/man1/make_win_bin_dist.1*
468 rm -f %{buildroot}%{_mandir}/man1/make_win_src_distribution.1*
469 rm -f %{buildroot}%{_datadir}/mysql/magic
470
471 # no idea how to fix this
472 rm -rf %{buildroot}%{_prefix}/data
473 rm -rf %{buildroot}%{_prefix}/docs
474 rm -rf %{buildroot}%{_prefix}/scripts
475 rm -f %{buildroot}%{_prefix}/COPYING
476 rm -f %{buildroot}%{_prefix}/INSTALL-BINARY
477 rm -f %{buildroot}%{_prefix}/README
478
479 %multiarch_binaries %{buildroot}%{_bindir}/mysql_config
480 %multiarch_includes %{buildroot}%{_includedir}/mysql/my_config.h
481
482 cat > README.urpmi <<EOF
483
484 NOTE: MariaDB is installed without root password, it is recommended to set the
485 root password as soon as possible:
486
487 mysqladmin password 'new_password'
488
489 The initscript used to start mysql has been reverted to use the one shipped
490 by MariaDB. This means the following changes:
491
492 * The generation of the initial system mysql database is now done when mysql
493 is started from the initscript and only if the /var/lib/mysql/mysql
494 directory is empty (mysql_install_db). Previousely this was quite hidden and
495 silently done at (rpm) install time. As a consequence to this change you may
496 have to perform some manual tasks to upgrade the mysql system database and
497 such. So, doing something like this might help you:
498
499 /etc/rc.d/init.d/mysqld stop
500 TMPDIR=/var/tmp mysql_install_db
501 mysql_upgrade
502
503 The cluster functionalities (ndb) has been deactivated and will be removed in
504 future mysql versions. Oracle has a new product named mysql-cluster that
505 replaces the cluster functionalities.
506
507 The mysql-common-core package ships with a default /etc/my.cnf file that is
508 based on the my-medium.cnf file that comes with the source code.
509 EOF
510
511 ################################################################################
512 # run the tests
513 %if %{build_test}
514 # disable failing tests
515 echo "rpl_trigger : Unstable test case" >> mysql-test/t/disabled.def
516 echo "type_enum : Unstable test case" >> mysql-test/t/disabled.def
517 echo "windows : For MS Windows only" >> mysql-test/t/disabled.def
518 pushd build/mysql-test
519 export LANG=C
520 export LC_ALL=C
521 export LANGUAGE=C
522 perl ./mysql-test-run.pl \
523 --mtr-build-thread="$((${RANDOM} % 100))" \
524 --skip-ndb \
525 --timer \
526 --retry=0 \
527 --ssl \
528 --mysqld=--binlog-format=mixed \
529 --testcase-timeout=60 \
530 --suite-timeout=120 || false
531 popd
532 %endif
533
534 %pre
535 # enable plugins
536 if [ -f %{_sysconfdir}/my.cnf ]; then
537 perl -pi -e "s|^#plugin-load|plugin-load|g" %{_sysconfdir}/my.cnf
538 perl -pi -e "s|^#federated|federated|g" %{_sysconfdir}/my.cnf
539 fi
540
541 %pre common
542 # delete the mysql group if no mysql user is found, before adding the user
543 if [ -z "`getent passwd %{muser}`" ] && ! [ -z "`getent group %{muser}`" ]; then
544 %{_sbindir}/groupdel %{muser} 2> /dev/null || :
545 fi
546
547 %_pre_useradd %{muser} /var/lib/mysql /bin/bash
548
549 %post
550 %_post_service mysqld
551
552 %preun
553 %_preun_service mysqld
554
555 %postun
556 if [ "$1" = "0" ]; then
557 if [ -f /var/lock/subsys/mysqld ]; then
558 %{_initrddir}/mysqld restart > /dev/null 2>/dev/null || :
559 fi
560 fi
561
562 %pre common-core
563 # enable plugins
564 if [ -f %{_sysconfdir}/my.cnf ]; then
565 perl -pi -e "s|^#plugin-load|plugin-load|g" %{_sysconfdir}/my.cnf
566 perl -pi -e "s|^#federated|federated|g" %{_sysconfdir}/my.cnf
567 fi
568
569 %files
570 %doc README.urpmi
571 %{_initrddir}/mysqld
572 %_sysconfdir/tmpfiles.d/mysql.conf
573 /lib/systemd/system/mysqld.service
574 %{_sbindir}/mysqld-prepare-db-dir
575 %{_sbindir}/mysqld-wait-ready
576 %dir %{_libdir}/mysql/plugin
577 %{_libdir}/mysql/plugin/adt_null.so
578 %{_libdir}/mysql/plugin/auth_socket.so
579 %{_libdir}/mysql/plugin/auth_test_plugin.so
580 %{_libdir}/mysql/plugin/dialog.so
581 %{_libdir}/mysql/plugin/dialog_examples.so
582 %{_libdir}/mysql/plugin/ha_archive.so
583 %{_libdir}/mysql/plugin/ha_blackhole.so
584 %{_libdir}/mysql/plugin/ha_federated.so
585 %{_libdir}/mysql/plugin/ha_federatedx.so
586 %{_libdir}/mysql/plugin/ha_innodb.so
587 %{_libdir}/mysql/plugin/ha_oqgraph.so
588 %{_libdir}/mysql/plugin/ha_sphinx.so
589 %{_libdir}/mysql/plugin/mypluglib.so
590 %{_libdir}/mysql/plugin/mysql_clear_password.so
591 %{_libdir}/mysql/plugin/qa_auth_client.so
592 %{_libdir}/mysql/plugin/qa_auth_interface.so
593 %{_libdir}/mysql/plugin/qa_auth_server.so
594 %{_libdir}/mysql/plugin/semisync_master.so
595 %{_libdir}/mysql/plugin/semisync_slave.so
596
597 %files client
598 %config(noreplace) %{_sysconfdir}/mysqlaccess.conf
599 %{_bindir}/msql2mysql
600 %{_bindir}/mysql
601 %{_bindir}/mysqlaccess
602 %{_bindir}/mysqladmin
603 %{_bindir}/mysqlanalyze
604 %{_bindir}/mysqlbinlog
605 %{_bindir}/mysqlcheck
606 %{_bindir}/mysqldump
607 %{_bindir}/mysqldumpslow
608 %{_bindir}/mysql_find_rows
609 %{_bindir}/mysqlimport
610 %{_bindir}/mysqloptimize
611 %{_bindir}/mysqlrepair
612 %{_bindir}/mysqlshow
613 %{_bindir}/mysqlslap
614 %{_bindir}/mysql_waitpid
615 %{_mandir}/man1/msql2mysql.1*
616 %{_mandir}/man1/myisam_ftdump.1*
617 %{_mandir}/man1/mysql.1*
618 %{_mandir}/man1/mysqlaccess.1*
619 %{_mandir}/man1/mysqladmin.1*
620 %{_mandir}/man1/mysqlbinlog.1*
621 %{_mandir}/man1/mysqlcheck.1*
622 %{_mandir}/man1/mysqldump.1*
623 %{_mandir}/man1/mysqldumpslow.1*
624 %{_mandir}/man1/mysql_find_rows.1*
625 %{_mandir}/man1/mysqlimport.1*
626 %{_mandir}/man1/mysqlshow.1*
627 %{_mandir}/man1/mysql_waitpid.1*
628
629 %files bench
630 %doc build/sql-bench/README
631 %{_bindir}/my_safe_process
632 %{_bindir}/mysql_client_test
633 %{_bindir}/mysql_client_test_embedded
634 %{_bindir}/mysqltest_embedded
635 %{_datadir}/mysql/sql-bench
636 %attr(-,mysql,mysql) %{_datadir}/mysql/mysql-test
637 %{_mandir}/man1/mysql-stress-test.pl.1*
638 %{_mandir}/man1/mysql-test-run.pl.1*
639 %{_mandir}/man1/mysql_client_test.1*
640 %{_mandir}/man1/mysql_client_test_embedded.1*
641 %{_mandir}/man1/mysqltest.1*
642 %{_mandir}/man1/mysqltest_embedded.1*
643
644 %files core
645 %{_sbindir}/mysqld
646
647 %files common-core
648 %config(noreplace) %{_sysconfdir}/my.cnf
649 %dir %{_datadir}/mysql
650 %{_datadir}/mysql/english
651 %{_datadir}/mysql/charsets
652
653 %files common
654 %doc README COPYING
655 %config(noreplace) %{_sysconfdir}/sysconfig/mysqld
656 %{_bindir}/aria_chk
657 %{_bindir}/aria_dump_log
658 %{_bindir}/aria_ftdump
659 %{_bindir}/aria_pack
660 %{_bindir}/aria_read_log
661 %{_bindir}/innochecksum
662 %{_bindir}/myisamchk
663 %{_bindir}/myisam_ftdump
664 %{_bindir}/myisamlog
665 %{_bindir}/myisampack
666 %{_bindir}/my_print_defaults
667 %{_bindir}/mysqlbug
668 %{_bindir}/mysql_convert_table_format
669 %{_bindir}/mysqld_multi
670 %{_bindir}/mysqld_safe
671 %{_bindir}/mysql_fix_extensions
672 %{_bindir}/mysqlhotcopy
673 %{_bindir}/mysql_install_db
674 %{_bindir}/mysql_secure_installation
675 %{_bindir}/mysql_setpermission
676 %{_bindir}/mysqltest
677 %{_bindir}/mysql_tzinfo_to_sql
678 %{_bindir}/mysql_upgrade
679 %{_bindir}/mysql_zap
680 %{_bindir}/perror
681 %{_bindir}/replace
682 %{_bindir}/resolveip
683 %{_bindir}/resolve_stack_dump
684 %attr(0755,%{muser},%{muser}) %dir /var/lib/mysql
685 %attr(0755,%{muser},%{muser}) %dir /var/lib/mysql/mysql
686 %attr(0755,%{muser},%{muser}) %dir /var/lib/mysql/test
687 %attr(0755,%{muser},%{muser}) %dir %{_var}/run/mysqld
688 %attr(0755,%{muser},%{muser}) %dir %{_var}/log/mysqld
689 %{_datadir}/mysql/*.cnf
690 %{_datadir}/mysql/fill_help_tables.sql
691 %{_datadir}/mysql/mysql_system_tables.sql
692 %{_datadir}/mysql/mysql_system_tables_data.sql
693 %{_datadir}/mysql/mysql_test_data_timezone.sql
694 %{_datadir}/mysql/errmsg-utf8.txt
695 %{_datadir}/mysql/czech
696 %{_datadir}/mysql/danish
697 %{_datadir}/mysql/dutch
698 %{_datadir}/mysql/estonian
699 %{_datadir}/mysql/french
700 %{_datadir}/mysql/german
701 %{_datadir}/mysql/greek
702 %{_datadir}/mysql/hungarian
703 %{_datadir}/mysql/italian
704 %{_datadir}/mysql/japanese
705 %{_datadir}/mysql/korean
706 %{_datadir}/mysql/norwegian
707 %{_datadir}/mysql/norwegian-ny
708 %{_datadir}/mysql/polish
709 %{_datadir}/mysql/portuguese
710 %{_datadir}/mysql/romanian
711 %{_datadir}/mysql/russian
712 %{_datadir}/mysql/serbian
713 %{_datadir}/mysql/slovak
714 %{_datadir}/mysql/spanish
715 %{_datadir}/mysql/swedish
716 %{_datadir}/mysql/ukrainian
717 %{_mandir}/man1/innochecksum.1*
718 %{_mandir}/man1/myisamchk.1*
719 %{_mandir}/man1/myisamlog.1*
720 %{_mandir}/man1/myisampack.1*
721 %{_mandir}/man1/my_print_defaults.1*
722 %{_mandir}/man1/mysqlbug.1*
723 %{_mandir}/man1/mysql_convert_table_format.1*
724 %{_mandir}/man1/mysqld_multi.1*
725 %{_mandir}/man1/mysqld_safe.1*
726 %{_mandir}/man1/mysql_fix_extensions.1*
727 %{_mandir}/man1/mysql_fix_privilege_tables.1*
728 %{_mandir}/man1/mysqlhotcopy.1*
729 %{_mandir}/man1/mysql_install_db.1*
730 %{_mandir}/man1/mysqlman.1*
731 %{_mandir}/man1/mysql_secure_installation.1*
732 %{_mandir}/man1/mysql.server.1*
733 %{_mandir}/man1/mysql_setpermission.1*
734 %{_mandir}/man1/mysqlslap.1*
735 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
736 %{_mandir}/man1/mysql_upgrade.1*
737 %{_mandir}/man1/mysql_zap.1*
738 %{_mandir}/man1/ndbd_redo_log_reader.1*
739 %{_mandir}/man1/perror.1*
740 %{_mandir}/man1/replace.1*
741 %{_mandir}/man1/resolveip.1*
742 %{_mandir}/man1/resolve_stack_dump.1*
743 %{_mandir}/man8/mysqld.8*
744 %{_mandir}/man8/mysqlmanager.8*
745 %{_mandir}/man8/ndbd.8*
746 %{_mandir}/man8/ndbmtd.8*
747
748 %files -n %{libname}
749 %{_libdir}/libmysqlclient.so.%{major}*
750 # not sure about this one...
751
752 %files -n %{libmariadbservices}
753 %{_libdir}/libmysqlservices.so
754
755 %files -n %{develname}
756 %doc INSTALL-SOURCE
757 %multiarch %{multiarch_bindir}/mysql_config
758 %{_bindir}/mysql_config
759 %{_libdir}/libmysqlclient_r.so
760 %{_libdir}/libmysqlclient.so
761 %dir %{_includedir}/mysql
762 %dir %{_includedir}/mysql/psi
763 %{_includedir}/mysql/*.h
764 %{_includedir}/mysql/psi/*.h
765 %multiarch %{multiarch_includedir}/mysql/my_config.h
766 %{_mandir}/man1/comp_err.1*
767 %{_mandir}/man1/mysql_config.1*
768 %{_datadir}/aclocal/mysql.m4
769
770 %files -n %{libmariadbembedded}
771 %doc README COPYING
772 %{_libdir}/libmysqld.so.%{libmariadbembedded_major}*
773
774 %files -n %{libmariadbembedded_devel}
775 %{_libdir}/libmysqld.so
776 %{_bindir}/mysql_client_test_embedded
777 %{_bindir}/mysqltest_embedded
778 %{_mandir}/man1/mysql_client_test_embedded.1*
779 %{_mandir}/man1/mysqltest_embedded.1*

  ViewVC Help
Powered by ViewVC 1.1.28