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 Patch2: %{name}-protobuf.patch
67 Patch17: %{name}-5.7-sphinx.patch
68 Patch18: %{name}-sphinx.patch
69 Patch19: %{name}-chain-certs.patch
71 Patch24: %{name}-cmake.patch
72 Patch25: %{name}-readline.patch
74 Patch26: %{name}dumpslow-clusters.patch
75 URL: http://www.mysql.com/products/community/
76 BuildRequires: bison >= 1.875
77 %{?with_system_boost:BuildRequires: boost-devel >= 1.72.0}
78 BuildRequires: cmake >= 2.8.2
79 BuildRequires: libaio-devel
80 BuildRequires: libevent-devel
81 BuildRequires: libhsclient-devel
82 BuildRequires: libstdc++-devel >= 5:4.0
83 %{?with_tcpd:BuildRequires: libwrap-devel}
84 BuildRequires: lz4-devel
85 BuildRequires: mecab-devel
86 BuildRequires: ncurses-devel >= 4.2
87 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
88 %{?with_ldap:BuildRequires: openldap-devel}
89 BuildRequires: pam-devel
90 BuildRequires: perl-devel >= 1:5.6.1
91 BuildRequires: protobuf-devel >= 2.5
92 BuildRequires: python-modules
93 BuildRequires: readline-devel >= 6.2
94 BuildRequires: rpm-perlprov >= 4.1-13
95 BuildRequires: rpmbuild(macros) >= 1.597
96 BuildRequires: sed >= 4.0
97 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
98 BuildRequires: zlib-devel
99 Requires(post,preun): /sbin/chkconfig
100 Requires(postun): /usr/sbin/groupdel
101 Requires(postun): /usr/sbin/userdel
102 Requires(pre): /bin/id
103 Requires(pre): /usr/bin/getgid
104 Requires(pre): /usr/sbin/groupadd
105 Requires(pre): /usr/sbin/useradd
106 Requires(triggerpostun): sed >= 4.0
107 Requires: %{name}-charsets = %{version}-%{release}
108 Requires: %{name}-libs = %{version}-%{release}
109 Requires: /usr/bin/setsid
110 Requires: rc-scripts >= 0.2.0
111 Suggests: mysql-client
112 %{?with_tcpd:Suggests: tcp_wrappers}
113 Suggests: vim-syntax-mycnf
114 Provides: MySQL-server
115 Provides: group(mysql)
116 Provides: msqlormysql
117 Provides: user(mysql)
119 Obsoletes: mysql-server
120 Conflicts: logrotate < 3.8.0
121 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
123 %define _libexecdir %{_sbindir}
124 %define _localstatedir /var/lib/mysql
125 %define _mysqlhome /home/services/mysql
128 MySQL is a true multi-user, multi-threaded SQL (Structured Query
129 Language) database server. SQL is the most popular database language
130 in the world. MySQL is a client/server implementation that consists of
131 a server daemon mysqld and many different client programs/libraries.
133 The main goals of MySQL are speed, robustness and easy to use. MySQL
134 was originally developed because we at Tcx needed a SQL server that
135 could handle very big databases with magnitude higher speed than what
136 any database vendor could offer to us. We have now been using MySQL
137 since 1996 in a environment with more than 40 databases, 10,000
138 tables, of which more than 500 have more than 7 million rows. This is
139 about 50G of mission critical data.
141 The base upon which MySQL is built is a set of routines that have been
142 used in a highly demanding production environment for many years.
143 While MySQL is still in development, it already offers a rich and
144 highly useful function set.
146 %description -l fr.UTF-8
147 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
148 multi-taches. Le langage SQL est le langage de bases de donnees le
149 plus populaire au monde. MySQL est une implementation client/serveur
150 qui consiste en un serveur (mysqld) et differents
151 programmes/bibliotheques clientes.
153 Les objectifs principaux de MySQL sont: vitesse, robustesse et
154 facilite d'utilisation. MySQL fut originalement developpe parce que
155 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
156 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
157 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
158 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
159 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
160 millions de lignes. Ceci represente environ 50G de donnees critiques.
162 A la base de la conception de MySQL, on retrouve une serie de routines
163 qui ont ete utilisees dans un environnement de production pendant
164 plusieurs annees. Meme si MySQL est encore en developpement, il offre
165 deja une riche et utile serie de fonctions.
167 %description -l pl.UTF-8
168 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
169 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
170 danych. MySQL to implementacja klient/serwer składająca się z demona
171 mysqld i wielu różnych programów i bibliotek klienckich.
173 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
174 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
175 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
176 większą, niż mogli zaoferować inni producenci baz danych. Używają go
177 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
178 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
179 50GB krytycznych danych.
181 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
182 które były używane w bardzo wymagającym środowisku produkcyjnym przez
183 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
184 i użyteczny zbiór funkcji.
186 %description -l de.UTF-8
187 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
188 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
189 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
190 einem Primärschlüssel versehen werden. Es ist aber keine Definition
191 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
192 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
193 Daten verantwortlich. Allein durch die Nutzung externer
194 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
195 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
197 %description -l pt_BR.UTF-8
198 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
199 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
200 dados no mundo. O MySQL é uma implementação cliente/servidor que
201 consiste de um servidor chamado mysqld e diversos
202 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
203 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
204 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
205 pudesse lidar com grandes bases de dados e com uma velocidade muito
206 maior do que a que qualquer vendedor podia nos oferecer. Estamos
207 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
208 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
209 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
210 A base da construção do MySQL é uma série de rotinas que foram usadas
211 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
212 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
213 funções muito ricas e úteis. Veja a documentação para maiores
216 %description -l ru.UTF-8
217 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
218 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
219 дистрибутиве на предмет других участников проекта и прочей информации
222 %description -l uk.UTF-8
223 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
224 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
225 дистрибутиві для інформації про інших учасників проекту та іншої
229 Summary: MySQL - character sets definitions
230 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
231 Group: Applications/Databases
234 %description charsets
235 This package contains character sets definitions needed by both client
238 %description charsets -l pl.UTF-8
239 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
243 Summary: MySQL additional utilities
244 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
245 Group: Applications/Databases
246 Requires: %{name}-client = %{version}-%{release}
247 Requires: %{name}-libs = %{version}-%{release}
250 MySQL additional utilities except Perl scripts (they may be found in
251 %{name}-extras-perl package).
253 %description extras -l pl.UTF-8
254 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
255 pakiecie %{name}-extras-perl).
258 Summary: MySQL additional utilities written in Perl
259 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
260 Group: Applications/Databases
261 Requires: %{name}-extras = %{version}-%{release}
262 Requires: perl-DBD-mysql
264 %description extras-perl
265 MySQL additional utilities written in Perl.
267 %description extras-perl -l pl.UTF-8
268 Dodatkowe narzędzia do MySQL napisane w Perlu.
271 Summary: MySQL - Client
272 Summary(pl.UTF-8): MySQL - Klient
273 Summary(pt.UTF-8): MySQL - Cliente
274 Summary(ru.UTF-8): MySQL клиент
275 Summary(uk.UTF-8): MySQL клієнт
276 Group: Applications/Databases
277 Requires: %{name}-charsets = %{version}-%{release}
278 Requires: %{name}-libs = %{version}-%{release}
279 Requires: readline >= 6.2
280 Obsoletes: MySQL-client
283 This package contains the standard MySQL clients.
285 %description client -l fr.UTF-8
286 Ce package contient les clients MySQL standards.
288 %description client -l pl.UTF-8
289 Standardowe programy klienckie MySQL.
291 %description client -l pt_BR.UTF-8
292 Este pacote contém os clientes padrão para o MySQL.
294 %description client -l ru.UTF-8
295 Этот пакет содержит только клиент MySQL.
297 %description client -l uk.UTF-8
298 Цей пакет містить тільки клієнта MySQL.
301 Summary: Shared libraries for MySQL
302 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
304 Obsoletes: libmysql10
305 Obsoletes: mysql-doc < 4.1.12
308 Shared libraries for MySQL.
310 %description libs -l pl.UTF-8
311 Biblioteki współdzielone MySQL.
314 Summary: MySQL - development header files and other files
315 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
316 Summary(pt.UTF-8): MySQL - Medições de desempenho
317 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
318 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
319 Group: Development/Libraries
320 Requires: %{name}-libs = %{version}-%{release}
321 %{?with_ssl:Requires: openssl-devel}
323 Obsoletes: MySQL-devel
324 Obsoletes: libmysql10-devel
325 Obsoletes: webscalesql-devel
328 This package contains the development header files and other files
329 necessary to develop MySQL client applications.
331 %description devel -l fr.UTF-8
332 Ce package contient les fichiers entetes et les librairies de
333 developpement necessaires pour developper des applications clientes
336 %description devel -l pl.UTF-8
337 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
340 %description devel -l pt_BR.UTF-8
341 Este pacote contém os arquivos de cabeçalho (header files) e
342 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
344 %description devel -l ru.UTF-8
345 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
346 разработки клиентских приложений.
348 %description devel -l uk.UTF-8
349 Цей пакет містить хедери та бібліотеки програміста, необхідні для
350 розробки програм-клієнтів.
353 Summary: MySQL static libraries
354 Summary(pl.UTF-8): Biblioteki statyczne MySQL
355 Summary(ru.UTF-8): MySQL - статические библиотеки
356 Summary(uk.UTF-8): MySQL - статичні бібліотеки
357 Group: Development/Libraries
358 Requires: %{name}-devel = %{version}-%{release}
359 Obsoletes: MySQL-static
362 MySQL static libraries.
364 %description static -l pl.UTF-8
365 Biblioteki statyczne MySQL.
367 %description static -l ru.UTF-8
368 Этот пакет содержит статические библиотеки разработчика, необходимые
369 для разработки клиентских приложений.
371 %description static -l uk.UTF-8
372 Цей пакет містить статичні бібліотеки програміста, необхідні для
373 розробки програм-клієнтів.
376 Summary: MySQL - Benchmarks
377 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
378 Summary(pt.UTF-8): MySQL - Medições de desempenho
379 Summary(ru.UTF-8): MySQL - бенчмарки
380 Summary(uk.UTF-8): MySQL - бенчмарки
381 Group: Applications/Databases
382 Requires: %{name} = %{version}-%{release}
383 Requires: %{name}-client
384 Requires: perl-DBD-mysql
385 Obsoletes: MySQL-bench
388 This package contains MySQL benchmark scripts and data.
390 %description bench -l pl.UTF-8
391 Programy testujące szybkość serwera MySQL.
393 %description bench -l pt_BR.UTF-8
394 Este pacote contém medições de desempenho de scripts e dados do MySQL.
396 %description bench -l ru.UTF-8
397 Этот пакет содержит скрипты и данные для оценки производительности
400 %description bench -l uk.UTF-8
401 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
404 Summary: MySQL manual
405 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
406 Group: Applications/Databases
409 This package contains manual in HTML format.
411 %description doc -l pl.UTF-8
412 Podręcznik MySQL-a w formacie HTML.
415 Summary: MySQL - NDB Storage Engine Daemon
416 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
417 Group: Applications/Databases
418 Requires: %{name}-libs = %{version}-%{release}
421 This package contains the standard MySQL NDB Storage Engine Daemon.
423 %description ndb -l pl.UTF-8
424 Ten pakiet zawiera standardowego demona silnika przechowywania danych
428 Summary: MySQL - NDB Clients
429 Summary(pl.UTF-8): MySQL - programy klienckie NDB
430 Group: Applications/Databases
431 Requires: %{name}-libs = %{version}-%{release}
433 %description ndb-client
434 This package contains the standard MySQL NDB Clients.
436 %description ndb-client -l pl.UTF-8
437 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
440 Summary: MySQL - NDB Management Daemon
441 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
442 Group: Applications/Databases
443 Requires: %{name}-libs = %{version}-%{release}
446 This package contains the standard MySQL NDB Management Daemon.
448 %description ndb-mgm -l pl.UTF-8
449 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
452 Summary: MySQL - NDB CPC Daemon
453 Summary(pl.UTF-8): MySQL - demon NDB CPC
454 Group: Applications/Databases
455 Requires: %{name}-libs = %{version}-%{release}
458 This package contains the standard MySQL NDB CPC Daemon.
460 %description ndb-cpc -l pl.UTF-8
461 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
464 %setup -q %{?with_sphinx:-a100} %{!?with_system_boost:-a101}
471 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
472 %{__mv} sphinx-*/mysqlse storage/sphinx
477 # really not fixed? verify
485 # to get these files rebuild
486 [ -f sql/sql_yacc.cc ] && %{__rm} sql/sql_yacc.cc
487 [ -f sql/sql_yacc.h ] && %{__rm} sql/sql_yacc.h
490 # need to keep xxhash.[ch]
491 %{__rm} -rv extra/lz4/lz4**
496 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
497 # (it defaults to first cluster but user may change it to whatever
500 CPPFLAGS="%{rpmcppflags}" \
502 -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
503 -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
504 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
505 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
506 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
507 %{?with_systemtap:-DENABLE_DTRACE=ON} \
508 -DFEATURE_SET="community" \
509 -DINSTALL_LAYOUT=RPM \
510 -DINSTALL_LIBDIR=%{_lib} \
511 -DINSTALL_MYSQLTESTDIR_RPM="" \
512 -DINSTALL_PLUGINDIR=%{_lib}/%{name}/plugin \
513 -DINSTALL_SQLBENCHDIR=%{_datadir} \
514 -DINSTALL_SUPPORTFILESDIR=share/%{name}-support \
515 -DINSTALL_MYSQLSHAREDIR=share/%{name} \
516 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
517 %{?debug:-DWITH_DEBUG=ON} \
518 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
519 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
520 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
523 -DWITH_LIBEVENT=system \
524 -DWITH_PROTOBUF=system \
525 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
526 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
527 %{!?with_system_boost:-DWITH_BOOST="$(pwd)/$(ls -1d ../boost_*)"} \
529 -DWITH_EDITLINE=system \
530 -DWITH_MECAB=system \
535 %{?with_tests:%{__make} test}
538 rm -rf $RPM_BUILD_ROOT
539 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
540 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/{mysql,mysql-files}} \
541 $RPM_BUILD_ROOT%{_mysqlhome} \
542 $RPM_BUILD_ROOT%{_libdir}
544 %{__make} -C build install \
545 DESTDIR=$RPM_BUILD_ROOT
547 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
548 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
549 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
550 # This is template for configuration file which is created after 'service mysql init'
551 cp -a %{SOURCE4} mysqld.conf
552 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
553 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
555 # remove innodb directives from mysqld.conf if mysqld is configured without
556 %if %{without innodb}
557 cp mysqld.conf mysqld.tmp
558 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
561 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
562 cp mysqld.conf mysqld.tmp
563 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
565 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
566 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
567 ln -s mysql-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/my.cnf
568 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
572 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
573 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
574 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
575 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
576 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
577 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
580 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
581 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
582 sed -i -e '/libs/s/-lprobes_mysql//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
584 # remove known unpackaged files
585 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}-support
587 # rename not to be so generic name
589 # not useful without -debug build
590 # generate symbols file, so one can generate backtrace using it
591 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
592 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
593 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
595 # do not clobber users $PATH
596 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
597 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
598 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
599 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
600 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
601 #%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
602 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
603 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
605 # delete - functionality in initscript / rpm
606 # note: mysql_install_db (and thus resolveip) are needed by digikam
607 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
608 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
609 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
610 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
611 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
612 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
613 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
614 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
615 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
617 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
618 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{mysql_client_test,mysqlxtest}
619 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/test_udf_services.so
620 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
623 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
624 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/daemon_example.ini
627 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libtest*.so
628 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/rewrite_example.so
629 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/test_security_context.so
632 rm -rf $RPM_BUILD_ROOT
635 %groupadd -g 89 mysql
636 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
640 /sbin/chkconfig --add mysql
641 %service mysql restart
644 if [ "$1" = "0" ]; then
645 %service -q mysql stop
646 /sbin/chkconfig --del mysql
651 if [ "$1" = "0" ]; then
657 /sbin/chkconfig --add mysql-ndb
658 %service mysql-ndb restart "mysql NDB engine"
661 if [ "$1" = "0" ]; then
662 %service mysql-ndb stop
663 /sbin/chkconfig --del mysql-ndb
667 /sbin/chkconfig --add mysql-ndb-mgm
668 %service mysql-ndb-mgm restart "mysql NDB management node"
671 if [ "$1" = "0" ]; then
672 %service mysql-ndb-mgm stop
673 /sbin/chkconfig --del mysql-ndb-mgm
677 /sbin/chkconfig --add mysql-ndb-cpc
678 %service mysql-ndb-cpc restart "mysql NDB CPC"
681 if [ "$1" = "0" ]; then
682 %service mysql-ndb-cpc stop
683 /sbin/chkconfig --del mysql-ndb-cpc
686 %post libs -p /sbin/ldconfig
687 %postun libs -p /sbin/ldconfig
689 %triggerpostun -- mysql < 4.0.20-2.4
690 # For clusters in /etc/%{name}/clusters.conf
691 if [ -f /etc/sysconfig/mysql ]; then
692 . /etc/sysconfig/mysql
693 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
694 for i in "$MYSQL_DB_CLUSTERS"; do
695 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
697 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
698 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
699 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
700 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
704 %triggerpostun -- mysql < 4.1.1
705 # For better compatibility with prevoius versions:
706 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
707 if echo "$config" | grep -q '^/'; then
708 config_file="$config"
709 elif [ -f "/etc/%{name}/$config" ]; then
710 config_file=/etc/%{name}/$config
712 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
713 if [ -z "$clusterdir" ]; then
714 echo >&2 "Can't find cluster dir for $config!"
715 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
718 config_file="$clusterdir/mysqld.conf"
721 if [ ! -f "$config_file" ]; then
722 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
725 echo "Adding option old-passwords to config: $config_file"
726 echo "If you want to use new, better passwords - remove it"
728 # sed magic to add 'old-passwords' to [mysqld] section
729 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
731 a; Compatibility options:
737 %banner -e %{name}-4.1.x <<-EOF
738 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
739 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
743 %triggerpostun -- mysql < 5.1.0
745 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
746 if echo "$config" | grep -q '^/'; then
747 config_file="$config"
748 elif [ -f "/etc/%{name}/$config" ]; then
749 config_file=/etc/%{name}/$config
751 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
752 if [ -z "$clusterdir" ]; then
753 echo >&2 "Can't find cluster dir for $config!"
754 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
757 config_file="$clusterdir/mysqld.conf"
760 if [ ! -f "$config_file" ]; then
761 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/"
764 configs="$configs $config_file"
768 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
769 echo 'Thus, you should invoke:'
770 for config in $configs; do
772 s/set-variable\s*=\s* //
773 # use # as comment in config
777 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
778 echo "# mysql_upgrade --datadir=$datadir"
780 ) | %banner -e %{name}-5.1
782 %triggerpostun -- mysql < 5.5.0
784 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
785 if echo "$config" | grep -q '^/'; then
786 config_file="$config"
787 elif [ -f "/etc/%{name}/$config" ]; then
788 config_file=/etc/%{name}/$config
790 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
791 if [ -z "$clusterdir" ]; then
792 echo >&2 "Can't find cluster dir for $config!"
793 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
796 config_file="$clusterdir/mysqld.conf"
799 if [ ! -f "$config_file" ]; then
800 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/"
803 configs="$configs $config_file"
807 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
808 echo 'Thus, you should invoke:'
809 for config in $configs; do
811 s/^language *= *polish/lc-messages = pl_PL/i
812 s/set-variable\s*=\s* //
813 s/^skip-locking/skip-external-locking/
814 # this is not valid for server. it is client option
815 s/^default-character-set/# client-config: &/
816 # use # as comment in config
820 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
821 echo "# mysql_upgrade ${socket:+--socket=$socket}"
823 ) | %banner -e %{name}-5.5
825 %triggerpostun -- mysql < 5.7.0
827 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
828 if echo "$config" | grep -q '^/'; then
829 config_file="$config"
830 elif [ -f "/etc/%{name}/$config" ]; then
831 config_file=/etc/%{name}/$config
833 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
834 if [ -z "$clusterdir" ]; then
835 echo >&2 "Can't find cluster dir for $config!"
836 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
839 config_file="$clusterdir/mysqld.conf"
842 if [ ! -f "$config_file" ]; then
843 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/"
846 configs="$configs $config_file"
850 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
851 echo 'Thus, you should invoke:'
852 for config in $configs; do
854 s/^log-warnings *=/log-error-verbosity =/
855 s/^myisam-recover$/myisam-recover-options/
856 s/^innodb_mirrored_log_groups.*//
859 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
860 echo "# mysql_upgrade ${socket:+--socket=$socket}"
862 ) | %banner -e %{name}-5.7
865 %defattr(644,root,root,755)
866 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
867 %attr(754,root,root) /etc/rc.d/init.d/%{name}
868 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
869 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
870 %attr(755,root,root) %{_sbindir}/innochecksum
871 %attr(755,root,root) %{_sbindir}/my_print_defaults
872 %attr(755,root,root) %{_sbindir}/myisamchk
873 %attr(755,root,root) %{_sbindir}/myisamlog
874 %attr(755,root,root) %{_sbindir}/myisampack
875 %attr(755,root,root) %{_sbindir}/mysql_upgrade
876 %attr(755,root,root) %{_sbindir}/mysqlcheck
877 %attr(755,root,root) %{_sbindir}/mysqld
879 %dir %{_libdir}/%{name}
880 %dir %{_libdir}/%{name}/plugin
881 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
882 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
883 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
884 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
885 %{?with_ldap:%attr(755,root,root) %{_libdir}/%{name}/plugin/authentication_ldap_sasl_client.so}
886 %attr(755,root,root) %{_libdir}/%{name}/plugin/connection_control.so
887 %attr(755,root,root) %{_libdir}/%{name}/plugin/group_replication.so
888 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_file.so
889 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_udf.so
890 %attr(755,root,root) %{_libdir}/%{name}/plugin/libpluginmecab.so
891 %attr(755,root,root) %{_libdir}/%{name}/plugin/locking_service.so
892 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
893 %attr(755,root,root) %{_libdir}/%{name}/plugin/mysql_no_login.so
894 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
895 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
896 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
897 %attr(755,root,root) %{_libdir}/%{name}/plugin/replication_observers_example_plugin.so
898 %attr(755,root,root) %{_libdir}/%{name}/plugin/rewriter.so
899 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
900 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
901 %attr(755,root,root) %{_libdir}/%{name}/plugin/validate_password.so
902 %attr(755,root,root) %{_libdir}/%{name}/plugin/version_token.so
904 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
906 %{_mandir}/man1/innochecksum.1*
907 %{_mandir}/man1/my_print_defaults.1*
908 %{_mandir}/man1/myisamchk.1*
909 %{_mandir}/man1/myisamlog.1*
910 %{_mandir}/man1/myisampack.1*
911 %{_mandir}/man1/mysql_upgrade.1*
912 %{_mandir}/man1/mysqlcheck.1*
913 %{_mandir}/man8/mysqld.8*
916 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
917 %{_datadir}/%{name}/mysqld.sym
918 %{_mandir}/man1/*resolve_stack_dump.1*
921 %attr(700,mysql,mysql) %{_mysqlhome}
922 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
923 %attr(751,root,root) /var/lib/mysql
924 # https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_secure-file-priv
925 %attr(770,mysql,mysql) %dir /var/lib/mysql-files
926 %attr(750,mysql,mysql) %dir /var/log/mysql
927 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
928 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
930 # This is template for configuration file which is created after 'service mysql init'
931 %{_datadir}/%{name}/mysqld.conf
933 %{_datadir}/%{name}/english
934 %{_datadir}/%{name}/dictionary.txt
935 %{_datadir}/%{name}/innodb_memcached_config.sql
936 %{_datadir}/%{name}/install_rewriter.sql
937 %{_datadir}/%{name}/uninstall_rewriter.sql
938 # Don't mark these with %%lang. These are used depending
939 # on database client settings.
940 %{_datadir}/%{name}/bulgarian
941 %{_datadir}/%{name}/czech
942 %{_datadir}/%{name}/danish
943 %{_datadir}/%{name}/german
944 %{_datadir}/%{name}/greek
945 %{_datadir}/%{name}/spanish
946 %{_datadir}/%{name}/estonian
947 %{_datadir}/%{name}/french
948 %{_datadir}/%{name}/hungarian
949 %{_datadir}/%{name}/italian
950 %{_datadir}/%{name}/japanese
951 %{_datadir}/%{name}/korean
952 %{_datadir}/%{name}/dutch
953 %{_datadir}/%{name}/norwegian
954 %{_datadir}/%{name}/norwegian-ny
955 %{_datadir}/%{name}/polish
956 %{_datadir}/%{name}/portuguese
957 %{_datadir}/%{name}/romanian
958 %{_datadir}/%{name}/russian
959 %{_datadir}/%{name}/serbian
960 %{_datadir}/%{name}/slovak
961 %{_datadir}/%{name}/swedish
962 %{_datadir}/%{name}/ukrainian
965 %defattr(644,root,root,755)
966 %dir %{_datadir}/%{name}
967 %{_datadir}/%{name}/charsets
970 %defattr(644,root,root,755)
971 %attr(755,root,root) %{_bindir}/myisam_ftdump
972 %attr(755,root,root) %{_bindir}/mysql_ssl_rsa_setup
973 %attr(755,root,root) %{_bindir}/mysql_secure_installation
974 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
975 %attr(755,root,root) %{_bindir}/perror
976 %{_mandir}/man1/myisam_ftdump.1*
977 %{_mandir}/man1/mysql_ssl_rsa_setup.1*
978 %{_mandir}/man1/mysql_secure_installation.1*
979 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
980 %{_mandir}/man1/perror.1*
983 %defattr(644,root,root,755)
984 %attr(755,root,root) %{_bindir}/mysqldumpslow
985 %{_mandir}/man1/mysqldumpslow.1*
988 %defattr(644,root,root,755)
989 %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/skel/.my.cnf
990 %attr(755,root,root) %{_bindir}/mysql
991 %attr(755,root,root) %{_bindir}/mysqladmin
992 %attr(755,root,root) %{_bindir}/mysqlbinlog
993 %attr(755,root,root) %{_bindir}/mysql_config_editor
994 %attr(755,root,root) %{_bindir}/mysqldump
995 %attr(755,root,root) %{_bindir}/mysqlimport
996 %attr(755,root,root) %{_bindir}/mysqlpump
997 %attr(755,root,root) %{_bindir}/mysqlshow
998 %{_mandir}/man1/mysql.1*
999 %{_mandir}/man1/mysqladmin.1*
1000 %{_mandir}/man1/mysqlbinlog.1*
1001 %{_mandir}/man1/mysql_config_editor.1*
1002 %{_mandir}/man1/mysqldump.1*
1003 %{_mandir}/man1/mysqlimport.1*
1004 %{_mandir}/man1/mysqlpump.1*
1005 %{_mandir}/man1/mysqlshow.1*
1008 %defattr(644,root,root,755)
1009 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1010 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1011 %{_sysconfdir}/%{name}/my.cnf
1012 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1013 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.21
1015 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1016 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1020 %defattr(644,root,root,755)
1021 %attr(755,root,root) %{_bindir}/mysql_config
1022 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1024 %attr(755,root,root) %{_libdir}/libndbclient.so
1026 %{_pkgconfigdir}/mysqlclient.pc
1027 %{_libdir}/libmysqlservices.a
1028 %{_includedir}/mysql
1029 %{_aclocaldir}/mysql.m4
1030 %{_mandir}/man1/mysql_config.1*
1033 %defattr(644,root,root,755)
1034 %{_libdir}/libmysqlclient.a
1036 %{_libdir}/libndbclient.a
1040 %defattr(644,root,root,755)
1041 %attr(755,root,root) %{_bindir}/mysqlslap
1042 %attr(755,root,root) %{_bindir}/mysqltest
1043 #%dir %{_datadir}/sql-bench
1044 #%{_datadir}/sql-bench/[CDRl]*
1045 #%attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1046 %{_mandir}/man1/mysqlslap.1*
1049 #%defattr(644,root,root,755)
1050 #%doc Docs/manual.html Docs/manual_toc.html
1054 %defattr(644,root,root,755)
1055 %attr(755,root,root) %{_sbindir}/ndbd
1056 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1057 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1058 %{_mandir}/man1/ndbd_redo_log_reader.1*
1059 %{_mandir}/man8/ndbd.8*
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/ndb_config
1064 %attr(755,root,root) %{_bindir}/ndb_delete_all
1065 %attr(755,root,root) %{_bindir}/ndb_desc
1066 %attr(755,root,root) %{_bindir}/ndb_drop_index
1067 %attr(755,root,root) %{_bindir}/ndb_drop_table
1068 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1069 %attr(755,root,root) %{_bindir}/ndb_mgm
1070 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1071 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1072 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1073 %attr(755,root,root) %{_bindir}/ndb_restore
1074 %attr(755,root,root) %{_bindir}/ndb_select_all
1075 %attr(755,root,root) %{_bindir}/ndb_select_count
1076 %attr(755,root,root) %{_bindir}/ndb_show_tables
1077 %attr(755,root,root) %{_bindir}/ndb_size.pl
1078 %attr(755,root,root) %{_bindir}/ndb_test_platform
1079 %attr(755,root,root) %{_bindir}/ndb_waiter
1080 %{_mandir}/man1/ndb_config.1*
1081 %{_mandir}/man1/ndb_delete_all.1*
1082 %{_mandir}/man1/ndb_desc.1*
1083 %{_mandir}/man1/ndb_drop_index.1*
1084 %{_mandir}/man1/ndb_drop_table.1*
1085 %{_mandir}/man1/ndb_error_reporter.1*
1086 %{_mandir}/man1/ndb_mgm.1*
1087 %{_mandir}/man1/ndb_print_backup_file.1*
1088 %{_mandir}/man1/ndb_print_schema_file.1*
1089 %{_mandir}/man1/ndb_print_sys_file.1*
1090 %{_mandir}/man1/ndb_restore.1*
1091 %{_mandir}/man1/ndb_select_all.1*
1092 %{_mandir}/man1/ndb_select_count.1*
1093 %{_mandir}/man1/ndb_show_tables.1*
1094 %{_mandir}/man1/ndb_size.pl.1*
1095 %{_mandir}/man1/ndb_waiter.1*
1098 %defattr(644,root,root,755)
1099 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1100 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1101 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1102 %{_mandir}/man8/ndb_mgmd.8*
1105 %defattr(644,root,root,755)
1106 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1107 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1108 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1109 %{_mandir}/man1/ndb_cpcd.1*