2 # - mysqldump ... (invalid usage) prints to stdout not stderr (idiotic if you want to create dump and get usage in .sql)
3 # - http://bugs.mysql.com/bug.php?id=16470
4 # - innodb are dynamic (= as plugins) ?
5 # - missing have_archive, have_merge
6 # - is plugin_dir lib64 safe?
7 # - Using NDB Cluster... could not find sci transporter in /{include, lib}
8 # - !!! Makefiles for libmysqld.so !!!
9 # - segfaults on select from non-mysql user (caused by builder environment):
10 # https://bugs.launchpad.net/pld-linux/+bug/381904
11 # (profiling disabled temporaily to workaround this)
14 %bcond_without innodb # InnoDB storage engine support
15 %bcond_without big_tables # Support tables with more than 4G rows even on 32 bit platforms
16 %bcond_without federated # Federated storage engine support
17 %bcond_without raid # RAID support
18 %bcond_without ssl # OpenSSL support
19 %bcond_without systemtap # systemtap/dtrace probes
20 %bcond_without tcpd # libwrap (tcp_wrappers) support
21 %bcond_with sphinx # Sphinx storage engine support
22 # mysql needs boost 1.72.0 and doesn't support newer/older boost versions
23 %bcond_with system_boost
24 %bcond_without tests # run test suite
25 %bcond_with ndb # NDB is now a separate product, this here is broken, so disable it
26 %bcond_without ldap # LDAP auth support
28 Summary: MySQL: a very fast and reliable SQL database engine
29 Summary(de.UTF-8): MySQL: ist eine SQL-Datenbank
30 Summary(fr.UTF-8): MySQL: un serveur SQL rapide et fiable
31 Summary(pl.UTF-8): MySQL: bardzo szybka i niezawodna baza danych (SQL)
32 Summary(pt_BR.UTF-8): MySQL: Um servidor SQL rápido e confiável
33 Summary(ru.UTF-8): MySQL - быстрый SQL-сервер
34 Summary(uk.UTF-8): MySQL - швидкий SQL-сервер
35 Summary(zh_CN.UTF-8): MySQL数据库服务器
39 License: GPL v2 + MySQL FOSS License Exception
40 Group: Applications/Databases
41 #Source0Download: https://dev.mysql.com/downloads/mysql/8.0.html#downloads
42 Source0: http://cdn.mysql.com/Downloads/MySQL-8.0/%{name}-%{version}.tar.gz
43 # Source0-md5: 7a63ac9044f9a87adc2644fea310a513
44 Source100: http://www.sphinxsearch.com/files/sphinx-2.2.11-release.tar.gz
45 # Source100-md5: 5cac34f3d78a9d612ca4301abfcbd666
46 %if %{without system_boost}
47 Source101: http://downloads.sourceforge.net/boost/boost_1_72_0.tar.bz2
48 # Source101-md5: cb40943d2a2cb8ce08d42bc48b0f84f0
51 Source2: %{name}.sysconfig
52 Source3: %{name}.logrotate
53 Source4: %{name}d.conf
54 Source5: %{name}-clusters.conf
55 Source7: %{name}-ndb.init
56 Source8: %{name}-ndb.sysconfig
57 Source9: %{name}-ndb-mgm.init
58 Source10: %{name}-ndb-mgm.sysconfig
59 Source11: %{name}-ndb-cpc.init
60 Source12: %{name}-ndb-cpc.sysconfig
61 Source13: %{name}-client.conf
63 Patch0: %{name}-opt.patch
65 Patch17: %{name}-5.7-sphinx.patch
66 Patch18: %{name}-sphinx.patch
67 Patch19: %{name}-chain-certs.patch
69 Patch24: %{name}-cmake.patch
70 Patch25: %{name}-readline.patch
72 Patch26: %{name}dumpslow-clusters.patch
73 URL: http://www.mysql.com/products/community/
74 BuildRequires: bison >= 1.875
75 %{?with_system_boost:BuildRequires: boost-devel >= 1.72.0}
76 BuildRequires: cmake >= 2.8.2
77 BuildRequires: libaio-devel
78 BuildRequires: libevent-devel
79 BuildRequires: libhsclient-devel
80 BuildRequires: libstdc++-devel >= 5:4.0
81 %{?with_tcpd:BuildRequires: libwrap-devel}
82 BuildRequires: lz4-devel
83 BuildRequires: mecab-devel
84 BuildRequires: ncurses-devel >= 4.2
85 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
86 %{?with_ldap:BuildRequires: openldap-devel}
87 BuildRequires: pam-devel
88 BuildRequires: perl-devel >= 1:5.6.1
89 BuildRequires: protobuf-devel >= 2.5
90 BuildRequires: python-modules
91 BuildRequires: readline-devel >= 6.2
92 BuildRequires: rpm-perlprov >= 4.1-13
93 BuildRequires: rpmbuild(macros) >= 1.597
94 BuildRequires: sed >= 4.0
95 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
96 BuildRequires: zlib-devel
97 Requires(post,preun): /sbin/chkconfig
98 Requires(postun): /usr/sbin/groupdel
99 Requires(postun): /usr/sbin/userdel
100 Requires(pre): /bin/id
101 Requires(pre): /usr/bin/getgid
102 Requires(pre): /usr/sbin/groupadd
103 Requires(pre): /usr/sbin/useradd
104 Requires(triggerpostun): sed >= 4.0
105 Requires: %{name}-charsets = %{version}-%{release}
106 Requires: %{name}-libs = %{version}-%{release}
107 Requires: /usr/bin/setsid
108 Requires: rc-scripts >= 0.2.0
109 Suggests: mysql-client
110 %{?with_tcpd:Suggests: tcp_wrappers}
111 Suggests: vim-syntax-mycnf
112 Provides: MySQL-server
113 Provides: group(mysql)
114 Provides: msqlormysql
115 Provides: user(mysql)
117 Obsoletes: mysql-server
118 Conflicts: logrotate < 3.8.0
119 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
121 %define _libexecdir %{_sbindir}
122 %define _localstatedir /var/lib/mysql
123 %define _mysqlhome /home/services/mysql
126 MySQL is a true multi-user, multi-threaded SQL (Structured Query
127 Language) database server. SQL is the most popular database language
128 in the world. MySQL is a client/server implementation that consists of
129 a server daemon mysqld and many different client programs/libraries.
131 The main goals of MySQL are speed, robustness and easy to use. MySQL
132 was originally developed because we at Tcx needed a SQL server that
133 could handle very big databases with magnitude higher speed than what
134 any database vendor could offer to us. We have now been using MySQL
135 since 1996 in a environment with more than 40 databases, 10,000
136 tables, of which more than 500 have more than 7 million rows. This is
137 about 50G of mission critical data.
139 The base upon which MySQL is built is a set of routines that have been
140 used in a highly demanding production environment for many years.
141 While MySQL is still in development, it already offers a rich and
142 highly useful function set.
144 %description -l fr.UTF-8
145 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
146 multi-taches. Le langage SQL est le langage de bases de donnees le
147 plus populaire au monde. MySQL est une implementation client/serveur
148 qui consiste en un serveur (mysqld) et differents
149 programmes/bibliotheques clientes.
151 Les objectifs principaux de MySQL sont: vitesse, robustesse et
152 facilite d'utilisation. MySQL fut originalement developpe parce que
153 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
154 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
155 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
156 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
157 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
158 millions de lignes. Ceci represente environ 50G de donnees critiques.
160 A la base de la conception de MySQL, on retrouve une serie de routines
161 qui ont ete utilisees dans un environnement de production pendant
162 plusieurs annees. Meme si MySQL est encore en developpement, il offre
163 deja une riche et utile serie de fonctions.
165 %description -l pl.UTF-8
166 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
167 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
168 danych. MySQL to implementacja klient/serwer składająca się z demona
169 mysqld i wielu różnych programów i bibliotek klienckich.
171 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
172 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
173 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
174 większą, niż mogli zaoferować inni producenci baz danych. Używają go
175 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
176 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
177 50GB krytycznych danych.
179 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
180 które były używane w bardzo wymagającym środowisku produkcyjnym przez
181 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
182 i użyteczny zbiór funkcji.
184 %description -l de.UTF-8
185 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
186 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
187 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
188 einem Primärschlüssel versehen werden. Es ist aber keine Definition
189 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
190 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
191 Daten verantwortlich. Allein durch die Nutzung externer
192 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
193 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
195 %description -l pt_BR.UTF-8
196 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
197 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
198 dados no mundo. O MySQL é uma implementação cliente/servidor que
199 consiste de um servidor chamado mysqld e diversos
200 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
201 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
202 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
203 pudesse lidar com grandes bases de dados e com uma velocidade muito
204 maior do que a que qualquer vendedor podia nos oferecer. Estamos
205 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
206 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
207 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
208 A base da construção do MySQL é uma série de rotinas que foram usadas
209 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
210 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
211 funções muito ricas e úteis. Veja a documentação para maiores
214 %description -l ru.UTF-8
215 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
216 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
217 дистрибутиве на предмет других участников проекта и прочей информации
220 %description -l uk.UTF-8
221 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
222 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
223 дистрибутиві для інформації про інших учасників проекту та іншої
227 Summary: MySQL - character sets definitions
228 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
229 Group: Applications/Databases
232 %description charsets
233 This package contains character sets definitions needed by both client
236 %description charsets -l pl.UTF-8
237 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
241 Summary: MySQL additional utilities
242 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
243 Group: Applications/Databases
244 Requires: %{name}-client = %{version}-%{release}
245 Requires: %{name}-libs = %{version}-%{release}
248 MySQL additional utilities except Perl scripts (they may be found in
249 %{name}-extras-perl package).
251 %description extras -l pl.UTF-8
252 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
253 pakiecie %{name}-extras-perl).
256 Summary: MySQL additional utilities written in Perl
257 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
258 Group: Applications/Databases
259 Requires: %{name}-extras = %{version}-%{release}
260 Requires: perl-DBD-mysql
262 %description extras-perl
263 MySQL additional utilities written in Perl.
265 %description extras-perl -l pl.UTF-8
266 Dodatkowe narzędzia do MySQL napisane w Perlu.
269 Summary: MySQL - Client
270 Summary(pl.UTF-8): MySQL - Klient
271 Summary(pt.UTF-8): MySQL - Cliente
272 Summary(ru.UTF-8): MySQL клиент
273 Summary(uk.UTF-8): MySQL клієнт
274 Group: Applications/Databases
275 Requires: %{name}-charsets = %{version}-%{release}
276 Requires: %{name}-libs = %{version}-%{release}
277 Requires: readline >= 6.2
278 Obsoletes: MySQL-client
281 This package contains the standard MySQL clients.
283 %description client -l fr.UTF-8
284 Ce package contient les clients MySQL standards.
286 %description client -l pl.UTF-8
287 Standardowe programy klienckie MySQL.
289 %description client -l pt_BR.UTF-8
290 Este pacote contém os clientes padrão para o MySQL.
292 %description client -l ru.UTF-8
293 Этот пакет содержит только клиент MySQL.
295 %description client -l uk.UTF-8
296 Цей пакет містить тільки клієнта MySQL.
299 Summary: Shared libraries for MySQL
300 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
302 Obsoletes: libmysql10
303 Obsoletes: mysql-doc < 4.1.12
306 Shared libraries for MySQL.
308 %description libs -l pl.UTF-8
309 Biblioteki współdzielone MySQL.
312 Summary: MySQL - development header files and other files
313 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
314 Summary(pt.UTF-8): MySQL - Medições de desempenho
315 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
316 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
317 Group: Development/Libraries
318 Requires: %{name}-libs = %{version}-%{release}
319 %{?with_ssl:Requires: openssl-devel}
321 Obsoletes: MySQL-devel
322 Obsoletes: libmysql10-devel
323 Obsoletes: webscalesql-devel
326 This package contains the development header files and other files
327 necessary to develop MySQL client applications.
329 %description devel -l fr.UTF-8
330 Ce package contient les fichiers entetes et les librairies de
331 developpement necessaires pour developper des applications clientes
334 %description devel -l pl.UTF-8
335 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
338 %description devel -l pt_BR.UTF-8
339 Este pacote contém os arquivos de cabeçalho (header files) e
340 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
342 %description devel -l ru.UTF-8
343 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
344 разработки клиентских приложений.
346 %description devel -l uk.UTF-8
347 Цей пакет містить хедери та бібліотеки програміста, необхідні для
348 розробки програм-клієнтів.
351 Summary: MySQL static libraries
352 Summary(pl.UTF-8): Biblioteki statyczne MySQL
353 Summary(ru.UTF-8): MySQL - статические библиотеки
354 Summary(uk.UTF-8): MySQL - статичні бібліотеки
355 Group: Development/Libraries
356 Requires: %{name}-devel = %{version}-%{release}
357 Obsoletes: MySQL-static
360 MySQL static libraries.
362 %description static -l pl.UTF-8
363 Biblioteki statyczne MySQL.
365 %description static -l ru.UTF-8
366 Этот пакет содержит статические библиотеки разработчика, необходимые
367 для разработки клиентских приложений.
369 %description static -l uk.UTF-8
370 Цей пакет містить статичні бібліотеки програміста, необхідні для
371 розробки програм-клієнтів.
374 Summary: MySQL - Benchmarks
375 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
376 Summary(pt.UTF-8): MySQL - Medições de desempenho
377 Summary(ru.UTF-8): MySQL - бенчмарки
378 Summary(uk.UTF-8): MySQL - бенчмарки
379 Group: Applications/Databases
380 Requires: %{name} = %{version}-%{release}
381 Requires: %{name}-client
382 Requires: perl-DBD-mysql
383 Obsoletes: MySQL-bench
386 This package contains MySQL benchmark scripts and data.
388 %description bench -l pl.UTF-8
389 Programy testujące szybkość serwera MySQL.
391 %description bench -l pt_BR.UTF-8
392 Este pacote contém medições de desempenho de scripts e dados do MySQL.
394 %description bench -l ru.UTF-8
395 Этот пакет содержит скрипты и данные для оценки производительности
398 %description bench -l uk.UTF-8
399 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
402 Summary: MySQL manual
403 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
404 Group: Applications/Databases
407 This package contains manual in HTML format.
409 %description doc -l pl.UTF-8
410 Podręcznik MySQL-a w formacie HTML.
413 Summary: MySQL - NDB Storage Engine Daemon
414 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
415 Group: Applications/Databases
416 Requires: %{name}-libs = %{version}-%{release}
419 This package contains the standard MySQL NDB Storage Engine Daemon.
421 %description ndb -l pl.UTF-8
422 Ten pakiet zawiera standardowego demona silnika przechowywania danych
426 Summary: MySQL - NDB Clients
427 Summary(pl.UTF-8): MySQL - programy klienckie NDB
428 Group: Applications/Databases
429 Requires: %{name}-libs = %{version}-%{release}
431 %description ndb-client
432 This package contains the standard MySQL NDB Clients.
434 %description ndb-client -l pl.UTF-8
435 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
438 Summary: MySQL - NDB Management Daemon
439 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
440 Group: Applications/Databases
441 Requires: %{name}-libs = %{version}-%{release}
444 This package contains the standard MySQL NDB Management Daemon.
446 %description ndb-mgm -l pl.UTF-8
447 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
450 Summary: MySQL - NDB CPC Daemon
451 Summary(pl.UTF-8): MySQL - demon NDB CPC
452 Group: Applications/Databases
453 Requires: %{name}-libs = %{version}-%{release}
456 This package contains the standard MySQL NDB CPC Daemon.
458 %description ndb-cpc -l pl.UTF-8
459 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
462 %setup -q %{?with_sphinx:-a100} %{!?with_system_boost:-a101}
467 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
468 %{__mv} sphinx-*/mysqlse storage/sphinx
473 # really not fixed? verify
481 # to get these files rebuild
482 [ -f sql/sql_yacc.cc ] && %{__rm} sql/sql_yacc.cc
483 [ -f sql/sql_yacc.h ] && %{__rm} sql/sql_yacc.h
486 # need to keep xxhash.[ch]
487 %{__rm} -rv extra/lz4/lz4**
492 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
493 # (it defaults to first cluster but user may change it to whatever
496 CPPFLAGS="%{rpmcppflags}" \
498 -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
499 -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
500 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
501 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
502 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
503 %{?with_systemtap:-DENABLE_DTRACE=ON} \
504 -DFEATURE_SET="community" \
505 -DINSTALL_LAYOUT=RPM \
506 -DINSTALL_LIBDIR=%{_lib} \
507 -DINSTALL_MYSQLTESTDIR_RPM="" \
508 -DINSTALL_PLUGINDIR=%{_lib}/%{name}/plugin \
509 -DINSTALL_SQLBENCHDIR=%{_datadir} \
510 -DINSTALL_SUPPORTFILESDIR=share/%{name}-support \
511 -DINSTALL_MYSQLSHAREDIR=share/%{name} \
512 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
513 %{?debug:-DWITH_DEBUG=ON} \
514 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
515 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
516 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
519 -DWITH_LIBEVENT=system \
520 -DWITH_PROTOBUF=system \
521 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
522 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
523 %{!?with_system_boost:-DWITH_BOOST="$(pwd)/$(ls -1d ../boost_*)"} \
525 -DWITH_EDITLINE=system \
526 -DWITH_MECAB=system \
531 %{?with_tests:%{__make} test}
534 rm -rf $RPM_BUILD_ROOT
535 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
536 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/{mysql,mysql-files}} \
537 $RPM_BUILD_ROOT%{_mysqlhome} \
538 $RPM_BUILD_ROOT%{_libdir}
540 %{__make} -C build install \
541 DESTDIR=$RPM_BUILD_ROOT
543 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
544 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
545 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
546 # This is template for configuration file which is created after 'service mysql init'
547 cp -a %{SOURCE4} mysqld.conf
548 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
549 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
551 # remove innodb directives from mysqld.conf if mysqld is configured without
552 %if %{without innodb}
553 cp mysqld.conf mysqld.tmp
554 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
557 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
558 cp mysqld.conf mysqld.tmp
559 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
561 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
562 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
563 ln -s mysql-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/my.cnf
564 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
568 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
569 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
570 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
571 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
572 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
573 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
576 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
577 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
578 sed -i -e '/libs/s/-lprobes_mysql//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
580 # remove known unpackaged files
581 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}-support
583 # rename not to be so generic name
585 # not useful without -debug build
586 # generate symbols file, so one can generate backtrace using it
587 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
588 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
589 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
591 # do not clobber users $PATH
592 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
593 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
594 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
595 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
596 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
597 #%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
598 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
599 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
601 # delete - functionality in initscript / rpm
602 # note: mysql_install_db (and thus resolveip) are needed by digikam
603 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
604 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
605 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
606 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
607 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
608 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
609 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
610 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
611 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
613 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
614 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{mysql_client_test,mysqlxtest}
615 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/test_udf_services.so
616 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
619 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
620 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/daemon_example.ini
623 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libtest*.so
624 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/rewrite_example.so
625 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/test_security_context.so
628 rm -rf $RPM_BUILD_ROOT
631 %groupadd -g 89 mysql
632 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
636 /sbin/chkconfig --add mysql
637 %service mysql restart
640 if [ "$1" = "0" ]; then
641 %service -q mysql stop
642 /sbin/chkconfig --del mysql
647 if [ "$1" = "0" ]; then
653 /sbin/chkconfig --add mysql-ndb
654 %service mysql-ndb restart "mysql NDB engine"
657 if [ "$1" = "0" ]; then
658 %service mysql-ndb stop
659 /sbin/chkconfig --del mysql-ndb
663 /sbin/chkconfig --add mysql-ndb-mgm
664 %service mysql-ndb-mgm restart "mysql NDB management node"
667 if [ "$1" = "0" ]; then
668 %service mysql-ndb-mgm stop
669 /sbin/chkconfig --del mysql-ndb-mgm
673 /sbin/chkconfig --add mysql-ndb-cpc
674 %service mysql-ndb-cpc restart "mysql NDB CPC"
677 if [ "$1" = "0" ]; then
678 %service mysql-ndb-cpc stop
679 /sbin/chkconfig --del mysql-ndb-cpc
682 %post libs -p /sbin/ldconfig
683 %postun libs -p /sbin/ldconfig
685 %triggerpostun -- mysql < 4.0.20-2.4
686 # For clusters in /etc/%{name}/clusters.conf
687 if [ -f /etc/sysconfig/mysql ]; then
688 . /etc/sysconfig/mysql
689 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
690 for i in "$MYSQL_DB_CLUSTERS"; do
691 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
693 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
694 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
695 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
696 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
700 %triggerpostun -- mysql < 4.1.1
701 # For better compatibility with prevoius versions:
702 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
703 if echo "$config" | grep -q '^/'; then
704 config_file="$config"
705 elif [ -f "/etc/%{name}/$config" ]; then
706 config_file=/etc/%{name}/$config
708 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
709 if [ -z "$clusterdir" ]; then
710 echo >&2 "Can't find cluster dir for $config!"
711 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
714 config_file="$clusterdir/mysqld.conf"
717 if [ ! -f "$config_file" ]; then
718 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
721 echo "Adding option old-passwords to config: $config_file"
722 echo "If you want to use new, better passwords - remove it"
724 # sed magic to add 'old-passwords' to [mysqld] section
725 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
727 a; Compatibility options:
733 %banner -e %{name}-4.1.x <<-EOF
734 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
735 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
739 %triggerpostun -- mysql < 5.1.0
741 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
742 if echo "$config" | grep -q '^/'; then
743 config_file="$config"
744 elif [ -f "/etc/%{name}/$config" ]; then
745 config_file=/etc/%{name}/$config
747 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
748 if [ -z "$clusterdir" ]; then
749 echo >&2 "Can't find cluster dir for $config!"
750 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
753 config_file="$clusterdir/mysqld.conf"
756 if [ ! -f "$config_file" ]; then
757 echo >&2 "ERROR: Can't find real config file for $config! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
760 configs="$configs $config_file"
764 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
765 echo 'Thus, you should invoke:'
766 for config in $configs; do
768 s/set-variable\s*=\s* //
769 # use # as comment in config
773 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
774 echo "# mysql_upgrade --datadir=$datadir"
776 ) | %banner -e %{name}-5.1
778 %triggerpostun -- mysql < 5.5.0
780 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
781 if echo "$config" | grep -q '^/'; then
782 config_file="$config"
783 elif [ -f "/etc/%{name}/$config" ]; then
784 config_file=/etc/%{name}/$config
786 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
787 if [ -z "$clusterdir" ]; then
788 echo >&2 "Can't find cluster dir for $config!"
789 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
792 config_file="$clusterdir/mysqld.conf"
795 if [ ! -f "$config_file" ]; then
796 echo >&2 "ERROR: Can't find real config file for $config! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
799 configs="$configs $config_file"
803 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
804 echo 'Thus, you should invoke:'
805 for config in $configs; do
807 s/^language *= *polish/lc-messages = pl_PL/i
808 s/set-variable\s*=\s* //
809 s/^skip-locking/skip-external-locking/
810 # this is not valid for server. it is client option
811 s/^default-character-set/# client-config: &/
812 # use # as comment in config
816 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
817 echo "# mysql_upgrade ${socket:+--socket=$socket}"
819 ) | %banner -e %{name}-5.5
821 %triggerpostun -- mysql < 5.7.0
823 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
824 if echo "$config" | grep -q '^/'; then
825 config_file="$config"
826 elif [ -f "/etc/%{name}/$config" ]; then
827 config_file=/etc/%{name}/$config
829 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
830 if [ -z "$clusterdir" ]; then
831 echo >&2 "Can't find cluster dir for $config!"
832 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
835 config_file="$clusterdir/mysqld.conf"
838 if [ ! -f "$config_file" ]; then
839 echo >&2 "ERROR: Can't find real config file for $config! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
842 configs="$configs $config_file"
846 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
847 echo 'Thus, you should invoke:'
848 for config in $configs; do
850 s/^log-warnings *=/log-error-verbosity =/
851 s/^myisam-recover$/myisam-recover-options/
852 s/^innodb_mirrored_log_groups.*//
855 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
856 echo "# mysql_upgrade ${socket:+--socket=$socket}"
858 ) | %banner -e %{name}-5.7
861 %defattr(644,root,root,755)
862 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
863 %attr(754,root,root) /etc/rc.d/init.d/%{name}
864 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
865 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
866 %attr(755,root,root) %{_sbindir}/innochecksum
867 %attr(755,root,root) %{_sbindir}/my_print_defaults
868 %attr(755,root,root) %{_sbindir}/myisamchk
869 %attr(755,root,root) %{_sbindir}/myisamlog
870 %attr(755,root,root) %{_sbindir}/myisampack
871 %attr(755,root,root) %{_sbindir}/mysql_upgrade
872 %attr(755,root,root) %{_sbindir}/mysqlcheck
873 %attr(755,root,root) %{_sbindir}/mysqld
875 %dir %{_libdir}/%{name}
876 %dir %{_libdir}/%{name}/plugin
877 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
878 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
879 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
880 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
881 %{?with_ldap:%attr(755,root,root) %{_libdir}/%{name}/plugin/authentication_ldap_sasl_client.so}
882 %attr(755,root,root) %{_libdir}/%{name}/plugin/connection_control.so
883 %attr(755,root,root) %{_libdir}/%{name}/plugin/group_replication.so
884 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_file.so
885 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_udf.so
886 %attr(755,root,root) %{_libdir}/%{name}/plugin/libpluginmecab.so
887 %attr(755,root,root) %{_libdir}/%{name}/plugin/locking_service.so
888 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
889 %attr(755,root,root) %{_libdir}/%{name}/plugin/mysql_no_login.so
890 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
891 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
892 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
893 %attr(755,root,root) %{_libdir}/%{name}/plugin/replication_observers_example_plugin.so
894 %attr(755,root,root) %{_libdir}/%{name}/plugin/rewriter.so
895 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
896 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
897 %attr(755,root,root) %{_libdir}/%{name}/plugin/validate_password.so
898 %attr(755,root,root) %{_libdir}/%{name}/plugin/version_token.so
900 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
902 %{_mandir}/man1/innochecksum.1*
903 %{_mandir}/man1/my_print_defaults.1*
904 %{_mandir}/man1/myisamchk.1*
905 %{_mandir}/man1/myisamlog.1*
906 %{_mandir}/man1/myisampack.1*
907 %{_mandir}/man1/mysql_upgrade.1*
908 %{_mandir}/man1/mysqlcheck.1*
909 %{_mandir}/man8/mysqld.8*
912 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
913 %{_datadir}/%{name}/mysqld.sym
914 %{_mandir}/man1/*resolve_stack_dump.1*
917 %attr(700,mysql,mysql) %{_mysqlhome}
918 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
919 %attr(751,root,root) /var/lib/mysql
920 # https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_secure-file-priv
921 %attr(770,mysql,mysql) %dir /var/lib/mysql-files
922 %attr(750,mysql,mysql) %dir /var/log/mysql
923 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
924 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
926 # This is template for configuration file which is created after 'service mysql init'
927 %{_datadir}/%{name}/mysqld.conf
929 %{_datadir}/%{name}/english
930 %{_datadir}/%{name}/dictionary.txt
931 %{_datadir}/%{name}/innodb_memcached_config.sql
932 %{_datadir}/%{name}/install_rewriter.sql
933 %{_datadir}/%{name}/uninstall_rewriter.sql
934 # Don't mark these with %%lang. These are used depending
935 # on database client settings.
936 %{_datadir}/%{name}/bulgarian
937 %{_datadir}/%{name}/czech
938 %{_datadir}/%{name}/danish
939 %{_datadir}/%{name}/german
940 %{_datadir}/%{name}/greek
941 %{_datadir}/%{name}/spanish
942 %{_datadir}/%{name}/estonian
943 %{_datadir}/%{name}/french
944 %{_datadir}/%{name}/hungarian
945 %{_datadir}/%{name}/italian
946 %{_datadir}/%{name}/japanese
947 %{_datadir}/%{name}/korean
948 %{_datadir}/%{name}/dutch
949 %{_datadir}/%{name}/norwegian
950 %{_datadir}/%{name}/norwegian-ny
951 %{_datadir}/%{name}/polish
952 %{_datadir}/%{name}/portuguese
953 %{_datadir}/%{name}/romanian
954 %{_datadir}/%{name}/russian
955 %{_datadir}/%{name}/serbian
956 %{_datadir}/%{name}/slovak
957 %{_datadir}/%{name}/swedish
958 %{_datadir}/%{name}/ukrainian
961 %defattr(644,root,root,755)
962 %dir %{_datadir}/%{name}
963 %{_datadir}/%{name}/charsets
966 %defattr(644,root,root,755)
967 %attr(755,root,root) %{_bindir}/myisam_ftdump
968 %attr(755,root,root) %{_bindir}/mysql_ssl_rsa_setup
969 %attr(755,root,root) %{_bindir}/mysql_secure_installation
970 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
971 %attr(755,root,root) %{_bindir}/perror
972 %{_mandir}/man1/myisam_ftdump.1*
973 %{_mandir}/man1/mysql_ssl_rsa_setup.1*
974 %{_mandir}/man1/mysql_secure_installation.1*
975 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
976 %{_mandir}/man1/perror.1*
979 %defattr(644,root,root,755)
980 %attr(755,root,root) %{_bindir}/mysqldumpslow
981 %{_mandir}/man1/mysqldumpslow.1*
984 %defattr(644,root,root,755)
985 %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/skel/.my.cnf
986 %attr(755,root,root) %{_bindir}/mysql
987 %attr(755,root,root) %{_bindir}/mysqladmin
988 %attr(755,root,root) %{_bindir}/mysqlbinlog
989 %attr(755,root,root) %{_bindir}/mysql_config_editor
990 %attr(755,root,root) %{_bindir}/mysqldump
991 %attr(755,root,root) %{_bindir}/mysqlimport
992 %attr(755,root,root) %{_bindir}/mysqlpump
993 %attr(755,root,root) %{_bindir}/mysqlshow
994 %{_mandir}/man1/mysql.1*
995 %{_mandir}/man1/mysqladmin.1*
996 %{_mandir}/man1/mysqlbinlog.1*
997 %{_mandir}/man1/mysql_config_editor.1*
998 %{_mandir}/man1/mysqldump.1*
999 %{_mandir}/man1/mysqlimport.1*
1000 %{_mandir}/man1/mysqlpump.1*
1001 %{_mandir}/man1/mysqlshow.1*
1004 %defattr(644,root,root,755)
1005 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1006 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1007 %{_sysconfdir}/%{name}/my.cnf
1008 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1009 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.21
1011 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1012 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1016 %defattr(644,root,root,755)
1017 %attr(755,root,root) %{_bindir}/mysql_config
1018 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1020 %attr(755,root,root) %{_libdir}/libndbclient.so
1022 %{_pkgconfigdir}/mysqlclient.pc
1023 %{_libdir}/libmysqlservices.a
1024 %{_includedir}/mysql
1025 %{_aclocaldir}/mysql.m4
1026 %{_mandir}/man1/mysql_config.1*
1029 %defattr(644,root,root,755)
1030 %{_libdir}/libmysqlclient.a
1032 %{_libdir}/libndbclient.a
1036 %defattr(644,root,root,755)
1037 %attr(755,root,root) %{_bindir}/mysqlslap
1038 %attr(755,root,root) %{_bindir}/mysqltest
1039 #%dir %{_datadir}/sql-bench
1040 #%{_datadir}/sql-bench/[CDRl]*
1041 #%attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1042 %{_mandir}/man1/mysqlslap.1*
1045 #%defattr(644,root,root,755)
1046 #%doc Docs/manual.html Docs/manual_toc.html
1050 %defattr(644,root,root,755)
1051 %attr(755,root,root) %{_sbindir}/ndbd
1052 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1053 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1054 %{_mandir}/man1/ndbd_redo_log_reader.1*
1055 %{_mandir}/man8/ndbd.8*
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_bindir}/ndb_config
1060 %attr(755,root,root) %{_bindir}/ndb_delete_all
1061 %attr(755,root,root) %{_bindir}/ndb_desc
1062 %attr(755,root,root) %{_bindir}/ndb_drop_index
1063 %attr(755,root,root) %{_bindir}/ndb_drop_table
1064 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1065 %attr(755,root,root) %{_bindir}/ndb_mgm
1066 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1067 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1068 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1069 %attr(755,root,root) %{_bindir}/ndb_restore
1070 %attr(755,root,root) %{_bindir}/ndb_select_all
1071 %attr(755,root,root) %{_bindir}/ndb_select_count
1072 %attr(755,root,root) %{_bindir}/ndb_show_tables
1073 %attr(755,root,root) %{_bindir}/ndb_size.pl
1074 %attr(755,root,root) %{_bindir}/ndb_test_platform
1075 %attr(755,root,root) %{_bindir}/ndb_waiter
1076 %{_mandir}/man1/ndb_config.1*
1077 %{_mandir}/man1/ndb_delete_all.1*
1078 %{_mandir}/man1/ndb_desc.1*
1079 %{_mandir}/man1/ndb_drop_index.1*
1080 %{_mandir}/man1/ndb_drop_table.1*
1081 %{_mandir}/man1/ndb_error_reporter.1*
1082 %{_mandir}/man1/ndb_mgm.1*
1083 %{_mandir}/man1/ndb_print_backup_file.1*
1084 %{_mandir}/man1/ndb_print_schema_file.1*
1085 %{_mandir}/man1/ndb_print_sys_file.1*
1086 %{_mandir}/man1/ndb_restore.1*
1087 %{_mandir}/man1/ndb_select_all.1*
1088 %{_mandir}/man1/ndb_select_count.1*
1089 %{_mandir}/man1/ndb_show_tables.1*
1090 %{_mandir}/man1/ndb_size.pl.1*
1091 %{_mandir}/man1/ndb_waiter.1*
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1096 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1097 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1098 %{_mandir}/man8/ndb_mgmd.8*
1101 %defattr(644,root,root,755)
1102 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1103 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1104 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1105 %{_mandir}/man1/ndb_cpcd.1*