/[packages]/cauldron/mariadb/current/SPECS/mariadb.spec
ViewVC logotype

Contents of /cauldron/mariadb/current/SPECS/mariadb.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 175261 - (show annotations) (download)
Fri Dec 2 21:52:40 2011 UTC (12 years, 4 months ago) by alien
File size: 25830 byte(s)
- Forgot mysql-devel provides (SILENT)
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 snapshotdate 20111107
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.bzr%snapshotdate.5
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 Provides: %mklibname -d mysql
256 Provides: mysql-devel
257
258 %description -n %{develname}
259 This package contains the development header files and libraries necessary to
260 develop MariaDB client applications.
261
262 %package -n %{libmariadbembedded}
263 Summary: MariaDB as an embeddable library
264 Group: System/Libraries
265 Provides: %{name}-embedded = %{version}-%{release}
266 Obsoletes: %{name}-embedded < 5.5.10-6
267 Provides: %mklibname mysqld %{libmariadbembedded_major}
268
269 %description -n %{libmariadbembedded}
270 MariaDB is a multi-user, multi-threaded SQL database server. This
271 package contains a version of the MariaDB server that can be embedded
272 into a client application instead of running as a separate process.
273
274 The API is identical for the embedded MariaDB version and the client/server
275 version.
276
277 %package -n %{libmariadbembedded_devel}
278 Summary: Development files for MySQL as an embeddable library
279 Group: Development/Other
280 Provides: %{name}-embedded-devel = %{version}-%{release}
281 Obsoletes: %{name}-embedded-devel < 5.5.10-6
282 Requires: %{libmariadbembedded} = %{version}-%{release}
283 Requires: %{name}-devel = %{version}-%{release}
284 Provides: %mklibname -d mysqld
285
286 %description -n %{libmariadbembedded_devel}
287 MariaDB is a multi-user, multi-threaded SQL database server. This
288 package contains files needed for developing and testing with
289 the embedded version of the MariaDB server.
290
291 The API is identical for the embedded MariaDB version and the client/server
292 version.
293
294 %prep
295 %setup -q -n %{name}-%{version}-MariaDB
296 %apply_patches
297
298 mkdir -p Mageia
299 cp %{SOURCE2} Mageia/mysqld.sysconfig
300 cp %{SOURCE3} Mageia/my.cnf
301
302 # lib64 fix
303 perl -pi -e "s|/usr/lib/|%{_libdir}/|g" Mageia/my.cnf
304
305 # antiborker
306 perl -pi -e "s|\@bindir\@|%{_bindir}|g" support-files/* scripts/*
307 perl -pi -e "s|\@sbindir\@|%{_sbindir}|g" support-files/* scripts/*
308 perl -pi -e "s|\@libexecdir\@|%{_sbindir}|g" support-files/* scripts/*
309 perl -pi -e "s|\@localstatedir\@|/var/lib/mysql|g" support-files/* scripts/*
310 perl -pi -e "s|^basedir=.*|basedir=%{_prefix}|g" support-files/* scripts/mysql_install_db*
311
312 # this may be part of the problems with mysql-test
313 # http://bugs.mysql.com/bug.php?id=52223
314 #perl -pi -e "s|basedir/lib\b|basedir/%{_lib}\b|g" mysql-test/mysql-test-run.pl
315 #perl -pi -e "s|basedir/lib/|basedir/%{_lib}/|g" mysql-test/mysql-test-run.pl
316
317 # workaround for upstream bug #56342
318 rm -f mysql-test/t/ssl_8k_key-master.opt
319
320 # upstream has fallen down badly on symbol versioning, do it ourselves
321 cp %{SOURCE4} libmysql/libmysql.version
322
323 %build
324 %serverbuild
325 export CFLAGS="${CFLAGS:-%{optflags}}"
326 export CXXFLAGS="${CXXFLAGS:-%{optflags}}"
327 export FFLAGS="${FFLAGS:-%{optflags}}"
328
329 %cmake \
330 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
331 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
332 -DINSTALL_SBINDIR=sbin \
333 -DMYSQL_DATADIR=/var/lib/mysql \
334 -DSYSCONFDIR=%{_sysconfdir} \
335 -DINSTALL_PLUGINDIR=%{_lib}/mysql/plugin \
336 -DINSTALL_MANDIR=share/man \
337 -DINSTALL_SHAREDIR=share/mysql \
338 -DINSTALL_LIBDIR=%{_lib} \
339 -DINSTALL_INCLUDEDIR=include/mysql \
340 -DINSTALL_INFODIR=share/info \
341 -DINSTALL_MYSQLDATADIR=/var/lib/mysql \
342 -DINSTALL_MYSQLTESTDIR=share/mysql/mysql-test \
343 -DINSTALL_SQLBENCHDIR=share/mysql \
344 -DINSTALL_SUPPORTFILESDIR=share/mysql \
345 -DINSTALL_MYSQLSHAREDIR=share/mysql \
346 -DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock \
347 -DWITH_READLINE=0 \
348 -DWITH_LIBEDIT=0 \
349 -DWITH_LIBWRAP=1 \
350 -DWITH_SSL=system \
351 -DWITH_ZLIB=system \
352 -DWITH_PIC=1 \
353 -DMYSQL_TCP_PORT=3306 \
354 -DEXTRA_CHARSETS=all \
355 -DENABLED_LOCAL_INFILE=1 \
356 -DENABLE_DTRACE=1 \
357 -DWITH_EMBEDDED_SERVER=1 \
358 -DMYSQL_USER=%{muser} \
359 %if %{build_debug}
360 -DWITH_DEBUG=1 \
361 %else
362 -DWITH_DEBUG=0 \
363 %endif
364 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
365 -DWITHOUT_NDBCLUSTER_STORAGE_ENGINE=1 \
366 -DWITHOUT_DAEMON_EXAMPLE=1 \
367 -DWITH_PLUGIN_PBXT=1 \
368 -DFEATURE_SET="community" \
369 -DCOMPILATION_COMMENT="Mageia - MariaDB Community Edition (GPL)"
370
371 cp ../libmysql/libmysql.version libmysql/libmysql.version
372
373 %make
374
375 %install
376 rm -rf %{buildroot}
377
378 # don't fiddle with the initscript!
379 export DONT_GPRINTIFY=1
380
381 %if %{build_debug}
382 export DONT_STRIP=1
383 %endif
384
385 install -d %{buildroot}%{_sysconfdir}/sysconfig
386 install -d %{buildroot}%{_initrddir}
387 install -d %{buildroot}%{_var}/run/mysqld
388 install -d %{buildroot}%{_var}/log/mysqld
389 install -d %{buildroot}/var/lib/mysql/{mysql,test}
390
391 %makeinstall_std -C build
392
393 # install init scripts
394 install -m0755 build/support-files/mysql.server %{buildroot}%{_initrddir}/mysqld
395
396 # install configuration files
397 install -m0644 Mageia/mysqld.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/mysqld
398 install -m0644 Mageia/my.cnf %{buildroot}%{_sysconfdir}/my.cnf
399
400 mkdir -p %{buildroot}/etc/tmpfiles.d
401 install -m 0644 %{SOURCE10} %{buildroot}/etc/tmpfiles.d/mysql.conf
402 mkdir -p %{buildroot}/lib/systemd/system
403 install -m 644 %{SOURCE11} %{buildroot}/lib/systemd/system
404 install -m 755 %{SOURCE12} %{buildroot}%{_sbindir}/mysqld-prepare-db-dir
405 install -m 755 %{SOURCE13} %{buildroot}%{_sbindir}/mysqld-wait-ready
406
407 # bork
408 mv %{buildroot}%{_bindir}/mysqlaccess.conf %{buildroot}%{_sysconfdir}/
409 chmod 644 %{buildroot}%{_sysconfdir}/mysqlaccess.conf
410 mv %{buildroot}%{_prefix}/scripts/mysql_install_db %{buildroot}%{_bindir}/
411 mv %{buildroot}%{_datadir}/mysql/aclocal %{buildroot}%{_datadir}/aclocal
412
413 pushd %{buildroot}%{_bindir}
414 ln -sf mysqlcheck mysqlrepair
415 ln -sf mysqlcheck mysqlanalyze
416 ln -sf mysqlcheck mysqloptimize
417 popd
418
419 # nuke -Wl,--as-needed from the mysql_config file
420 perl -pi -e "s|^ldflags=.*|ldflags=\'-rdynamic\'|g" %{buildroot}%{_bindir}/mysql_config
421
422 # cmake generates some completely wacko references to -lprobes_mysql when
423 # building with dtrace support. Haven't found where to shut that off,
424 # so resort to this blunt instrument. While at it, let's not reference
425 # libmysqlclient_r anymore either.
426 sed -e 's/-lprobes_mysql//' -e 's/-lmysqlclient_r/-lmysqlclient/' \
427 %{buildroot}%{_bindir}/mysql_config >mysql_config.tmp
428 cp -f mysql_config.tmp %{buildroot}%{_bindir}/mysql_config
429 chmod 755 %{buildroot}%{_bindir}/mysql_config
430 install -m 0755 -d %{buildroot}/var/lib/mysql
431
432 # Remove libmysqld.a, install libmysqld.so
433 rm -f %{buildroot}%{_libdir}/libmysqld.a
434 mv %{buildroot}%{_libdir}/libmysqld.so %{buildroot}%{_libdir}/libmysqld.so.%{libmariadbembedded_major}.%{libmariadbembedded_minor}
435 ln -s libmysqld.so.%{libmariadbembedded_major}.%{libmariadbembedded_minor} %{buildroot}%{_libdir}/libmysqld.so.%{libmariadbembedded_major}
436 ln -s libmysqld.so.%{libmariadbembedded_major} %{buildroot}%{_libdir}/libmysqld.so
437
438 # libmysqlclient_r is no more. Upstream tries to replace it with symlinks
439 # but that really doesn't work (wrong soname in particular). We'll keep
440 # just the devel libmysqlclient_r.so link, so that rebuilding without any
441 # source change is enough to get rid of dependency on libmysqlclient_r.
442 rm -f %{buildroot}%{_libdir}/libmysqlclient_r.so*
443 ln -s libmysqlclient.so %{buildroot}%{_libdir}/libmysqlclient_r.so
444
445 # remove static libs
446 rm -f %{buildroot}%{_libdir}/libmysqlclient.a
447 rm -f %{buildroot}%{_libdir}/libmysqlclient_r.a
448
449 # mysql-test includes one executable that doesn't belong under /usr/share,
450 # so move it and provide a symlink
451 mv %{buildroot}%{_datadir}/mysql/mysql-test/lib/My/SafeProcess/my_safe_process %{buildroot}%{_bindir}
452 ln -s %{_bindir}/my_safe_process %{buildroot}%{_datadir}/mysql/mysql-test/lib/My/SafeProcess/my_safe_process
453
454 # house cleaning
455 rm -rf %{buildroot}%{_datadir}/info
456 rm -f %{buildroot}%{_bindir}/client_test
457 rm -f %{buildroot}%{_bindir}/make_win_binary_distribution
458 rm -f %{buildroot}%{_bindir}/make_win_src_distribution
459 rm -f %{buildroot}%{_datadir}/mysql/binary-configure
460 rm -f %{buildroot}%{_datadir}/mysql/config.huge.ini
461 rm -f %{buildroot}%{_datadir}/mysql/config.medium.ini
462 rm -f %{buildroot}%{_datadir}/mysql/config.small.ini
463 rm -f %{buildroot}%{_datadir}/mysql/mysqld_multi.server
464 rm -f %{buildroot}%{_datadir}/mysql/mysql-log-rotate
465 rm -f %{buildroot}%{_datadir}/mysql/mysql.server
466 rm -f %{buildroot}%{_datadir}/mysql/ndb-config-2-node.ini
467 rm -f %{buildroot}%{_datadir}/mysql/binary-configure
468 rm -f %{buildroot}%{_mandir}/man1/make_win_bin_dist.1*
469 rm -f %{buildroot}%{_mandir}/man1/make_win_src_distribution.1*
470 rm -f %{buildroot}%{_datadir}/mysql/magic
471
472 # no idea how to fix this
473 rm -rf %{buildroot}%{_prefix}/data
474 rm -rf %{buildroot}%{_prefix}/docs
475 rm -rf %{buildroot}%{_prefix}/scripts
476 rm -f %{buildroot}%{_prefix}/COPYING
477 rm -f %{buildroot}%{_prefix}/INSTALL-BINARY
478 rm -f %{buildroot}%{_prefix}/README
479
480 %multiarch_binaries %{buildroot}%{_bindir}/mysql_config
481 %multiarch_includes %{buildroot}%{_includedir}/mysql/my_config.h
482
483 cat > README.urpmi <<EOF
484
485 NOTE: MariaDB is installed without root password, it is recommended to set the
486 root password as soon as possible:
487
488 mysqladmin password 'new_password'
489
490 The initscript used to start mysql has been reverted to use the one shipped
491 by MariaDB. This means the following changes:
492
493 * The generation of the initial system mysql database is now done when mysql
494 is started from the initscript and only if the /var/lib/mysql/mysql
495 directory is empty (mysql_install_db). Previousely this was quite hidden and
496 silently done at (rpm) install time. As a consequence to this change you may
497 have to perform some manual tasks to upgrade the mysql system database and
498 such. So, doing something like this might help you:
499
500 /etc/rc.d/init.d/mysqld stop
501 TMPDIR=/var/tmp mysql_install_db
502 mysql_upgrade
503
504 The cluster functionalities (ndb) has been deactivated and will be removed in
505 future mysql versions. Oracle has a new product named mysql-cluster that
506 replaces the cluster functionalities.
507
508 The mysql-common-core package ships with a default /etc/my.cnf file that is
509 based on the my-medium.cnf file that comes with the source code.
510 EOF
511
512 ################################################################################
513 # run the tests
514 %if %{build_test}
515 # disable failing tests
516 echo "rpl_trigger : Unstable test case" >> mysql-test/t/disabled.def
517 echo "type_enum : Unstable test case" >> mysql-test/t/disabled.def
518 echo "windows : For MS Windows only" >> mysql-test/t/disabled.def
519 pushd build/mysql-test
520 export LANG=C
521 export LC_ALL=C
522 export LANGUAGE=C
523 perl ./mysql-test-run.pl \
524 --mtr-build-thread="$((${RANDOM} % 100))" \
525 --skip-ndb \
526 --timer \
527 --retry=0 \
528 --ssl \
529 --mysqld=--binlog-format=mixed \
530 --testcase-timeout=60 \
531 --suite-timeout=120 || false
532 popd
533 %endif
534
535 %pre
536 # enable plugins
537 if [ -f %{_sysconfdir}/my.cnf ]; then
538 perl -pi -e "s|^#plugin-load|plugin-load|g" %{_sysconfdir}/my.cnf
539 perl -pi -e "s|^#federated|federated|g" %{_sysconfdir}/my.cnf
540 fi
541
542 %pre common
543 # delete the mysql group if no mysql user is found, before adding the user
544 if [ -z "`getent passwd %{muser}`" ] && ! [ -z "`getent group %{muser}`" ]; then
545 %{_sbindir}/groupdel %{muser} 2> /dev/null || :
546 fi
547
548 %_pre_useradd %{muser} /var/lib/mysql /bin/bash
549
550 %post
551 %_post_service mysqld
552
553 %preun
554 %_preun_service mysqld
555
556 %postun
557 if [ "$1" = "0" ]; then
558 if [ -f /var/lock/subsys/mysqld ]; then
559 %{_initrddir}/mysqld restart > /dev/null 2>/dev/null || :
560 fi
561 fi
562
563 %pre common-core
564 # enable plugins
565 if [ -f %{_sysconfdir}/my.cnf ]; then
566 perl -pi -e "s|^#plugin-load|plugin-load|g" %{_sysconfdir}/my.cnf
567 perl -pi -e "s|^#federated|federated|g" %{_sysconfdir}/my.cnf
568 fi
569
570 %files
571 %doc README.urpmi
572 %{_initrddir}/mysqld
573 %_sysconfdir/tmpfiles.d/mysql.conf
574 /lib/systemd/system/mysqld.service
575 %{_sbindir}/mysqld-prepare-db-dir
576 %{_sbindir}/mysqld-wait-ready
577 %dir %{_libdir}/mysql/plugin
578 %{_libdir}/mysql/plugin/adt_null.so
579 %{_libdir}/mysql/plugin/auth_socket.so
580 %{_libdir}/mysql/plugin/auth_test_plugin.so
581 %{_libdir}/mysql/plugin/dialog.so
582 %{_libdir}/mysql/plugin/dialog_examples.so
583 %{_libdir}/mysql/plugin/ha_archive.so
584 %{_libdir}/mysql/plugin/ha_blackhole.so
585 %{_libdir}/mysql/plugin/ha_federated.so
586 %{_libdir}/mysql/plugin/ha_federatedx.so
587 %{_libdir}/mysql/plugin/ha_innodb.so
588 %{_libdir}/mysql/plugin/ha_oqgraph.so
589 %{_libdir}/mysql/plugin/ha_sphinx.so
590 %{_libdir}/mysql/plugin/mypluglib.so
591 %{_libdir}/mysql/plugin/mysql_clear_password.so
592 %{_libdir}/mysql/plugin/qa_auth_client.so
593 %{_libdir}/mysql/plugin/qa_auth_interface.so
594 %{_libdir}/mysql/plugin/qa_auth_server.so
595 %{_libdir}/mysql/plugin/semisync_master.so
596 %{_libdir}/mysql/plugin/semisync_slave.so
597
598 %files client
599 %config(noreplace) %{_sysconfdir}/mysqlaccess.conf
600 %{_bindir}/msql2mysql
601 %{_bindir}/mysql
602 %{_bindir}/mysqlaccess
603 %{_bindir}/mysqladmin
604 %{_bindir}/mysqlanalyze
605 %{_bindir}/mysqlbinlog
606 %{_bindir}/mysqlcheck
607 %{_bindir}/mysqldump
608 %{_bindir}/mysqldumpslow
609 %{_bindir}/mysql_find_rows
610 %{_bindir}/mysqlimport
611 %{_bindir}/mysqloptimize
612 %{_bindir}/mysqlrepair
613 %{_bindir}/mysqlshow
614 %{_bindir}/mysqlslap
615 %{_bindir}/mysql_waitpid
616 %{_mandir}/man1/msql2mysql.1*
617 %{_mandir}/man1/myisam_ftdump.1*
618 %{_mandir}/man1/mysql.1*
619 %{_mandir}/man1/mysqlaccess.1*
620 %{_mandir}/man1/mysqladmin.1*
621 %{_mandir}/man1/mysqlbinlog.1*
622 %{_mandir}/man1/mysqlcheck.1*
623 %{_mandir}/man1/mysqldump.1*
624 %{_mandir}/man1/mysqldumpslow.1*
625 %{_mandir}/man1/mysql_find_rows.1*
626 %{_mandir}/man1/mysqlimport.1*
627 %{_mandir}/man1/mysqlshow.1*
628 %{_mandir}/man1/mysql_waitpid.1*
629
630 %files bench
631 %doc build/sql-bench/README
632 %{_bindir}/my_safe_process
633 %{_bindir}/mysql_client_test
634 %{_bindir}/mysql_client_test_embedded
635 %{_bindir}/mysqltest_embedded
636 %{_datadir}/mysql/sql-bench
637 %attr(-,mysql,mysql) %{_datadir}/mysql/mysql-test
638 %{_mandir}/man1/mysql-stress-test.pl.1*
639 %{_mandir}/man1/mysql-test-run.pl.1*
640 %{_mandir}/man1/mysql_client_test.1*
641 %{_mandir}/man1/mysql_client_test_embedded.1*
642 %{_mandir}/man1/mysqltest.1*
643 %{_mandir}/man1/mysqltest_embedded.1*
644
645 %files core
646 %{_sbindir}/mysqld
647
648 %files common-core
649 %config(noreplace) %{_sysconfdir}/my.cnf
650 %dir %{_datadir}/mysql
651 %{_datadir}/mysql/english
652 %{_datadir}/mysql/charsets
653
654 %files common
655 %doc README COPYING
656 %config(noreplace) %{_sysconfdir}/sysconfig/mysqld
657 %{_bindir}/aria_chk
658 %{_bindir}/aria_dump_log
659 %{_bindir}/aria_ftdump
660 %{_bindir}/aria_pack
661 %{_bindir}/aria_read_log
662 %{_bindir}/innochecksum
663 %{_bindir}/myisamchk
664 %{_bindir}/myisam_ftdump
665 %{_bindir}/myisamlog
666 %{_bindir}/myisampack
667 %{_bindir}/my_print_defaults
668 %{_bindir}/mysqlbug
669 %{_bindir}/mysql_convert_table_format
670 %{_bindir}/mysqld_multi
671 %{_bindir}/mysqld_safe
672 %{_bindir}/mysql_fix_extensions
673 %{_bindir}/mysqlhotcopy
674 %{_bindir}/mysql_install_db
675 %{_bindir}/mysql_secure_installation
676 %{_bindir}/mysql_setpermission
677 %{_bindir}/mysqltest
678 %{_bindir}/mysql_tzinfo_to_sql
679 %{_bindir}/mysql_upgrade
680 %{_bindir}/mysql_zap
681 %{_bindir}/perror
682 %{_bindir}/replace
683 %{_bindir}/resolveip
684 %{_bindir}/resolve_stack_dump
685 %attr(0755,%{muser},%{muser}) %dir /var/lib/mysql
686 %attr(0755,%{muser},%{muser}) %dir /var/lib/mysql/mysql
687 %attr(0755,%{muser},%{muser}) %dir /var/lib/mysql/test
688 %attr(0755,%{muser},%{muser}) %dir %{_var}/run/mysqld
689 %attr(0755,%{muser},%{muser}) %dir %{_var}/log/mysqld
690 %{_datadir}/mysql/*.cnf
691 %{_datadir}/mysql/fill_help_tables.sql
692 %{_datadir}/mysql/mysql_system_tables.sql
693 %{_datadir}/mysql/mysql_system_tables_data.sql
694 %{_datadir}/mysql/mysql_test_data_timezone.sql
695 %{_datadir}/mysql/errmsg-utf8.txt
696 %{_datadir}/mysql/czech
697 %{_datadir}/mysql/danish
698 %{_datadir}/mysql/dutch
699 %{_datadir}/mysql/estonian
700 %{_datadir}/mysql/french
701 %{_datadir}/mysql/german
702 %{_datadir}/mysql/greek
703 %{_datadir}/mysql/hungarian
704 %{_datadir}/mysql/italian
705 %{_datadir}/mysql/japanese
706 %{_datadir}/mysql/korean
707 %{_datadir}/mysql/norwegian
708 %{_datadir}/mysql/norwegian-ny
709 %{_datadir}/mysql/polish
710 %{_datadir}/mysql/portuguese
711 %{_datadir}/mysql/romanian
712 %{_datadir}/mysql/russian
713 %{_datadir}/mysql/serbian
714 %{_datadir}/mysql/slovak
715 %{_datadir}/mysql/spanish
716 %{_datadir}/mysql/swedish
717 %{_datadir}/mysql/ukrainian
718 %{_mandir}/man1/innochecksum.1*
719 %{_mandir}/man1/myisamchk.1*
720 %{_mandir}/man1/myisamlog.1*
721 %{_mandir}/man1/myisampack.1*
722 %{_mandir}/man1/my_print_defaults.1*
723 %{_mandir}/man1/mysqlbug.1*
724 %{_mandir}/man1/mysql_convert_table_format.1*
725 %{_mandir}/man1/mysqld_multi.1*
726 %{_mandir}/man1/mysqld_safe.1*
727 %{_mandir}/man1/mysql_fix_extensions.1*
728 %{_mandir}/man1/mysql_fix_privilege_tables.1*
729 %{_mandir}/man1/mysqlhotcopy.1*
730 %{_mandir}/man1/mysql_install_db.1*
731 %{_mandir}/man1/mysqlman.1*
732 %{_mandir}/man1/mysql_secure_installation.1*
733 %{_mandir}/man1/mysql.server.1*
734 %{_mandir}/man1/mysql_setpermission.1*
735 %{_mandir}/man1/mysqlslap.1*
736 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
737 %{_mandir}/man1/mysql_upgrade.1*
738 %{_mandir}/man1/mysql_zap.1*
739 %{_mandir}/man1/ndbd_redo_log_reader.1*
740 %{_mandir}/man1/perror.1*
741 %{_mandir}/man1/replace.1*
742 %{_mandir}/man1/resolveip.1*
743 %{_mandir}/man1/resolve_stack_dump.1*
744 %{_mandir}/man8/mysqld.8*
745 %{_mandir}/man8/mysqlmanager.8*
746 %{_mandir}/man8/ndbd.8*
747 %{_mandir}/man8/ndbmtd.8*
748
749 %files -n %{libname}
750 %{_libdir}/libmysqlclient.so.%{major}*
751 # not sure about this one...
752
753 %files -n %{libmariadbservices}
754 %{_libdir}/libmysqlservices.so
755
756 %files -n %{develname}
757 %doc INSTALL-SOURCE
758 %multiarch %{multiarch_bindir}/mysql_config
759 %{_bindir}/mysql_config
760 %{_libdir}/libmysqlclient_r.so
761 %{_libdir}/libmysqlclient.so
762 %dir %{_includedir}/mysql
763 %dir %{_includedir}/mysql/psi
764 %{_includedir}/mysql/*.h
765 %{_includedir}/mysql/psi/*.h
766 %multiarch %{multiarch_includedir}/mysql/my_config.h
767 %{_mandir}/man1/comp_err.1*
768 %{_mandir}/man1/mysql_config.1*
769 %{_datadir}/aclocal/mysql.m4
770
771 %files -n %{libmariadbembedded}
772 %doc README COPYING
773 %{_libdir}/libmysqld.so.%{libmariadbembedded_major}*
774
775 %files -n %{libmariadbembedded_devel}
776 %{_libdir}/libmysqld.so
777 %{_bindir}/mysql_client_test_embedded
778 %{_bindir}/mysqltest_embedded
779 %{_mandir}/man1/mysql_client_test_embedded.1*
780 %{_mandir}/man1/mysqltest_embedded.1*

  ViewVC Help
Powered by ViewVC 1.1.30