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.73.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: 001a17602310317d17524b2e36113c53
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_73_0.tar.bz2
48 # Source101-md5: 9273c8c4576423562bbe84574b07b2bd
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: rpcsvc-proto
93 BuildRequires: rpm-build >= 4.6
94 BuildRequires: rpm-perlprov >= 4.1-13
95 BuildRequires: rpmbuild(macros) >= 1.605
96 BuildRequires: sed >= 4.0
97 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
98 BuildRequires: zlib-devel
99 Requires(post): sed >= 4.0
100 Requires(post,preun): /sbin/chkconfig
101 Requires(postun): /usr/sbin/groupdel
102 Requires(postun): /usr/sbin/userdel
103 Requires(pre): /bin/id
104 Requires(pre): /usr/bin/getgid
105 Requires(pre): /usr/sbin/groupadd
106 Requires(pre): /usr/sbin/useradd
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)
118 Obsoletes: MySQL < 3.22.27
119 Obsoletes: mysql-server < 4
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 < 3.22.27
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 < 4
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 < 3.22.27
324 Obsoletes: libmysql10-devel < 4
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 < 3.22.27
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 < 3.22.27
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}
469 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
470 %{__mv} sphinx-*/mysqlse storage/sphinx
475 # really not fixed? verify
483 # to get these files rebuild
484 [ -f sql/sql_yacc.cc ] && %{__rm} sql/sql_yacc.cc
485 [ -f sql/sql_yacc.h ] && %{__rm} sql/sql_yacc.h
488 # need to keep xxhash.[ch]
489 %{__rm} -rv extra/lz4/lz4**
494 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
495 # (it defaults to first cluster but user may change it to whatever
498 CPPFLAGS="%{rpmcppflags}" \
500 -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
501 -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
502 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
503 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
504 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
505 %{?with_systemtap:-DENABLE_DTRACE=ON} \
506 -DFEATURE_SET="community" \
507 -DINSTALL_LAYOUT=RPM \
508 -DINSTALL_LIBDIR=%{_lib} \
509 -DINSTALL_MYSQLTESTDIR_RPM="" \
510 -DINSTALL_PLUGINDIR=%{_lib}/%{name}/plugin \
511 -DINSTALL_SQLBENCHDIR=%{_datadir} \
512 -DINSTALL_SUPPORTFILESDIR=share/%{name}-support \
513 -DINSTALL_MYSQLSHAREDIR=share/%{name} \
514 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
515 %{?debug:-DWITH_DEBUG=ON} \
516 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
517 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
518 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
521 -DWITH_LIBEVENT=system \
522 -DWITH_PROTOBUF=system \
523 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
524 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
525 %{!?with_system_boost:-DWITH_BOOST="$(pwd)/$(ls -1d ../boost_*)"} \
527 -DWITH_EDITLINE=system \
528 -DWITH_MECAB=system \
533 %{?with_tests:%{__make} test}
536 rm -rf $RPM_BUILD_ROOT
537 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
538 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/{mysql,mysql-files}} \
539 $RPM_BUILD_ROOT%{_mysqlhome} \
540 $RPM_BUILD_ROOT%{_libdir}
542 %{__make} -C build install \
543 DESTDIR=$RPM_BUILD_ROOT
545 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
546 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
547 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
548 # This is template for configuration file which is created after 'service mysql init'
549 cp -a %{SOURCE4} mysqld.conf
550 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
551 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
553 # remove innodb directives from mysqld.conf if mysqld is configured without
554 %if %{without innodb}
555 cp mysqld.conf mysqld.tmp
556 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
559 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
560 cp mysqld.conf mysqld.tmp
561 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
563 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
564 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
565 ln -s mysql-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/my.cnf
566 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
570 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
571 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
572 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
573 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
574 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
575 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
578 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
579 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
580 sed -i -e '/libs/s/-lprobes_mysql//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
582 # remove known unpackaged files
583 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}-support
585 # rename not to be so generic name
587 # not useful without -debug build
588 # generate symbols file, so one can generate backtrace using it
589 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
590 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
591 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
593 # do not clobber users $PATH
594 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
595 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
596 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
597 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
598 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
599 #%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
600 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
601 %{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
603 # delete - functionality in initscript / rpm
604 # note: mysql_install_db (and thus resolveip) are needed by digikam
605 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
606 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
607 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
608 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
609 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
610 #%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
611 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
612 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
613 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
615 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
616 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{mysql_client_test,mysqlxtest}
617 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/test_udf_services.so
618 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
621 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
622 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/daemon_example.ini
625 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libtest*.so
626 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/rewrite_example.so
627 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/test_security_context.so
630 rm -rf $RPM_BUILD_ROOT
633 %groupadd -g 89 mysql
634 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
638 /sbin/chkconfig --add mysql
639 %service mysql restart
642 if [ "$1" = "0" ]; then
643 %service -q mysql stop
644 /sbin/chkconfig --del mysql
649 if [ "$1" = "0" ]; then
655 /sbin/chkconfig --add mysql-ndb
656 %service mysql-ndb restart "mysql NDB engine"
659 if [ "$1" = "0" ]; then
660 %service mysql-ndb stop
661 /sbin/chkconfig --del mysql-ndb
665 /sbin/chkconfig --add mysql-ndb-mgm
666 %service mysql-ndb-mgm restart "mysql NDB management node"
669 if [ "$1" = "0" ]; then
670 %service mysql-ndb-mgm stop
671 /sbin/chkconfig --del mysql-ndb-mgm
675 /sbin/chkconfig --add mysql-ndb-cpc
676 %service mysql-ndb-cpc restart "mysql NDB CPC"
679 if [ "$1" = "0" ]; then
680 %service mysql-ndb-cpc stop
681 /sbin/chkconfig --del mysql-ndb-cpc
684 %post libs -p /sbin/ldconfig
685 %postun libs -p /sbin/ldconfig
687 %triggerpostun -- mysql < 4.0.20-2.4
688 # For clusters in /etc/%{name}/clusters.conf
689 if [ -f /etc/sysconfig/mysql ]; then
690 . /etc/sysconfig/mysql
691 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
692 for i in "$MYSQL_DB_CLUSTERS"; do
693 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
695 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
696 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
697 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
698 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
702 %triggerpostun -- mysql < 4.1.1
703 # For better compatibility with prevoius versions:
704 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
705 if echo "$config" | grep -q '^/'; then
706 config_file="$config"
707 elif [ -f "/etc/%{name}/$config" ]; then
708 config_file=/etc/%{name}/$config
710 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
711 if [ -z "$clusterdir" ]; then
712 echo >&2 "Can't find cluster dir for $config!"
713 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
716 config_file="$clusterdir/mysqld.conf"
719 if [ ! -f "$config_file" ]; then
720 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
723 echo "Adding option old-passwords to config: $config_file"
724 echo "If you want to use new, better passwords - remove it"
726 # sed magic to add 'old-passwords' to [mysqld] section
727 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
729 a; Compatibility options:
735 %banner -e %{name}-4.1.x <<-EOF
736 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
737 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
741 %triggerpostun -- mysql < 5.1.0
743 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
744 if echo "$config" | grep -q '^/'; then
745 config_file="$config"
746 elif [ -f "/etc/%{name}/$config" ]; then
747 config_file=/etc/%{name}/$config
749 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
750 if [ -z "$clusterdir" ]; then
751 echo >&2 "Can't find cluster dir for $config!"
752 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
755 config_file="$clusterdir/mysqld.conf"
758 if [ ! -f "$config_file" ]; then
759 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/"
762 configs="$configs $config_file"
766 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
767 echo 'Thus, you should invoke:'
768 for config in $configs; do
770 s/set-variable\s*=\s* //
771 # use # as comment in config
775 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
776 echo "# mysql_upgrade --datadir=$datadir"
778 ) | %banner -e %{name}-5.1
780 %triggerpostun -- mysql < 5.5.0
782 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
783 if echo "$config" | grep -q '^/'; then
784 config_file="$config"
785 elif [ -f "/etc/%{name}/$config" ]; then
786 config_file=/etc/%{name}/$config
788 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
789 if [ -z "$clusterdir" ]; then
790 echo >&2 "Can't find cluster dir for $config!"
791 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
794 config_file="$clusterdir/mysqld.conf"
797 if [ ! -f "$config_file" ]; then
798 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/"
801 configs="$configs $config_file"
805 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
806 echo 'Thus, you should invoke:'
807 for config in $configs; do
809 s/^language *= *polish/lc-messages = pl_PL/i
810 s/set-variable\s*=\s* //
811 s/^skip-locking/skip-external-locking/
812 # this is not valid for server. it is client option
813 s/^default-character-set/# client-config: &/
814 # use # as comment in config
818 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
819 echo "# mysql_upgrade ${socket:+--socket=$socket}"
821 ) | %banner -e %{name}-5.5
823 %triggerpostun -- mysql < 5.7.0
825 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
826 if echo "$config" | grep -q '^/'; then
827 config_file="$config"
828 elif [ -f "/etc/%{name}/$config" ]; then
829 config_file=/etc/%{name}/$config
831 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
832 if [ -z "$clusterdir" ]; then
833 echo >&2 "Can't find cluster dir for $config!"
834 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
837 config_file="$clusterdir/mysqld.conf"
840 if [ ! -f "$config_file" ]; then
841 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/"
844 configs="$configs $config_file"
848 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
849 echo 'Thus, you should invoke:'
850 for config in $configs; do
852 s/^log-warnings *=/log-error-verbosity =/
853 s/^myisam-recover$/myisam-recover-options/
854 s/^innodb_mirrored_log_groups.*//
857 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
858 echo "# mysql_upgrade ${socket:+--socket=$socket}"
860 ) | %banner -e %{name}-5.7
863 %defattr(644,root,root,755)
864 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
865 %attr(754,root,root) /etc/rc.d/init.d/%{name}
866 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
867 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
868 %attr(755,root,root) %{_sbindir}/innochecksum
869 %attr(755,root,root) %{_sbindir}/my_print_defaults
870 %attr(755,root,root) %{_sbindir}/myisamchk
871 %attr(755,root,root) %{_sbindir}/myisamlog
872 %attr(755,root,root) %{_sbindir}/myisampack
873 %attr(755,root,root) %{_sbindir}/mysql_upgrade
874 %attr(755,root,root) %{_sbindir}/mysqlcheck
875 %attr(755,root,root) %{_sbindir}/mysqld
877 %dir %{_libdir}/%{name}
878 %dir %{_libdir}/%{name}/plugin
879 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
880 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
881 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
882 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
883 %{?with_ldap:%attr(755,root,root) %{_libdir}/%{name}/plugin/authentication_ldap_sasl_client.so}
884 %attr(755,root,root) %{_libdir}/%{name}/plugin/connection_control.so
885 %attr(755,root,root) %{_libdir}/%{name}/plugin/group_replication.so
886 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_file.so
887 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_udf.so
888 %attr(755,root,root) %{_libdir}/%{name}/plugin/libpluginmecab.so
889 %attr(755,root,root) %{_libdir}/%{name}/plugin/locking_service.so
890 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
891 %attr(755,root,root) %{_libdir}/%{name}/plugin/mysql_no_login.so
892 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
893 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
894 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
895 %attr(755,root,root) %{_libdir}/%{name}/plugin/replication_observers_example_plugin.so
896 %attr(755,root,root) %{_libdir}/%{name}/plugin/rewriter.so
897 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
898 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
899 %attr(755,root,root) %{_libdir}/%{name}/plugin/validate_password.so
900 %attr(755,root,root) %{_libdir}/%{name}/plugin/version_token.so
902 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
904 %{_mandir}/man1/innochecksum.1*
905 %{_mandir}/man1/my_print_defaults.1*
906 %{_mandir}/man1/myisamchk.1*
907 %{_mandir}/man1/myisamlog.1*
908 %{_mandir}/man1/myisampack.1*
909 %{_mandir}/man1/mysql_upgrade.1*
910 %{_mandir}/man1/mysqlcheck.1*
911 %{_mandir}/man8/mysqld.8*
914 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
915 %{_datadir}/%{name}/mysqld.sym
916 %{_mandir}/man1/*resolve_stack_dump.1*
919 %attr(700,mysql,mysql) %{_mysqlhome}
920 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
921 %attr(751,root,root) /var/lib/mysql
922 # https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_secure-file-priv
923 %attr(770,mysql,mysql) %dir /var/lib/mysql-files
924 %attr(750,mysql,mysql) %dir /var/log/mysql
925 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
926 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
928 # This is template for configuration file which is created after 'service mysql init'
929 %{_datadir}/%{name}/mysqld.conf
931 %{_datadir}/%{name}/english
932 %{_datadir}/%{name}/dictionary.txt
933 %{_datadir}/%{name}/innodb_memcached_config.sql
934 %{_datadir}/%{name}/install_rewriter.sql
935 %{_datadir}/%{name}/uninstall_rewriter.sql
936 # Don't mark these with %%lang. These are used depending
937 # on database client settings.
938 %{_datadir}/%{name}/bulgarian
939 %{_datadir}/%{name}/czech
940 %{_datadir}/%{name}/danish
941 %{_datadir}/%{name}/german
942 %{_datadir}/%{name}/greek
943 %{_datadir}/%{name}/spanish
944 %{_datadir}/%{name}/estonian
945 %{_datadir}/%{name}/french
946 %{_datadir}/%{name}/hungarian
947 %{_datadir}/%{name}/italian
948 %{_datadir}/%{name}/japanese
949 %{_datadir}/%{name}/korean
950 %{_datadir}/%{name}/dutch
951 %{_datadir}/%{name}/norwegian
952 %{_datadir}/%{name}/norwegian-ny
953 %{_datadir}/%{name}/polish
954 %{_datadir}/%{name}/portuguese
955 %{_datadir}/%{name}/romanian
956 %{_datadir}/%{name}/russian
957 %{_datadir}/%{name}/serbian
958 %{_datadir}/%{name}/slovak
959 %{_datadir}/%{name}/swedish
960 %{_datadir}/%{name}/ukrainian
963 %defattr(644,root,root,755)
964 %dir %{_datadir}/%{name}
965 %{_datadir}/%{name}/charsets
968 %defattr(644,root,root,755)
969 %attr(755,root,root) %{_bindir}/myisam_ftdump
970 %attr(755,root,root) %{_bindir}/mysql_ssl_rsa_setup
971 %attr(755,root,root) %{_bindir}/mysql_secure_installation
972 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
973 %attr(755,root,root) %{_bindir}/perror
974 %{_mandir}/man1/myisam_ftdump.1*
975 %{_mandir}/man1/mysql_ssl_rsa_setup.1*
976 %{_mandir}/man1/mysql_secure_installation.1*
977 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
978 %{_mandir}/man1/perror.1*
981 %defattr(644,root,root,755)
982 %attr(755,root,root) %{_bindir}/mysqldumpslow
983 %{_mandir}/man1/mysqldumpslow.1*
986 %defattr(644,root,root,755)
987 %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/skel/.my.cnf
988 %attr(755,root,root) %{_bindir}/mysql
989 %attr(755,root,root) %{_bindir}/mysqladmin
990 %attr(755,root,root) %{_bindir}/mysqlbinlog
991 %attr(755,root,root) %{_bindir}/mysql_config_editor
992 %attr(755,root,root) %{_bindir}/mysqldump
993 %attr(755,root,root) %{_bindir}/mysqlimport
994 %attr(755,root,root) %{_bindir}/mysqlpump
995 %attr(755,root,root) %{_bindir}/mysqlshow
996 %{_mandir}/man1/mysql.1*
997 %{_mandir}/man1/mysqladmin.1*
998 %{_mandir}/man1/mysqlbinlog.1*
999 %{_mandir}/man1/mysql_config_editor.1*
1000 %{_mandir}/man1/mysqldump.1*
1001 %{_mandir}/man1/mysqlimport.1*
1002 %{_mandir}/man1/mysqlpump.1*
1003 %{_mandir}/man1/mysqlshow.1*
1006 %defattr(644,root,root,755)
1007 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1008 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1009 %{_sysconfdir}/%{name}/my.cnf
1010 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1011 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.21
1013 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1014 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1018 %defattr(644,root,root,755)
1019 %attr(755,root,root) %{_bindir}/mysql_config
1020 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1022 %attr(755,root,root) %{_libdir}/libndbclient.so
1024 %{_pkgconfigdir}/mysqlclient.pc
1025 %{_libdir}/libmysqlservices.a
1026 %{_includedir}/mysql
1027 %{_aclocaldir}/mysql.m4
1028 %{_mandir}/man1/mysql_config.1*
1031 %defattr(644,root,root,755)
1032 %{_libdir}/libmysqlclient.a
1034 %{_libdir}/libndbclient.a
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{_bindir}/mysqlslap
1040 %attr(755,root,root) %{_bindir}/mysqltest
1041 #%dir %{_datadir}/sql-bench
1042 #%{_datadir}/sql-bench/[CDRl]*
1043 #%attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1044 %{_mandir}/man1/mysqlslap.1*
1047 #%defattr(644,root,root,755)
1048 #%doc Docs/manual.html Docs/manual_toc.html
1052 %defattr(644,root,root,755)
1053 %attr(755,root,root) %{_sbindir}/ndbd
1054 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1055 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1056 %{_mandir}/man1/ndbd_redo_log_reader.1*
1057 %{_mandir}/man8/ndbd.8*
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{_bindir}/ndb_config
1062 %attr(755,root,root) %{_bindir}/ndb_delete_all
1063 %attr(755,root,root) %{_bindir}/ndb_desc
1064 %attr(755,root,root) %{_bindir}/ndb_drop_index
1065 %attr(755,root,root) %{_bindir}/ndb_drop_table
1066 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1067 %attr(755,root,root) %{_bindir}/ndb_mgm
1068 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1069 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1070 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1071 %attr(755,root,root) %{_bindir}/ndb_restore
1072 %attr(755,root,root) %{_bindir}/ndb_select_all
1073 %attr(755,root,root) %{_bindir}/ndb_select_count
1074 %attr(755,root,root) %{_bindir}/ndb_show_tables
1075 %attr(755,root,root) %{_bindir}/ndb_size.pl
1076 %attr(755,root,root) %{_bindir}/ndb_test_platform
1077 %attr(755,root,root) %{_bindir}/ndb_waiter
1078 %{_mandir}/man1/ndb_config.1*
1079 %{_mandir}/man1/ndb_delete_all.1*
1080 %{_mandir}/man1/ndb_desc.1*
1081 %{_mandir}/man1/ndb_drop_index.1*
1082 %{_mandir}/man1/ndb_drop_table.1*
1083 %{_mandir}/man1/ndb_error_reporter.1*
1084 %{_mandir}/man1/ndb_mgm.1*
1085 %{_mandir}/man1/ndb_print_backup_file.1*
1086 %{_mandir}/man1/ndb_print_schema_file.1*
1087 %{_mandir}/man1/ndb_print_sys_file.1*
1088 %{_mandir}/man1/ndb_restore.1*
1089 %{_mandir}/man1/ndb_select_all.1*
1090 %{_mandir}/man1/ndb_select_count.1*
1091 %{_mandir}/man1/ndb_show_tables.1*
1092 %{_mandir}/man1/ndb_size.pl.1*
1093 %{_mandir}/man1/ndb_waiter.1*
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1098 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1099 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1100 %{_mandir}/man8/ndb_mgmd.8*
1103 %defattr(644,root,root,755)
1104 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1105 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1106 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1107 %{_mandir}/man1/ndb_cpcd.1*