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