2 # - C(XX)FLAGS for innodb subdirs are overriden by ./configure!
3 # - http://bugs.mysql.com/bug.php?id=16470
5 # - 5.0 Changes: http://dev.mysql.com/doc/refman/5.0/en/news-5-0-x.html
8 %bcond_without big_tables # Support tables with more than 4G rows even on 32 bit platforms
9 %bcond_without federated # Federated storage engine support
10 %bcond_without innodb # InnoDB storage engine support
11 %bcond_without raid # Without raid
12 %bcond_without ssl # Without OpenSSL
13 %bcond_without tcpd # Without libwrap (tcp_wrappers) support
14 %bcond_without autodeps # BR packages needed only for resolving deps
15 %bcond_with bdb # Berkeley DB support
16 %bcond_without sphinx # Sphinx storage engine support
17 %bcond_with xtrabackup # XtraBackup
19 %include /usr/lib/rpm/macros.perl
20 Summary: MySQL: a very fast and reliable SQL database engine
21 Summary(de.UTF-8): MySQL: ist eine SQL-Datenbank
22 Summary(fr.UTF-8): MySQL: un serveur SQL rapide et fiable
23 Summary(pl.UTF-8): MySQL: bardzo szybka i niezawodna baza danych (SQL)
24 Summary(pt_BR.UTF-8): MySQL: Um servidor SQL rápido e confiável
25 Summary(ru.UTF-8): MySQL - быстрый SQL-сервер
26 Summary(uk.UTF-8): MySQL - швидкий SQL-сервер
27 Summary(zh_CN.UTF-8): MySQL数据库服务器
31 License: GPL + MySQL FLOSS Exception
32 Group: Applications/Databases
33 # Source0Download: http://dev.mysql.com/downloads/mysql/5.0.html#source
34 Source0: ftp://gd.tuwien.ac.at/db/mysql/Downloads/MySQL-5.0/%{name}-%{version}.tar.gz
35 # Source0-md5: bf280949049161aa68cf29e600d9ec79
36 #Source0: http://downloads.mysql.com/archives/mysql-5.0/%{name}-%{version}.tar.gz
37 #Source0: http://mirror.provenscaling.com/mysql/enterprise/source/5.0/%{name}-%{version}.tar.gz
38 Source100: http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
39 # Source100-md5: 7b9b618cb9b378f949bb1b91ddcc4f54
41 Source2: %{name}.sysconfig
42 Source3: %{name}.logrotate
43 Source4: %{name}d.conf
44 Source5: %{name}-clusters.conf
45 Source7: %{name}-ndb.init
46 Source8: %{name}-ndb.sysconfig
47 Source9: %{name}-ndb-mgm.init
48 Source10: %{name}-ndb-mgm.sysconfig
49 Source11: %{name}-ndb-cpc.init
50 Source12: %{name}-ndb-cpc.sysconfig
51 Source13: %{name}-client.conf
54 Patch0: %{name}-libs.patch
55 Patch1: %{name}-sphinx.patch
56 Patch2: %{name}-c++.patch
57 Patch3: %{name}-info.patch
58 Patch4: %{name}-sql-cxx-pic.patch
59 Patch5: %{name}-noproc.patch
60 Patch6: %{name}-fix_privilege_tables.patch
61 Patch7: %{name}-align.patch
62 Patch8: %{name}-client-config.patch
63 Patch9: %{name}-build.patch
64 Patch10: %{name}-alpha.patch
65 Patch11: %{name}-ndb-ldflags.patch
66 Patch12: %{name}-bug-20153.patch
67 Patch13: %{name}-bug-34192.patch
68 Patch14: %{name}-bug-16470.patch
69 Patch15: %{name}-system-users.patch
70 Patch16: %{name}-errorlog-no-rename.patch
71 Patch18: %{name}-xtrabackup.patch
72 Patch19: %{name}hotcopy-5.0-5.5.patch
73 Patch21: %{name}-atomic.patch
74 Patch22: %{name}-fix-dummy-thread-race-condition.patch
76 Patch23: big_tables_fixlp284123_fix%{name}35346.patch
78 Patch25: %{name}-sslchain.patch
79 Patch26: %{name}-yacc.patch
80 Patch27: community-mysql-dh1024.patch
81 # <percona patches, http://www.percona.com/percona-lab.html>
82 Patch100: %{name}-show_patches.patch
83 Patch101: %{name}-microslow_innodb.patch
84 Patch102: %{name}-profiling_slow.patch
85 Patch103: %{name}-userstatv2.patch
86 Patch104: %{name}-microsec_process.patch
87 Patch105: %{name}-innodb_io_patches.patch
88 Patch106: %{name}-innodb_locks_held.patch
89 Patch107: %{name}-innodb_show_bp.patch
90 Patch108: %{name}-innodb_check_fragmentation.patch
91 Patch109: %{name}-innodb_io_pattern.patch
92 Patch110: %{name}-innodb_fsync_source.patch
93 Patch111: %{name}-innodb_show_hashed_memory.patch
94 Patch112: %{name}-innodb_dict_size_limit.patch
95 Patch113: %{name}-innodb_extra_rseg.patch
96 Patch114: %{name}-innodb_thread_concurrency_timer_based.patch
97 Patch115: %{name}-innodb_use_sys_malloc.patch
98 Patch116: %{name}-innodb_recovery_patches.patch
99 Patch117: %{name}-innodb_misc_patch.patch
100 Patch118: %{name}-innodb_split_buf_pool_mutex.patch
101 Patch119: %{name}-innodb_rw_lock.patch
103 URL: http://www.mysql.com/products/database/mysql/community_edition.html
104 BuildRequires: autoconf
105 BuildRequires: automake
107 %{?with_bdb:BuildRequires: db3-devel}
109 BuildRequires: libstdc++-devel >= 5:3.0
110 BuildRequires: libtool
111 %{?with_tcpd:BuildRequires: libwrap-devel}
112 BuildRequires: ncurses-devel >= 4.2
113 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
114 %{?with_autodeps:BuildRequires: perl-DBI}
115 BuildRequires: perl-devel >= 1:5.6.1
116 BuildRequires: readline-devel >= 4.2
117 BuildRequires: rpm-perlprov >= 4.1-13
118 BuildRequires: rpmbuild(macros) >= 1.453
119 BuildRequires: sed >= 4.0
120 BuildRequires: texinfo
121 BuildRequires: zlib-devel
122 Requires(post,preun): /sbin/chkconfig
123 Requires(postun): /usr/sbin/groupdel
124 Requires(postun): /usr/sbin/userdel
125 Requires(pre): /bin/id
126 Requires(pre): /usr/bin/getgid
127 Requires(pre): /usr/sbin/groupadd
128 Requires(pre): /usr/sbin/useradd
129 Requires(triggerpostun): sed >= 4.0
130 Requires: %{name}-charsets = %{version}-%{release}
131 Requires: %{name}-libs = %{version}-%{release}
132 Requires: /usr/bin/setsid
133 Requires: rc-scripts >= 0.2.0
134 Suggests: mysql-client
135 %{?with_tcpd:Suggests: tcp_wrappers}
136 Suggests: vim-syntax-mycnf
137 Provides: MySQL-server
138 Provides: group(mysql)
139 Provides: msqlormysql
140 Provides: user(mysql)
142 Obsoletes: mysql-server
143 Conflicts: logrotate < 3.7-4
145 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
147 %define _libexecdir %{_sbindir}
148 %define _localstatedir /var/lib/mysql
149 %define _mysqlhome /home/services/mysql
151 # CFLAGS for innodb are altered
152 %unglobal configure_cache
154 %define filterout_c -Werror=format-security
156 %define skip_post_check_so libndbclient.so.2.0.0
159 MySQL is a true multi-user, multi-threaded SQL (Structured Query
160 Language) database server. SQL is the most popular database language
161 in the world. MySQL is a client/server implementation that consists of
162 a server daemon mysqld and many different client programs/libraries.
164 The main goals of MySQL are speed, robustness and easy to use. MySQL
165 was originally developed because we at Tcx needed a SQL server that
166 could handle very big databases with magnitude higher speed than what
167 any database vendor could offer to us. We have now been using MySQL
168 since 1996 in a environment with more than 40 databases, 10,000
169 tables, of which more than 500 have more than 7 million rows. This is
170 about 50G of mission critical data.
172 The base upon which MySQL is built is a set of routines that have been
173 used in a highly demanding production environment for many years.
174 While MySQL is still in development, it already offers a rich and
175 highly useful function set.
177 %description -l fr.UTF-8
178 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
179 multi-taches. Le langage SQL est le langage de bases de donnees le
180 plus populaire au monde. MySQL est une implementation client/serveur
181 qui consiste en un serveur (mysqld) et differents
182 programmes/bibliotheques clientes.
184 Les objectifs principaux de MySQL sont: vitesse, robustesse et
185 facilite d'utilisation. MySQL fut originalement developpe parce que
186 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
187 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
188 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
189 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
190 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
191 millions de lignes. Ceci represente environ 50G de donnees critiques.
193 A la base de la conception de MySQL, on retrouve une serie de routines
194 qui ont ete utilisees dans un environnement de production pendant
195 plusieurs annees. Meme si MySQL est encore en developpement, il offre
196 deja une riche et utile serie de fonctions.
198 %description -l pl.UTF-8
199 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
200 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
201 danych. MySQL to implementacja klient/serwer składająca się z demona
202 mysqld i wielu różnych programów i bibliotek klienckich.
204 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
205 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
206 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
207 większą, niż mogli zaoferować inni producenci baz danych. Używają go
208 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
209 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
210 50GB krytycznych danych.
212 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
213 które były używane w bardzo wymagającym środowisku produkcyjnym przez
214 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
215 i użyteczny zbiór funkcji.
217 %description -l de.UTF-8
218 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
219 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
220 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
221 einem Primärschlüssel versehen werden. Es ist aber keine Definition
222 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
223 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
224 Daten verantwortlich. Allein durch die Nutzung externer
225 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
226 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
228 %description -l pt_BR.UTF-8
229 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
230 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
231 dados no mundo. O MySQL é uma implementação cliente/servidor que
232 consiste de um servidor chamado mysqld e diversos
233 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
234 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
235 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
236 pudesse lidar com grandes bases de dados e com uma velocidade muito
237 maior do que a que qualquer vendedor podia nos oferecer. Estamos
238 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
239 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
240 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
241 A base da construção do MySQL é uma série de rotinas que foram usadas
242 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
243 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
244 funções muito ricas e úteis. Veja a documentação para maiores
247 %description -l ru.UTF-8
248 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
249 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
250 дистрибутиве на предмет других участников проекта и прочей информации
253 %description -l uk.UTF-8
254 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
255 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
256 дистрибутиві для інформації про інших учасників проекту та іншої
260 Summary: MySQL - character sets definitions
261 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
262 Group: Applications/Databases
264 %description charsets
265 This package contains character sets definitions needed by both client
268 %description charsets -l pl.UTF-8
269 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
272 %package -n mysqlhotcopy
273 Summary: mysqlhotcopy - A MySQL database backup program
274 Summary(pl.UTF-8): mysqlhotcopy - program do tworzenia kopii zapasowych baz MySQL
275 Group: Applications/Databases
276 Requires: perl-DBD-mysql
278 %description -n mysqlhotcopy
279 mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a
280 database backup quickly. It is the fastest way to make a backup of the
281 database or single tables, but it can be run only on the same machine
282 where the database directories are located. mysqlhotcopy works only
283 for backing up MyISAM and ARCHIVE tables.
285 See innobackup package to backup InnoDB tables.
287 %description -n mysqlhotcopy -l pl.UTF-8
288 mysqlhotcopy wykorzystuje LOCK TABLES, FLUSH TABLES oraz cp i scp do
289 szybkiego tworzenia kopii zapasowych baz danych. Jest to najszybszy
290 sposób wykonania kopii zapasowej bazy danych lub pojedynczych tabel,
291 ale może działać tylko na maszynie, na której znajdują się katalogi z
292 bazą danych. mysqlhotcopy działa tylko dla tabel typu MyISAM i
295 Narzędzie do tworzenia kopii tabel InnoDB znajduje się w pakiecie
299 Summary: MySQL additional utilities
300 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
301 Group: Applications/Databases
302 Requires: %{name}-libs = %{version}-%{release}
305 MySQL additional utilities except Perl scripts (they may be found in
306 %{name}-extras-perl package).
308 %description extras -l pl.UTF-8
309 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
310 pakiecie %{name}-extras-perl).
313 Summary: MySQL additional utilities written in Perl
314 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
315 Group: Applications/Databases
316 Requires: %{name}-extras = %{version}-%{release}
317 # this is just for the sake of smooth upgrade, not to break systems
318 Requires: mysqlhotcopy = %{version}-%{release}
319 Requires: perl(DBD::mysql)
321 %description extras-perl
322 MySQL additional utilities written in Perl.
324 %description extras-perl -l pl.UTF-8
325 Dodatkowe narzędzia do MySQL napisane w Perlu.
328 Summary: MySQL - Client
329 Summary(pl.UTF-8): MySQL - Klient
330 Summary(pt.UTF-8): MySQL - Cliente
331 Summary(ru.UTF-8): MySQL клиент
332 Summary(uk.UTF-8): MySQL клієнт
333 Group: Applications/Databases
334 Requires: %{name}-charsets = %{version}-%{release}
335 Requires: %{name}-libs = %{version}-%{release}
336 Obsoletes: MySQL-client
339 This package contains the standard MySQL clients.
341 %description client -l fr.UTF-8
342 Ce package contient les clients MySQL standards.
344 %description client -l pl.UTF-8
345 Standardowe programy klienckie MySQL.
347 %description client -l pt_BR.UTF-8
348 Este pacote contém os clientes padrão para o MySQL.
350 %description client -l ru.UTF-8
351 Этот пакет содержит только клиент MySQL.
353 %description client -l uk.UTF-8
354 Цей пакет містить тільки клієнта MySQL.
357 Summary: Shared libraries for MySQL
358 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
360 Requires: glibc >= 6:2.3.6-15
361 Obsoletes: libmysql10
362 Obsoletes: mysql-doc < 4.1.12
365 Shared libraries for MySQL.
367 %description libs -l pl.UTF-8
368 Biblioteki współdzielone MySQL.
371 Summary: MySQL - development header files and other files
372 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
373 Summary(pt.UTF-8): MySQL - Medições de desempenho
374 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
375 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
376 Group: Development/Libraries
377 Requires: %{name}-libs = %{version}-%{release}
378 %{?with_ssl:Requires: openssl-devel}
380 Obsoletes: MySQL-devel
381 Obsoletes: libmysql10-devel
384 This package contains the development header files and other files
385 necessary to develop MySQL client applications.
387 %description devel -l fr.UTF-8
388 Ce package contient les fichiers entetes et les librairies de
389 developpement necessaires pour developper des applications clientes
392 %description devel -l pl.UTF-8
393 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
396 %description devel -l pt_BR.UTF-8
397 Este pacote contém os arquivos de cabeçalho (header files) e
398 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
400 %description devel -l ru.UTF-8
401 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
402 разработки клиентских приложений.
404 %description devel -l uk.UTF-8
405 Цей пакет містить хедери та бібліотеки програміста, необхідні для
406 розробки програм-клієнтів.
409 Summary: MySQL static libraries
410 Summary(pl.UTF-8): Biblioteki statyczne MySQL
411 Summary(ru.UTF-8): MySQL - статические библиотеки
412 Summary(uk.UTF-8): MySQL - статичні бібліотеки
413 Group: Development/Libraries
414 Requires: %{name}-devel = %{version}-%{release}
415 Obsoletes: MySQL-static
418 MySQL static libraries.
420 %description static -l pl.UTF-8
421 Biblioteki statyczne MySQL.
423 %description static -l ru.UTF-8
424 Этот пакет содержит статические библиотеки разработчика, необходимые
425 для разработки клиентских приложений.
427 %description static -l uk.UTF-8
428 Цей пакет містить статичні бібліотеки програміста, необхідні для
429 розробки програм-клієнтів.
432 Summary: MySQL - Benchmarks
433 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
434 Summary(pt.UTF-8): MySQL - Medições de desempenho
435 Summary(ru.UTF-8): MySQL - бенчмарки
436 Summary(uk.UTF-8): MySQL - бенчмарки
437 Group: Applications/Databases
438 Requires: %{name} = %{version}-%{release}
439 Requires: %{name}-client
440 Requires: perl(DBD::mysql)
441 Obsoletes: MySQL-bench
444 This package contains MySQL benchmark scripts and data.
446 %description bench -l pl.UTF-8
447 Programy testujące szybkość serwera MySQL.
449 %description bench -l pt_BR.UTF-8
450 Este pacote contém medições de desempenho de scripts e dados do MySQL.
452 %description bench -l ru.UTF-8
453 Этот пакет содержит скрипты и данные для оценки производительности
456 %description bench -l uk.UTF-8
457 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
460 Summary: MySQL manual
461 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
462 Group: Applications/Databases
465 This package contains manual in HTML format.
467 %description doc -l pl.UTF-8
468 Podręcznik MySQL-a w formacie HTML.
471 Summary: MySQL - NDB Storage Engine Daemon
472 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
473 Group: Applications/Databases
474 Requires: %{name}-libs = %{version}-%{release}
477 This package contains the standard MySQL NDB Storage Engine Daemon.
479 %description ndb -l pl.UTF-8
480 Ten pakiet zawiera standardowego demona silnika przechowywania danych
484 Summary: MySQL - NDB Clients
485 Summary(pl.UTF-8): MySQL - programy klienckie NDB
486 Group: Applications/Databases
487 Requires: %{name}-libs = %{version}-%{release}
489 %description ndb-client
490 This package contains the standard MySQL NDB Clients.
492 %description ndb-client -l pl.UTF-8
493 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
496 Summary: MySQL - NDB Management Daemon
497 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
498 Group: Applications/Databases
499 Requires: %{name}-libs = %{version}-%{release}
502 This package contains the standard MySQL NDB Management Daemon.
504 %description ndb-mgm -l pl.UTF-8
505 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
508 Summary: MySQL - NDB CPC Daemon
509 Summary(pl.UTF-8): MySQL - demon NDB CPC
510 Group: Applications/Databases
511 Requires: %{name}-libs = %{version}-%{release}
514 This package contains the standard MySQL NDB CPC Daemon.
516 %description ndb-cpc -l pl.UTF-8
517 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
520 %setup -q %{?with_sphinx:-a100}
524 mv sphinx-*/mysqlse sql/sphinx
530 # this is strange: mysqld functions for UDF modules are not explicitly defined,
531 # so -rdynamic is used; in such case gcc3+ld on alpha doesn't like C++ vtables
532 # in objects compiled without -fPIC
548 %{?with_xtrabackup:%patch18 -p1}
582 %{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in
591 # The compiler flags are as per their "official" spec ;)
592 CXXFLAGS="%{rpmcflags} -fno-implicit-templates -fno-exceptions -fno-rtti"
593 CFLAGS="%{rpmcflags}"
594 CPPFLAGS="%{rpmcppflags}"
596 # NOTE: the PS, FIND_PROC, KILL, CHECK_PID are not used by PLD Linux
597 # and therefore do not add BR on these. These are here just to satisfy
602 FIND_PROC='/bin/ps p $$PID' \
604 CHECK_PID='/bin/kill -0 $$PID' \
606 --enable-largefile=yes \
609 --enable-thread-safe-client \
610 --with%{!?with_bdb:out}-berkeley-db \
611 --with%{!?with_innodb:out}-innodb \
612 --with%{!?with_raid:out}-raid \
613 --with%{!?with_ssl:out}-openssl \
614 --with%{!?with_tcpd:out}-libwrap \
615 %{?with_big_tables:--with-big-tables} \
616 --with-comment="PLD Linux Distribution MySQL RPM" \
617 --with%{!?debug:out}-debug \
618 --with%{!?debug:out}-ndb-debug \
619 --with-embedded-server \
620 --with-extra-charsets=all \
622 --with-mysqld-user=mysql \
623 --with-named-curses-libs="-lncurses" \
624 --with-named-thread-libs="-lpthread" \
625 --with-unix-socket-path=/var/lib/mysql/mysql.sock \
626 --with-archive-storage-engine \
627 %{?with_sphinx:--with-sphinx-storage-engine} \
628 %{?with_federated:--with-federated-storage-engine} \
635 # --with-ndb-test --with-ndb-docs
637 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
638 # (it defaults to first cluster but user may change it to whatever
641 echo -e "all:\ninstall:\nclean:\nlink_sources:\n" > libmysqld/examples/Makefile
644 benchdir=$RPM_BUILD_ROOT%{_datadir}/sql-bench
646 %if %{with xtrabackup}
647 %{__make} -C innobase/xtrabackup \
651 %{__make} -C Docs mysql.info
654 rm -rf $RPM_BUILD_ROOT
655 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,certs/mysql,skel} \
656 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
657 $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
660 install -d $RPM_BUILD_ROOT/var/lib/mysql/bdb/{log,tmp}
665 DESTDIR=$RPM_BUILD_ROOT \
666 benchdir=%{_datadir}/sql-bench \
668 # libsdir is to avoid installing innodb static libs in $RPM_BUILD_ROOT../libs
670 cp -a Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
672 install -p mysql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
673 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
674 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
675 # This is template for configuration file which is created after 'service mysql init'
676 cp -a %{SOURCE4} mysqld.conf
677 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/clusters.conf
678 touch $RPM_BUILD_ROOT/var/log/mysql/{err,log,update}
680 # remove innodb directives from mysqld.conf if mysqld is configured without
681 %if %{without innodb}
682 cp mysqld.conf mysqld.tmp
683 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
686 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
688 cp mysqld.conf mysqld.tmp
689 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
693 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/sphinx.a
694 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/sphinx.la
695 # TODO: patch build with -avoid-version
696 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/sphinx.so.0
697 mv $RPM_BUILD_ROOT%{_libdir}/mysql/sphinx.so{.0.0.0,}
700 install mysqld.conf $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.conf
701 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/mysql-client.conf
702 cp -a %{SOURCE15} $RPM_BUILD_ROOT/etc/skel/.my.cnf
705 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
706 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
707 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
708 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
709 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
710 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
712 mv -f $RPM_BUILD_ROOT%{_libdir}/mysql/lib* $RPM_BUILD_ROOT%{_libdir}
713 sed -i -e 's,%{_libdir}/mysql,%{_libdir},' $RPM_BUILD_ROOT{%{_libdir}/libmysqlclient{,_r}.la,%{_bindir}/mysql_config}
714 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
716 # remove known unpackaged files
717 rm -rf $RPM_BUILD_ROOT%{_prefix}/mysql-test
719 # remove .txt variants for .sys messages
720 rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*/*.txt
722 # rename not to be so generic name
723 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
724 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
726 # not useful without -debug build
727 %{!?debug:rm -f $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
728 %{!?debug:rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
729 # generate symbols file, so one can generate backtrace using it
730 # mysql_resolve_stack_dump -s %{_datadir}/mysql/mysqld.sym -n mysqld.stack.
731 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
732 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.sym}
734 # do not clobber users $PATH
735 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
736 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
737 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
738 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
739 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
740 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
741 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
742 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
744 # functionality in initscript / rpm
745 rm $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
746 rm $RPM_BUILD_ROOT%{_bindir}/mysql_upgrade_shell
747 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
748 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
749 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
750 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
751 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
752 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
753 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg.txt
754 rm $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
755 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
756 rm $RPM_BUILD_ROOT%{_mandir}/man1/safe_mysqld*
757 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
758 rm $RPM_BUILD_ROOT%{_bindir}/resolveip
759 rm $RPM_BUILD_ROOT%{_mandir}/man1/resolveip.1*
760 rm $RPM_BUILD_ROOT%{_bindir}/comp_err
761 rm $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1
762 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_install_db.1
763 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1
764 rm $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld_multi.server
766 # no package for tests
767 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1
768 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1
769 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1
771 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqltest_embedded.1
774 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.{ini,cnf}
777 rm -rf $RPM_BUILD_ROOT
780 %groupadd -g 89 mysql
781 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
784 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
785 /sbin/chkconfig --add mysql
786 %service mysql restart
789 if [ "$1" = "0" ]; then
790 %service -q mysql stop
791 /sbin/chkconfig --del mysql
795 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
796 if [ "$1" = "0" ]; then
802 /sbin/chkconfig --add mysql-ndb
803 %service mysql-ndb restart "mysql NDB engine"
806 if [ "$1" = "0" ]; then
807 %service mysql-ndb stop
808 /sbin/chkconfig --del mysql-ndb
812 /sbin/chkconfig --add mysql-ndb-mgm
813 %service mysql-ndb-mgm restart "mysql NDB management node"
816 if [ "$1" = "0" ]; then
817 %service mysql-ndb-mgm stop
818 /sbin/chkconfig --del mysql-ndb-mgm
822 /sbin/chkconfig --add mysql-ndb-cpc
823 %service mysql-ndb-cpc restart "mysql NDB CPC"
826 if [ "$1" = "0" ]; then
827 %service mysql-ndb-cpc stop
828 /sbin/chkconfig --del mysql-ndb-cpc
831 %post libs -p /sbin/ldconfig
832 %postun libs -p /sbin/ldconfig
834 %triggerpostun -- mysql < 4.0.20-2.4
835 # For clusters in /etc/%{name}/clusters.conf
836 if [ -f /etc/sysconfig/mysql ]; then
837 . /etc/sysconfig/mysql
838 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
839 for i in "$MYSQL_DB_CLUSTERS"; do
840 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
842 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
843 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
844 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
845 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
849 %triggerpostun -- mysql < 4.1.1
850 # For better compatibility with prevoius versions:
851 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
852 if echo "$config" | grep -q '^/'; then
853 config_file="$config"
854 elif [ -f "/etc/%{name}/$config" ]; then
855 config_file=/etc/%{name}/$config
857 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
858 if [ -z "$clusterdir" ]; then
859 echo >&2 "Can't find cluster dir for $config!"
860 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
863 config_file="$clusterdir/mysqld.conf"
866 if [ ! -f "$config_file" ]; then
867 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
870 echo "Adding option old-passwords to config: $config_file"
871 echo "If you want to use new, better passwords - remove it"
873 # sed magic to add 'old-passwords' to [mysqld] section
874 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
876 a; Compatibility options:
882 %banner -e %{name}-4.1.x <<-EOF
883 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
884 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
889 %defattr(644,root,root,755)
890 %doc support-files/*.cnf support-files/*.ini ChangeLog
891 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/mysql
892 %attr(754,root,root) /etc/rc.d/init.d/mysql
893 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql
894 %dir /etc/certs/mysql
895 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/clusters.conf
896 %attr(755,root,root) %{_sbindir}/innochecksum
897 %attr(755,root,root) %{_sbindir}/my_print_defaults
898 %attr(755,root,root) %{_sbindir}/myisamchk
899 %attr(755,root,root) %{_sbindir}/myisamlog
900 %attr(755,root,root) %{_sbindir}/myisampack
901 %attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
902 %attr(755,root,root) %{_sbindir}/mysql_upgrade
903 %attr(755,root,root) %{_sbindir}/mysqlcheck
904 %attr(755,root,root) %{_sbindir}/mysqld
906 %dir %{_libdir}/%{name}
907 %attr(755,root,root) %{_libdir}/%{name}/sphinx.so
909 %{_mandir}/man1/innochecksum.1*
910 %{_mandir}/man1/my_print_defaults.1*
911 %{_mandir}/man1/myisamchk.1*
912 %{_mandir}/man1/myisamlog.1*
913 %{_mandir}/man1/myisampack.1*
914 %{_mandir}/man1/mysql_fix_privilege_tables.1*
915 %{_mandir}/man1/mysql_upgrade.1*
916 %{_mandir}/man1/mysqlcheck.1*
917 %{_mandir}/man8/mysqld.8*
920 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
921 %{_datadir}/mysql/mysqld.sym
922 %{_mandir}/man1/*resolve_stack_dump.1*
925 %attr(700,mysql,mysql) %{_mysqlhome}
926 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
927 %attr(751,root,root) /var/lib/mysql
928 %attr(750,mysql,mysql) %dir /var/log/mysql
929 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
930 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
932 %{_infodir}/mysql.info*
933 # This is template for configuration file which is created after 'service mysql init'
934 %{_datadir}/mysql/mysqld.conf
935 %{_datadir}/mysql/mysql_system_tables.sql
936 %{_datadir}/mysql/mysql_system_tables_data.sql
937 %{_datadir}/mysql/mysql_test_data_timezone.sql
939 %{_datadir}/mysql/english
940 %{_datadir}/mysql/fill_help_tables.sql
941 %{_datadir}/mysql/mysql_fix_privilege_tables.sql
942 %lang(cs) %{_datadir}/mysql/czech
943 %lang(da) %{_datadir}/mysql/danish
944 %lang(de) %{_datadir}/mysql/german
945 %lang(el) %{_datadir}/mysql/greek
946 %lang(es) %{_datadir}/mysql/spanish
947 %lang(et) %{_datadir}/mysql/estonian
948 %lang(fr) %{_datadir}/mysql/french
949 %lang(hu) %{_datadir}/mysql/hungarian
950 %lang(it) %{_datadir}/mysql/italian
951 %lang(ja) %{_datadir}/mysql/japanese
952 %lang(ko) %{_datadir}/mysql/korean
953 %lang(nl) %{_datadir}/mysql/dutch
954 %lang(nb) %{_datadir}/mysql/norwegian
955 %lang(nn) %{_datadir}/mysql/norwegian-ny
956 %lang(pl) %{_datadir}/mysql/polish
957 %lang(pt) %{_datadir}/mysql/portuguese
958 %lang(ro) %{_datadir}/mysql/romanian
959 %lang(ru) %{_datadir}/mysql/russian
960 %lang(sr) %{_datadir}/mysql/serbian
961 %lang(sk) %{_datadir}/mysql/slovak
962 %lang(sv) %{_datadir}/mysql/swedish
963 %lang(uk) %{_datadir}/mysql/ukrainian
966 %defattr(644,root,root,755)
967 %dir %{_datadir}/mysql
968 %{_datadir}/mysql/charsets
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_bindir}/msql2mysql
973 %attr(755,root,root) %{_bindir}/myisam_ftdump
974 %attr(755,root,root) %{_bindir}/mysql_secure_installation
975 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
976 %attr(755,root,root) %{_bindir}/perror
977 %attr(755,root,root) %{_bindir}/replace
978 %{_mandir}/man1/msql2mysql.1*
979 %{_mandir}/man1/myisam_ftdump.1*
980 %{_mandir}/man1/mysql_secure_installation.1*
981 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
982 %{_mandir}/man1/perror.1*
983 %{_mandir}/man1/replace.1*
985 %files -n mysqlhotcopy
986 %defattr(644,root,root,755)
987 %attr(755,root,root) %{_bindir}/mysqlhotcopy
988 %{_mandir}/man1/mysqlhotcopy.1*
991 %defattr(644,root,root,755)
992 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
993 %attr(755,root,root) %{_bindir}/mysql_explain_log
994 %attr(755,root,root) %{_bindir}/mysql_find_rows
995 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
996 %attr(755,root,root) %{_bindir}/mysql_setpermission
997 %attr(755,root,root) %{_bindir}/mysql_tableinfo
998 %attr(755,root,root) %{_bindir}/mysql_zap
999 %attr(755,root,root) %{_bindir}/mysqlaccess
1000 %attr(755,root,root) %{_bindir}/mysqldumpslow
1001 %{_mandir}/man1/mysql_convert_table_format.1*
1002 %{_mandir}/man1/mysql_explain_log.1*
1003 %{_mandir}/man1/mysql_find_rows.1*
1004 %{_mandir}/man1/mysql_fix_extensions.1*
1005 %{_mandir}/man1/mysql_setpermission.1*
1006 %{_mandir}/man1/mysql_tableinfo.1*
1007 %{_mandir}/man1/mysql_zap.1*
1008 %{_mandir}/man1/mysqlaccess.1*
1009 %{_mandir}/man1/mysqldumpslow.1*
1012 %defattr(644,root,root,755)
1013 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
1014 %attr(755,root,root) %{_bindir}/mysql
1015 %attr(755,root,root) %{_bindir}/mysqladmin
1016 %attr(755,root,root) %{_bindir}/mysqlbinlog
1017 %attr(755,root,root) %{_bindir}/mysqlbug
1018 %attr(755,root,root) %{_bindir}/mysqldump
1019 %attr(755,root,root) %{_bindir}/mysqlimport
1020 %attr(755,root,root) %{_bindir}/mysqlshow
1021 %attr(755,root,root) %{_sbindir}/mysqlmanager
1022 %{_mandir}/man1/mysql.1*
1023 %{_mandir}/man1/mysqladmin.1*
1024 %{_mandir}/man1/mysqlbinlog.1*
1025 %{_mandir}/man1/mysqlbug.1*
1026 %{_mandir}/man1/mysqldump.1*
1027 %{_mandir}/man1/mysqlimport.1*
1028 %{_mandir}/man1/mysqlshow.1*
1029 %{_mandir}/man8/mysqlmanager.8*
1032 %defattr(644,root,root,755)
1033 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1034 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/mysql-client.conf
1035 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*
1036 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.15
1037 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*
1038 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.15
1039 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*
1040 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.2
1043 %defattr(644,root,root,755)
1044 %attr(755,root,root) %{_bindir}/mysql_config
1045 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1046 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1047 %attr(755,root,root) %{_libdir}/libndbclient.so
1048 %{_libdir}/libmysqlclient.la
1049 %{_libdir}/libmysqlclient_r.la
1050 %{_libdir}/libndbclient.la
1052 %{_libdir}/libdbug.a
1053 %{_libdir}/libheap.a
1054 %{_libdir}/libmyisam.a
1055 %{_libdir}/libmyisammrg.a
1056 %{_libdir}/libmysqld.a
1057 %{_libdir}/libmystrings.a
1058 %{_libdir}/libmysys.a
1060 %{_includedir}/mysql
1061 %{_mandir}/man1/mysql_config.1*
1064 %defattr(644,root,root,755)
1065 %{_libdir}/libmysqlclient.a
1066 %{_libdir}/libmysqlclient_r.a
1067 %{_libdir}/libndbclient.a
1070 %defattr(644,root,root,755)
1071 %attr(755,root,root) %{_bindir}/mysql_client_test
1072 %attr(755,root,root) %{_bindir}/mysqltest
1073 %attr(755,root,root) %{_bindir}/mysqltestmanager
1074 %attr(755,root,root) %{_bindir}/mysqltestmanager-pwgen
1075 %attr(755,root,root) %{_bindir}/mysqltestmanagerc
1076 %dir %{_datadir}/sql-bench
1077 %{_datadir}/sql-bench/[CDRl]*
1078 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1080 %{_datadir}/mysql/mi_test_all.res
1081 %attr(755,root,root) %{_datadir}/mysql/mi_test_all
1082 %{_mandir}/man1/mysql_client_test.1*
1083 %{_mandir}/man1/mysqltest.1*
1086 #%defattr(644,root,root,755)
1087 #%doc Docs/manual.html Docs/manual_toc.html
1090 %defattr(644,root,root,755)
1091 %attr(755,root,root) %{_sbindir}/ndbd
1092 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1093 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1094 %{_mandir}/man8/ndbd.8*
1097 %defattr(644,root,root,755)
1098 %attr(755,root,root) %{_bindir}/ndb_config
1099 %attr(755,root,root) %{_bindir}/ndb_delete_all
1100 %attr(755,root,root) %{_bindir}/ndb_desc
1101 %attr(755,root,root) %{_bindir}/ndb_drop_index
1102 %attr(755,root,root) %{_bindir}/ndb_drop_table
1103 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1104 %attr(755,root,root) %{_bindir}/ndb_mgm
1105 %attr(755,root,root) %{_bindir}/ndb_restore
1106 %attr(755,root,root) %{_bindir}/ndb_select_all
1107 %attr(755,root,root) %{_bindir}/ndb_select_count
1108 %attr(755,root,root) %{_bindir}/ndb_show_tables
1109 %attr(755,root,root) %{_bindir}/ndb_size.pl
1110 %attr(755,root,root) %{_bindir}/ndb_test_platform
1111 %attr(755,root,root) %{_bindir}/ndb_waiter
1112 %attr(755,root,root) %{_datadir}/mysql/ndb_size.tmpl
1113 %{_mandir}/man1/ndb_config.1*
1114 %{_mandir}/man1/ndb_delete_all.1*
1115 %{_mandir}/man1/ndb_desc.1*
1116 %{_mandir}/man1/ndb_drop_index.1*
1117 %{_mandir}/man1/ndb_drop_table.1*
1118 %{_mandir}/man1/ndb_error_reporter.1*
1119 %{_mandir}/man1/ndb_mgm.1*
1120 %{_mandir}/man1/ndb_restore.1*
1121 %{_mandir}/man1/ndb_select_all.1*
1122 %{_mandir}/man1/ndb_select_count.1*
1123 %{_mandir}/man1/ndb_show_tables.1*
1124 %{_mandir}/man1/ndb_size.pl.1*
1125 %{_mandir}/man1/ndb_waiter.1*
1128 %defattr(644,root,root,755)
1129 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1130 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1131 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1132 %{_mandir}/man8/ndb_mgmd.8*
1135 %defattr(644,root,root,755)
1136 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1137 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1138 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1139 %{_mandir}/man1/ndb_cpcd.1*