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