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
77 Patch24: %{name}.init.patch
78 Patch25: %{name}-sslchain.patch
79 # <percona patches, http://www.percona.com/percona-lab.html>
80 Patch100: %{name}-show_patches.patch
81 Patch101: %{name}-microslow_innodb.patch
82 Patch102: %{name}-profiling_slow.patch
83 Patch103: %{name}-userstatv2.patch
84 Patch104: %{name}-microsec_process.patch
85 Patch105: %{name}-innodb_io_patches.patch
86 Patch106: %{name}-innodb_locks_held.patch
87 Patch107: %{name}-innodb_show_bp.patch
88 Patch108: %{name}-innodb_check_fragmentation.patch
89 Patch109: %{name}-innodb_io_pattern.patch
90 Patch110: %{name}-innodb_fsync_source.patch
91 Patch111: %{name}-innodb_show_hashed_memory.patch
92 Patch112: %{name}-innodb_dict_size_limit.patch
93 Patch113: %{name}-innodb_extra_rseg.patch
94 Patch114: %{name}-innodb_thread_concurrency_timer_based.patch
95 Patch115: %{name}-innodb_use_sys_malloc.patch
96 Patch116: %{name}-innodb_recovery_patches.patch
97 Patch117: %{name}-innodb_misc_patch.patch
98 Patch118: %{name}-innodb_split_buf_pool_mutex.patch
99 Patch119: %{name}-innodb_rw_lock.patch
101 URL: http://www.mysql.com/products/database/mysql/community_edition.html
102 BuildRequires: autoconf
103 BuildRequires: automake
105 %{?with_bdb:BuildRequires: db3-devel}
107 BuildRequires: libstdc++-devel >= 5:3.0
108 BuildRequires: libtool
109 %{?with_tcpd:BuildRequires: libwrap-devel}
110 BuildRequires: ncurses-devel >= 4.2
111 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
112 %{?with_autodeps:BuildRequires: perl-DBI}
113 BuildRequires: perl-devel >= 1:5.6.1
114 BuildRequires: readline-devel >= 4.2
115 BuildRequires: rpm-perlprov >= 4.1-13
116 BuildRequires: rpmbuild(macros) >= 1.453
117 BuildRequires: sed >= 4.0
118 BuildRequires: texinfo
119 BuildRequires: zlib-devel
120 Requires(post,preun): /sbin/chkconfig
121 Requires(postun): /usr/sbin/groupdel
122 Requires(postun): /usr/sbin/userdel
123 Requires(pre): /bin/id
124 Requires(pre): /usr/bin/getgid
125 Requires(pre): /usr/sbin/groupadd
126 Requires(pre): /usr/sbin/useradd
127 Requires(triggerpostun): sed >= 4.0
128 Requires: %{name}-charsets = %{version}-%{release}
129 Requires: %{name}-libs = %{version}-%{release}
130 Requires: /usr/bin/setsid
131 Requires: rc-scripts >= 0.2.0
132 Suggests: mysql-client
133 %{?with_tcpd:Suggests: tcp_wrappers}
134 Suggests: vim-syntax-mycnf
135 Provides: MySQL-server
136 Provides: group(mysql)
137 Provides: msqlormysql
138 Provides: user(mysql)
140 Obsoletes: mysql-server
141 Conflicts: logrotate < 3.7-4
143 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
145 %define _libexecdir %{_sbindir}
146 %define _localstatedir /var/lib/mysql
147 %define _mysqlhome /home/services/mysql
149 # CFLAGS for innodb are altered
150 %unglobal configure_cache
152 %define filterout_c -Werror=format-security
154 %define skip_post_check_so libndbclient.so.2.0.0
157 MySQL is a true multi-user, multi-threaded SQL (Structured Query
158 Language) database server. SQL is the most popular database language
159 in the world. MySQL is a client/server implementation that consists of
160 a server daemon mysqld and many different client programs/libraries.
162 The main goals of MySQL are speed, robustness and easy to use. MySQL
163 was originally developed because we at Tcx needed a SQL server that
164 could handle very big databases with magnitude higher speed than what
165 any database vendor could offer to us. We have now been using MySQL
166 since 1996 in a environment with more than 40 databases, 10,000
167 tables, of which more than 500 have more than 7 million rows. This is
168 about 50G of mission critical data.
170 The base upon which MySQL is built is a set of routines that have been
171 used in a highly demanding production environment for many years.
172 While MySQL is still in development, it already offers a rich and
173 highly useful function set.
175 %description -l fr.UTF-8
176 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
177 multi-taches. Le langage SQL est le langage de bases de donnees le
178 plus populaire au monde. MySQL est une implementation client/serveur
179 qui consiste en un serveur (mysqld) et differents
180 programmes/bibliotheques clientes.
182 Les objectifs principaux de MySQL sont: vitesse, robustesse et
183 facilite d'utilisation. MySQL fut originalement developpe parce que
184 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
185 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
186 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
187 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
188 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
189 millions de lignes. Ceci represente environ 50G de donnees critiques.
191 A la base de la conception de MySQL, on retrouve une serie de routines
192 qui ont ete utilisees dans un environnement de production pendant
193 plusieurs annees. Meme si MySQL est encore en developpement, il offre
194 deja une riche et utile serie de fonctions.
196 %description -l pl.UTF-8
197 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
198 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
199 danych. MySQL to implementacja klient/serwer składająca się z demona
200 mysqld i wielu różnych programów i bibliotek klienckich.
202 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
203 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
204 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
205 większą, niż mogli zaoferować inni producenci baz danych. Używają go
206 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
207 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
208 50GB krytycznych danych.
210 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
211 które były używane w bardzo wymagającym środowisku produkcyjnym przez
212 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
213 i użyteczny zbiór funkcji.
215 %description -l de.UTF-8
216 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
217 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
218 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
219 einem Primärschlüssel versehen werden. Es ist aber keine Definition
220 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
221 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
222 Daten verantwortlich. Allein durch die Nutzung externer
223 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
224 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
226 %description -l pt_BR.UTF-8
227 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
228 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
229 dados no mundo. O MySQL é uma implementação cliente/servidor que
230 consiste de um servidor chamado mysqld e diversos
231 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
232 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
233 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
234 pudesse lidar com grandes bases de dados e com uma velocidade muito
235 maior do que a que qualquer vendedor podia nos oferecer. Estamos
236 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
237 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
238 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
239 A base da construção do MySQL é uma série de rotinas que foram usadas
240 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
241 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
242 funções muito ricas e úteis. Veja a documentação para maiores
245 %description -l ru.UTF-8
246 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
247 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
248 дистрибутиве на предмет других участников проекта и прочей информации
251 %description -l uk.UTF-8
252 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
253 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
254 дистрибутиві для інформації про інших учасників проекту та іншої
258 Summary: MySQL - character sets definitions
259 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
260 Group: Applications/Databases
262 %description charsets
263 This package contains character sets definitions needed by both client
266 %description charsets -l pl.UTF-8
267 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
270 %package -n mysqlhotcopy
271 Summary: mysqlhotcopy - A MySQL database backup program
272 Summary(pl.UTF-8): mysqlhotcopy - program do tworzenia kopii zapasowych baz MySQL
273 Group: Applications/Databases
274 Requires: perl-DBD-mysql
276 %description -n mysqlhotcopy
277 mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a
278 database backup quickly. It is the fastest way to make a backup of the
279 database or single tables, but it can be run only on the same machine
280 where the database directories are located. mysqlhotcopy works only
281 for backing up MyISAM and ARCHIVE tables.
283 See innobackup package to backup InnoDB tables.
285 %description -n mysqlhotcopy -l pl.UTF-8
286 mysqlhotcopy wykorzystuje LOCK TABLES, FLUSH TABLES oraz cp i scp do
287 szybkiego tworzenia kopii zapasowych baz danych. Jest to najszybszy
288 sposób wykonania kopii zapasowej bazy danych lub pojedynczych tabel,
289 ale może działać tylko na maszynie, na której znajdują się katalogi z
290 bazą danych. mysqlhotcopy działa tylko dla tabel typu MyISAM i
293 Narzędzie do tworzenia kopii tabel InnoDB znajduje się w pakiecie
297 Summary: MySQL additional utilities
298 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
299 Group: Applications/Databases
300 Requires: %{name}-libs = %{version}-%{release}
303 MySQL additional utilities except Perl scripts (they may be found in
304 %{name}-extras-perl package).
306 %description extras -l pl.UTF-8
307 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
308 pakiecie %{name}-extras-perl).
311 Summary: MySQL additional utilities written in Perl
312 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
313 Group: Applications/Databases
314 Requires: %{name}-extras = %{version}-%{release}
315 # this is just for the sake of smooth upgrade, not to break systems
316 Requires: mysqlhotcopy = %{version}-%{release}
317 Requires: perl(DBD::mysql)
319 %description extras-perl
320 MySQL additional utilities written in Perl.
322 %description extras-perl -l pl.UTF-8
323 Dodatkowe narzędzia do MySQL napisane w Perlu.
326 Summary: MySQL - Client
327 Summary(pl.UTF-8): MySQL - Klient
328 Summary(pt.UTF-8): MySQL - Cliente
329 Summary(ru.UTF-8): MySQL клиент
330 Summary(uk.UTF-8): MySQL клієнт
331 Group: Applications/Databases
332 Requires: %{name}-charsets = %{version}-%{release}
333 Requires: %{name}-libs = %{version}-%{release}
334 Obsoletes: MySQL-client
337 This package contains the standard MySQL clients.
339 %description client -l fr.UTF-8
340 Ce package contient les clients MySQL standards.
342 %description client -l pl.UTF-8
343 Standardowe programy klienckie MySQL.
345 %description client -l pt_BR.UTF-8
346 Este pacote contém os clientes padrão para o MySQL.
348 %description client -l ru.UTF-8
349 Этот пакет содержит только клиент MySQL.
351 %description client -l uk.UTF-8
352 Цей пакет містить тільки клієнта MySQL.
355 Summary: Shared libraries for MySQL
356 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
358 Requires: glibc >= 6:2.3.6-15
359 Obsoletes: libmysql10
360 Obsoletes: mysql-doc < 4.1.12
363 Shared libraries for MySQL.
365 %description libs -l pl.UTF-8
366 Biblioteki współdzielone MySQL.
369 Summary: MySQL - development header files and other files
370 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
371 Summary(pt.UTF-8): MySQL - Medições de desempenho
372 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
373 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
374 Group: Development/Libraries
375 Requires: %{name}-libs = %{version}-%{release}
376 %{?with_ssl:Requires: openssl-devel}
378 Obsoletes: MySQL-devel
379 Obsoletes: libmysql10-devel
382 This package contains the development header files and other files
383 necessary to develop MySQL client applications.
385 %description devel -l fr.UTF-8
386 Ce package contient les fichiers entetes et les librairies de
387 developpement necessaires pour developper des applications clientes
390 %description devel -l pl.UTF-8
391 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
394 %description devel -l pt_BR.UTF-8
395 Este pacote contém os arquivos de cabeçalho (header files) e
396 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
398 %description devel -l ru.UTF-8
399 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
400 разработки клиентских приложений.
402 %description devel -l uk.UTF-8
403 Цей пакет містить хедери та бібліотеки програміста, необхідні для
404 розробки програм-клієнтів.
407 Summary: MySQL static libraries
408 Summary(pl.UTF-8): Biblioteki statyczne MySQL
409 Summary(ru.UTF-8): MySQL - статические библиотеки
410 Summary(uk.UTF-8): MySQL - статичні бібліотеки
411 Group: Development/Libraries
412 Requires: %{name}-devel = %{version}-%{release}
413 Obsoletes: MySQL-static
416 MySQL static libraries.
418 %description static -l pl.UTF-8
419 Biblioteki statyczne MySQL.
421 %description static -l ru.UTF-8
422 Этот пакет содержит статические библиотеки разработчика, необходимые
423 для разработки клиентских приложений.
425 %description static -l uk.UTF-8
426 Цей пакет містить статичні бібліотеки програміста, необхідні для
427 розробки програм-клієнтів.
430 Summary: MySQL - Benchmarks
431 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
432 Summary(pt.UTF-8): MySQL - Medições de desempenho
433 Summary(ru.UTF-8): MySQL - бенчмарки
434 Summary(uk.UTF-8): MySQL - бенчмарки
435 Group: Applications/Databases
436 Requires: %{name} = %{version}-%{release}
437 Requires: %{name}-client
438 Requires: perl(DBD::mysql)
439 Obsoletes: MySQL-bench
442 This package contains MySQL benchmark scripts and data.
444 %description bench -l pl.UTF-8
445 Programy testujące szybkość serwera MySQL.
447 %description bench -l pt_BR.UTF-8
448 Este pacote contém medições de desempenho de scripts e dados do MySQL.
450 %description bench -l ru.UTF-8
451 Этот пакет содержит скрипты и данные для оценки производительности
454 %description bench -l uk.UTF-8
455 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
458 Summary: MySQL manual
459 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
460 Group: Applications/Databases
463 This package contains manual in HTML format.
465 %description doc -l pl.UTF-8
466 Podręcznik MySQL-a w formacie HTML.
469 Summary: MySQL - NDB Storage Engine Daemon
470 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
471 Group: Applications/Databases
472 Requires: %{name}-libs = %{version}-%{release}
475 This package contains the standard MySQL NDB Storage Engine Daemon.
477 %description ndb -l pl.UTF-8
478 Ten pakiet zawiera standardowego demona silnika przechowywania danych
482 Summary: MySQL - NDB Clients
483 Summary(pl.UTF-8): MySQL - programy klienckie NDB
484 Group: Applications/Databases
485 Requires: %{name}-libs = %{version}-%{release}
487 %description ndb-client
488 This package contains the standard MySQL NDB Clients.
490 %description ndb-client -l pl.UTF-8
491 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
494 Summary: MySQL - NDB Management Daemon
495 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
496 Group: Applications/Databases
497 Requires: %{name}-libs = %{version}-%{release}
500 This package contains the standard MySQL NDB Management Daemon.
502 %description ndb-mgm -l pl.UTF-8
503 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
506 Summary: MySQL - NDB CPC Daemon
507 Summary(pl.UTF-8): MySQL - demon NDB CPC
508 Group: Applications/Databases
509 Requires: %{name}-libs = %{version}-%{release}
512 This package contains the standard MySQL NDB CPC Daemon.
514 %description ndb-cpc -l pl.UTF-8
515 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
518 %setup -q %{?with_sphinx:-a100}
522 mv sphinx-*/mysqlse sql/sphinx
528 # this is strange: mysqld functions for UDF modules are not explicitly defined,
529 # so -rdynamic is used; in such case gcc3+ld on alpha doesn't like C++ vtables
530 # in objects compiled without -fPIC
546 %{?with_xtrabackup:%patch18 -p1}
578 %{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in
587 # The compiler flags are as per their "official" spec ;)
588 CXXFLAGS="%{rpmcflags} -fno-implicit-templates -fno-exceptions -fno-rtti"
589 CFLAGS="%{rpmcflags}"
590 CPPFLAGS="%{rpmcppflags}"
592 # NOTE: the PS, FIND_PROC, KILL, CHECK_PID are not used by PLD Linux
593 # and therefore do not add BR on these. These are here just to satisfy
598 FIND_PROC='/bin/ps p $$PID' \
600 CHECK_PID='/bin/kill -0 $$PID' \
602 --enable-largefile=yes \
605 --enable-thread-safe-client \
606 --with%{!?with_bdb:out}-berkeley-db \
607 --with%{!?with_innodb:out}-innodb \
608 --with%{!?with_raid:out}-raid \
609 --with%{!?with_ssl:out}-openssl \
610 --with%{!?with_tcpd:out}-libwrap \
611 %{?with_big_tables:--with-big-tables} \
612 --with-comment="PLD Linux Distribution MySQL RPM" \
613 --with%{!?debug:out}-debug \
614 --with%{!?debug:out}-ndb-debug \
615 --with-embedded-server \
616 --with-extra-charsets=all \
618 --with-mysqld-user=mysql \
619 --with-named-curses-libs="-lncurses" \
620 --with-named-thread-libs="-lpthread" \
621 --with-unix-socket-path=/var/lib/mysql/mysql.sock \
622 --with-archive-storage-engine \
623 %{?with_sphinx:--with-sphinx-storage-engine} \
624 %{?with_federated:--with-federated-storage-engine} \
631 # --with-ndb-test --with-ndb-docs
633 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
634 # (it defaults to first cluster but user may change it to whatever
637 echo -e "all:\ninstall:\nclean:\nlink_sources:\n" > libmysqld/examples/Makefile
640 benchdir=$RPM_BUILD_ROOT%{_datadir}/sql-bench
642 %if %{with xtrabackup}
643 %{__make} -C innobase/xtrabackup \
647 %{__make} -C Docs mysql.info
650 rm -rf $RPM_BUILD_ROOT
651 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,certs/mysql,skel} \
652 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
653 $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
656 install -d $RPM_BUILD_ROOT/var/lib/mysql/bdb/{log,tmp}
661 DESTDIR=$RPM_BUILD_ROOT \
662 benchdir=%{_datadir}/sql-bench \
664 # libsdir is to avoid installing innodb static libs in $RPM_BUILD_ROOT../libs
666 cp -a Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
668 install -p mysql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
669 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
670 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
671 # This is template for configuration file which is created after 'service mysql init'
672 cp -a %{SOURCE4} mysqld.conf
673 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/clusters.conf
674 touch $RPM_BUILD_ROOT/var/log/mysql/{err,log,update}
676 # remove innodb directives from mysqld.conf if mysqld is configured without
677 %if %{without innodb}
678 cp mysqld.conf mysqld.tmp
679 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
682 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
684 cp mysqld.conf mysqld.tmp
685 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
689 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/sphinx.a
690 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/sphinx.la
691 # TODO: patch build with -avoid-version
692 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mysql/sphinx.so.0
693 mv $RPM_BUILD_ROOT%{_libdir}/mysql/sphinx.so{.0.0.0,}
696 install mysqld.conf $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.conf
697 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/mysql-client.conf
698 cp -a %{SOURCE15} $RPM_BUILD_ROOT/etc/skel/.my.cnf
701 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
702 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
703 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
704 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
705 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
706 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
708 mv -f $RPM_BUILD_ROOT%{_libdir}/mysql/lib* $RPM_BUILD_ROOT%{_libdir}
709 sed -i -e 's,%{_libdir}/mysql,%{_libdir},' $RPM_BUILD_ROOT{%{_libdir}/libmysqlclient{,_r}.la,%{_bindir}/mysql_config}
710 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
712 # remove known unpackaged files
713 rm -rf $RPM_BUILD_ROOT%{_prefix}/mysql-test
715 # remove .txt variants for .sys messages
716 rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*/*.txt
718 # rename not to be so generic name
719 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
720 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
722 # not useful without -debug build
723 %{!?debug:rm -f $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
724 %{!?debug:rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
725 # generate symbols file, so one can generate backtrace using it
726 # mysql_resolve_stack_dump -s %{_datadir}/mysql/mysqld.sym -n mysqld.stack.
727 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
728 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.sym}
730 # do not clobber users $PATH
731 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
732 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
733 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
734 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
735 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
736 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
737 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
738 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
740 # functionality in initscript / rpm
741 rm $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
742 rm $RPM_BUILD_ROOT%{_bindir}/mysql_upgrade_shell
743 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
744 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
745 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
746 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
747 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
748 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
749 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg.txt
750 rm $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
751 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
752 rm $RPM_BUILD_ROOT%{_mandir}/man1/safe_mysqld*
753 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
754 rm $RPM_BUILD_ROOT%{_bindir}/resolveip
755 rm $RPM_BUILD_ROOT%{_mandir}/man1/resolveip.1*
756 rm $RPM_BUILD_ROOT%{_bindir}/comp_err
757 rm $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1
758 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_install_db.1
759 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1
760 rm $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld_multi.server
762 # no package for tests
763 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1
764 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1
765 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1
767 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqltest_embedded.1
770 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.{ini,cnf}
773 rm -rf $RPM_BUILD_ROOT
776 %groupadd -g 89 mysql
777 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
780 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
781 /sbin/chkconfig --add mysql
782 %service mysql restart
785 if [ "$1" = "0" ]; then
786 %service -q mysql stop
787 /sbin/chkconfig --del mysql
791 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
792 if [ "$1" = "0" ]; then
798 /sbin/chkconfig --add mysql-ndb
799 %service mysql-ndb restart "mysql NDB engine"
802 if [ "$1" = "0" ]; then
803 %service mysql-ndb stop
804 /sbin/chkconfig --del mysql-ndb
808 /sbin/chkconfig --add mysql-ndb-mgm
809 %service mysql-ndb-mgm restart "mysql NDB management node"
812 if [ "$1" = "0" ]; then
813 %service mysql-ndb-mgm stop
814 /sbin/chkconfig --del mysql-ndb-mgm
818 /sbin/chkconfig --add mysql-ndb-cpc
819 %service mysql-ndb-cpc restart "mysql NDB CPC"
822 if [ "$1" = "0" ]; then
823 %service mysql-ndb-cpc stop
824 /sbin/chkconfig --del mysql-ndb-cpc
827 %post libs -p /sbin/ldconfig
828 %postun libs -p /sbin/ldconfig
830 %triggerpostun -- mysql < 4.0.20-2.4
831 # For clusters in /etc/%{name}/clusters.conf
832 if [ -f /etc/sysconfig/mysql ]; then
833 . /etc/sysconfig/mysql
834 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
835 for i in "$MYSQL_DB_CLUSTERS"; do
836 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
838 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
839 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
840 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
841 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
845 %triggerpostun -- mysql < 4.1.1
846 # For better compatibility with prevoius versions:
847 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
848 if echo "$config" | grep -q '^/'; then
849 config_file="$config"
850 elif [ -f "/etc/%{name}/$config" ]; then
851 config_file=/etc/%{name}/$config
853 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
854 if [ -z "$clusterdir" ]; then
855 echo >&2 "Can't find cluster dir for $config!"
856 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
859 config_file="$clusterdir/mysqld.conf"
862 if [ ! -f "$config_file" ]; then
863 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
866 echo "Adding option old-passwords to config: $config_file"
867 echo "If you want to use new, better passwords - remove it"
869 # sed magic to add 'old-passwords' to [mysqld] section
870 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
872 a; Compatibility options:
878 %banner -e %{name}-4.1.x <<-EOF
879 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
880 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
885 %defattr(644,root,root,755)
886 %doc support-files/*.cnf support-files/*.ini ChangeLog
887 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/mysql
888 %attr(754,root,root) /etc/rc.d/init.d/mysql
889 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql
890 %dir /etc/certs/mysql
891 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/clusters.conf
892 %attr(755,root,root) %{_sbindir}/innochecksum
893 %attr(755,root,root) %{_sbindir}/my_print_defaults
894 %attr(755,root,root) %{_sbindir}/myisamchk
895 %attr(755,root,root) %{_sbindir}/myisamlog
896 %attr(755,root,root) %{_sbindir}/myisampack
897 %attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
898 %attr(755,root,root) %{_sbindir}/mysql_upgrade
899 %attr(755,root,root) %{_sbindir}/mysqlcheck
900 %attr(755,root,root) %{_sbindir}/mysqld
902 %dir %{_libdir}/%{name}
903 %attr(755,root,root) %{_libdir}/%{name}/sphinx.so
905 %{_mandir}/man1/innochecksum.1*
906 %{_mandir}/man1/my_print_defaults.1*
907 %{_mandir}/man1/myisamchk.1*
908 %{_mandir}/man1/myisamlog.1*
909 %{_mandir}/man1/myisampack.1*
910 %{_mandir}/man1/mysql_fix_privilege_tables.1*
911 %{_mandir}/man1/mysql_upgrade.1*
912 %{_mandir}/man1/mysqlcheck.1*
913 %{_mandir}/man8/mysqld.8*
916 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
917 %{_datadir}/mysql/mysqld.sym
918 %{_mandir}/man1/*resolve_stack_dump.1*
921 %attr(700,mysql,mysql) %{_mysqlhome}
922 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
923 %attr(751,root,root) /var/lib/mysql
924 %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 %{_infodir}/mysql.info*
929 # This is template for configuration file which is created after 'service mysql init'
930 %{_datadir}/mysql/mysqld.conf
931 %{_datadir}/mysql/mysql_system_tables.sql
932 %{_datadir}/mysql/mysql_system_tables_data.sql
933 %{_datadir}/mysql/mysql_test_data_timezone.sql
935 %{_datadir}/mysql/english
936 %{_datadir}/mysql/fill_help_tables.sql
937 %{_datadir}/mysql/mysql_fix_privilege_tables.sql
938 %lang(cs) %{_datadir}/mysql/czech
939 %lang(da) %{_datadir}/mysql/danish
940 %lang(de) %{_datadir}/mysql/german
941 %lang(el) %{_datadir}/mysql/greek
942 %lang(es) %{_datadir}/mysql/spanish
943 %lang(et) %{_datadir}/mysql/estonian
944 %lang(fr) %{_datadir}/mysql/french
945 %lang(hu) %{_datadir}/mysql/hungarian
946 %lang(it) %{_datadir}/mysql/italian
947 %lang(ja) %{_datadir}/mysql/japanese
948 %lang(ko) %{_datadir}/mysql/korean
949 %lang(nl) %{_datadir}/mysql/dutch
950 %lang(nb) %{_datadir}/mysql/norwegian
951 %lang(nn) %{_datadir}/mysql/norwegian-ny
952 %lang(pl) %{_datadir}/mysql/polish
953 %lang(pt) %{_datadir}/mysql/portuguese
954 %lang(ro) %{_datadir}/mysql/romanian
955 %lang(ru) %{_datadir}/mysql/russian
956 %lang(sr) %{_datadir}/mysql/serbian
957 %lang(sk) %{_datadir}/mysql/slovak
958 %lang(sv) %{_datadir}/mysql/swedish
959 %lang(uk) %{_datadir}/mysql/ukrainian
962 %defattr(644,root,root,755)
963 %dir %{_datadir}/mysql
964 %{_datadir}/mysql/charsets
967 %defattr(644,root,root,755)
968 %attr(755,root,root) %{_bindir}/msql2mysql
969 %attr(755,root,root) %{_bindir}/myisam_ftdump
970 %attr(755,root,root) %{_bindir}/mysql_secure_installation
971 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
972 %attr(755,root,root) %{_bindir}/perror
973 %attr(755,root,root) %{_bindir}/replace
974 %{_mandir}/man1/msql2mysql.1*
975 %{_mandir}/man1/myisam_ftdump.1*
976 %{_mandir}/man1/mysql_secure_installation.1*
977 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
978 %{_mandir}/man1/perror.1*
979 %{_mandir}/man1/replace.1*
981 %files -n mysqlhotcopy
982 %defattr(644,root,root,755)
983 %attr(755,root,root) %{_bindir}/mysqlhotcopy
984 %{_mandir}/man1/mysqlhotcopy.1*
987 %defattr(644,root,root,755)
988 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
989 %attr(755,root,root) %{_bindir}/mysql_explain_log
990 %attr(755,root,root) %{_bindir}/mysql_find_rows
991 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
992 %attr(755,root,root) %{_bindir}/mysql_setpermission
993 %attr(755,root,root) %{_bindir}/mysql_tableinfo
994 %attr(755,root,root) %{_bindir}/mysql_zap
995 %attr(755,root,root) %{_bindir}/mysqlaccess
996 %attr(755,root,root) %{_bindir}/mysqldumpslow
997 %{_mandir}/man1/mysql_convert_table_format.1*
998 %{_mandir}/man1/mysql_explain_log.1*
999 %{_mandir}/man1/mysql_find_rows.1*
1000 %{_mandir}/man1/mysql_fix_extensions.1*
1001 %{_mandir}/man1/mysql_setpermission.1*
1002 %{_mandir}/man1/mysql_tableinfo.1*
1003 %{_mandir}/man1/mysql_zap.1*
1004 %{_mandir}/man1/mysqlaccess.1*
1005 %{_mandir}/man1/mysqldumpslow.1*
1008 %defattr(644,root,root,755)
1009 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
1010 %attr(755,root,root) %{_bindir}/mysql
1011 %attr(755,root,root) %{_bindir}/mysqladmin
1012 %attr(755,root,root) %{_bindir}/mysqlbinlog
1013 %attr(755,root,root) %{_bindir}/mysqlbug
1014 %attr(755,root,root) %{_bindir}/mysqldump
1015 %attr(755,root,root) %{_bindir}/mysqlimport
1016 %attr(755,root,root) %{_bindir}/mysqlshow
1017 %attr(755,root,root) %{_sbindir}/mysqlmanager
1018 %{_mandir}/man1/mysql.1*
1019 %{_mandir}/man1/mysqladmin.1*
1020 %{_mandir}/man1/mysqlbinlog.1*
1021 %{_mandir}/man1/mysqlbug.1*
1022 %{_mandir}/man1/mysqldump.1*
1023 %{_mandir}/man1/mysqlimport.1*
1024 %{_mandir}/man1/mysqlshow.1*
1025 %{_mandir}/man8/mysqlmanager.8*
1028 %defattr(644,root,root,755)
1029 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1030 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/mysql-client.conf
1031 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*
1032 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.15
1033 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*
1034 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.15
1035 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*
1036 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.2
1039 %defattr(644,root,root,755)
1040 %attr(755,root,root) %{_bindir}/mysql_config
1041 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1042 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1043 %attr(755,root,root) %{_libdir}/libndbclient.so
1044 %{_libdir}/libmysqlclient.la
1045 %{_libdir}/libmysqlclient_r.la
1046 %{_libdir}/libndbclient.la
1048 %{_libdir}/libdbug.a
1049 %{_libdir}/libheap.a
1050 %{_libdir}/libmyisam.a
1051 %{_libdir}/libmyisammrg.a
1052 %{_libdir}/libmysqld.a
1053 %{_libdir}/libmystrings.a
1054 %{_libdir}/libmysys.a
1056 %{_includedir}/mysql
1057 %{_mandir}/man1/mysql_config.1*
1060 %defattr(644,root,root,755)
1061 %{_libdir}/libmysqlclient.a
1062 %{_libdir}/libmysqlclient_r.a
1063 %{_libdir}/libndbclient.a
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_bindir}/mysql_client_test
1068 %attr(755,root,root) %{_bindir}/mysqltest
1069 %attr(755,root,root) %{_bindir}/mysqltestmanager
1070 %attr(755,root,root) %{_bindir}/mysqltestmanager-pwgen
1071 %attr(755,root,root) %{_bindir}/mysqltestmanagerc
1072 %dir %{_datadir}/sql-bench
1073 %{_datadir}/sql-bench/[CDRl]*
1074 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1076 %{_datadir}/mysql/mi_test_all.res
1077 %attr(755,root,root) %{_datadir}/mysql/mi_test_all
1078 %{_mandir}/man1/mysql_client_test.1*
1079 %{_mandir}/man1/mysqltest.1*
1082 #%defattr(644,root,root,755)
1083 #%doc Docs/manual.html Docs/manual_toc.html
1086 %defattr(644,root,root,755)
1087 %attr(755,root,root) %{_sbindir}/ndbd
1088 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1089 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1090 %{_mandir}/man8/ndbd.8*
1093 %defattr(644,root,root,755)
1094 %attr(755,root,root) %{_bindir}/ndb_config
1095 %attr(755,root,root) %{_bindir}/ndb_delete_all
1096 %attr(755,root,root) %{_bindir}/ndb_desc
1097 %attr(755,root,root) %{_bindir}/ndb_drop_index
1098 %attr(755,root,root) %{_bindir}/ndb_drop_table
1099 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1100 %attr(755,root,root) %{_bindir}/ndb_mgm
1101 %attr(755,root,root) %{_bindir}/ndb_restore
1102 %attr(755,root,root) %{_bindir}/ndb_select_all
1103 %attr(755,root,root) %{_bindir}/ndb_select_count
1104 %attr(755,root,root) %{_bindir}/ndb_show_tables
1105 %attr(755,root,root) %{_bindir}/ndb_size.pl
1106 %attr(755,root,root) %{_bindir}/ndb_test_platform
1107 %attr(755,root,root) %{_bindir}/ndb_waiter
1108 %attr(755,root,root) %{_datadir}/mysql/ndb_size.tmpl
1109 %{_mandir}/man1/ndb_config.1*
1110 %{_mandir}/man1/ndb_delete_all.1*
1111 %{_mandir}/man1/ndb_desc.1*
1112 %{_mandir}/man1/ndb_drop_index.1*
1113 %{_mandir}/man1/ndb_drop_table.1*
1114 %{_mandir}/man1/ndb_error_reporter.1*
1115 %{_mandir}/man1/ndb_mgm.1*
1116 %{_mandir}/man1/ndb_restore.1*
1117 %{_mandir}/man1/ndb_select_all.1*
1118 %{_mandir}/man1/ndb_select_count.1*
1119 %{_mandir}/man1/ndb_show_tables.1*
1120 %{_mandir}/man1/ndb_size.pl.1*
1121 %{_mandir}/man1/ndb_waiter.1*
1124 %defattr(644,root,root,755)
1125 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1126 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1127 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1128 %{_mandir}/man8/ndb_mgmd.8*
1131 %defattr(644,root,root,755)
1132 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1133 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1134 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1135 %{_mandir}/man1/ndb_cpcd.1*