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 #define _snap 20060111
19 Summary: MySQL: a very fast and reliable SQL database engine
20 Summary(de.UTF-8): MySQL: ist eine SQL-Datenbank
21 Summary(fr.UTF-8): MySQL: un serveur SQL rapide et fiable
22 Summary(pl.UTF-8): MySQL: bardzo szybka i niezawodna baza danych (SQL)
23 Summary(pt_BR.UTF-8): MySQL: Um servidor SQL rápido e confiável
24 Summary(ru.UTF-8): MySQL - быстрый SQL-сервер
25 Summary(uk.UTF-8): MySQL - швидкий SQL-сервер
26 Summary(zh_CN.UTF-8): MySQL数据库服务器
30 License: GPL + MySQL FLOSS Exception
31 Group: Applications/Databases
32 #Source0: ftp://ftp.mysql.com/pub/mysql/src/%{name}-%{version}.tar.gz
33 Source0: http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.0/%{name}-%{version}.tar.gz
34 # Source0-md5: 671348f1a5b078da9ca76f97e1fda325
35 #Source0: http://mysql.he.net/Downloads/MySQL-5.0/%{name}-%{version}.tar.gz
36 #Source0: http://mirror.provenscaling.com/mysql/enterprise/source/5.0/%{name}-%{version}.tar.gz
37 Source100: http://www.sphinxsearch.com/downloads/sphinx-0.9.9-rc2.tar.gz
38 # Source100-md5: 1ca266613bfdb0e6952d9ca1af93f7cc
40 Source2: %{name}.sysconfig
41 Source3: %{name}.logrotate
42 Source4: %{name}d.conf
43 Source5: %{name}-clusters.conf
44 Source7: %{name}-ndb.init
45 Source8: %{name}-ndb.sysconfig
46 Source9: %{name}-ndb-mgm.init
47 Source10: %{name}-ndb-mgm.sysconfig
48 Source11: %{name}-ndb-cpc.init
49 Source12: %{name}-ndb-cpc.sysconfig
50 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 # <percona patches, http://www.percona.com/percona-lab.html>
68 Patch16: %{name}-show_patches.patch
69 Patch17: %{name}-microslow_innodb.patch
70 Patch18: %{name}-profiling_slow.patch
71 Patch19: %{name}-userstatv2.patch
72 Patch20: %{name}-microsec_process.patch
73 Patch21: %{name}-innodb_io_patches.patch
74 Patch22: %{name}-innodb_locks_held.patch
75 Patch23: %{name}-innodb_show_bp.patch
76 Patch24: %{name}-innodb_check_fragmentation.patch
77 Patch25: %{name}-innodb_io_pattern.patch
78 Patch26: %{name}-innodb_fsync_source.patch
79 Patch27: %{name}-innodb_show_hashed_memory.patch
80 Patch28: %{name}-innodb_dict_size_limit.patch
81 Patch29: %{name}-innodb_extra_rseg.patch
82 Patch30: %{name}-innodb_thread_concurrency_timer_based.patch
83 Patch31: %{name}-split_buf_pool_mutex_fixed_optimistic_safe.patch
84 Patch32: %{name}-innodb_rw_lock.patch
85 Patch33: %{name}-mysql-test.patch
87 Patch34: %{name}-errorlog-no-rename.patch
88 Patch35: %{name}-alpha-stack.patch
89 Patch36: %{name}-xtrabackup.patch
90 Patch37: %{name}-fixes.patch
91 Patch38: %{name}-gcc3.patch
92 URL: http://www.mysql.com/products/database/mysql/community_edition.html
93 BuildRequires: autoconf
94 BuildRequires: automake
96 %{?with_bdb:BuildRequires: db3-devel}
98 BuildRequires: libstdc++-devel >= 5:3.0
99 BuildRequires: libtool
100 %{?with_tcpd:BuildRequires: libwrap-devel}
101 BuildRequires: ncurses-devel >= 4.2
102 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
103 %{?with_autodeps:BuildRequires: perl-DBI}
104 BuildRequires: perl-devel >= 1:5.6.1
105 BuildRequires: readline-devel >= 4.2
106 BuildRequires: rpm-perlprov >= 4.1-13
107 BuildRequires: rpmbuild(macros) >= 1.453
108 BuildRequires: sed >= 4.0
109 BuildRequires: texinfo
110 BuildRequires: zlib-devel
111 Requires(post,preun): /sbin/chkconfig
112 Requires(postun): /usr/sbin/groupdel
113 Requires(postun): /usr/sbin/userdel
114 Requires(pre): /bin/id
115 Requires(pre): /usr/bin/getgid
116 Requires(pre): /usr/sbin/groupadd
117 Requires(pre): /usr/sbin/useradd
118 Requires(triggerpostun): sed >= 4.0
119 Requires: %{name}-charsets = %{version}-%{release}
120 Requires: %{name}-libs = %{version}-%{release}
121 Requires: /usr/bin/setsid
122 Requires: logrotate >= 3.7-4
123 Requires: rc-scripts >= 0.2.0
124 Suggests: mysql-client
125 %{?with_tcpd:Suggests: tcp_wrappers}
126 Provides: MySQL-server
127 Provides: group(mysql)
128 Provides: msqlormysql
129 Provides: user(mysql)
131 Obsoletes: mysql-server
132 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
134 %define _libexecdir %{_sbindir}
135 %define _localstatedir /var/lib/mysql
136 %define _mysqlhome /home/services/mysql
138 %define _noautoreqdep 'perl(DBD::mysql)'
139 # CFLAGS for innodb are altered
140 %undefine configure_cache
143 MySQL is a true multi-user, multi-threaded SQL (Structured Query
144 Language) database server. SQL is the most popular database language
145 in the world. MySQL is a client/server implementation that consists of
146 a server daemon mysqld and many different client programs/libraries.
148 The main goals of MySQL are speed, robustness and easy to use. MySQL
149 was originally developed because we at Tcx needed a SQL server that
150 could handle very big databases with magnitude higher speed than what
151 any database vendor could offer to us. We have now been using MySQL
152 since 1996 in a environment with more than 40 databases, 10,000
153 tables, of which more than 500 have more than 7 million rows. This is
154 about 50G of mission critical data.
156 The base upon which MySQL is built is a set of routines that have been
157 used in a highly demanding production environment for many years.
158 While MySQL is still in development, it already offers a rich and
159 highly useful function set.
161 %description -l fr.UTF-8
162 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
163 multi-taches. Le langage SQL est le langage de bases de donnees le
164 plus populaire au monde. MySQL est une implementation client/serveur
165 qui consiste en un serveur (mysqld) et differents
166 programmes/bibliotheques clientes.
168 Les objectifs principaux de MySQL sont: vitesse, robustesse et
169 facilite d'utilisation. MySQL fut originalement developpe parce que
170 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
171 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
172 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
173 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
174 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
175 millions de lignes. Ceci represente environ 50G de donnees critiques.
177 A la base de la conception de MySQL, on retrouve une serie de routines
178 qui ont ete utilisees dans un environnement de production pendant
179 plusieurs annees. Meme si MySQL est encore en developpement, il offre
180 deja une riche et utile serie de fonctions.
182 %description -l pl.UTF-8
183 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
184 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
185 danych. MySQL to implementacja klient/serwer składająca się z demona
186 mysqld i wielu różnych programów i bibliotek klienckich.
188 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
189 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
190 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
191 większą, niż mogli zaoferować inni producenci baz danych. Używają go
192 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
193 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
194 50GB krytycznych danych.
196 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
197 które były używane w bardzo wymagającym środowisku produkcyjnym przez
198 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
199 i użyteczny zbiór funkcji.
201 %description -l de.UTF-8
202 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
203 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
204 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
205 einem Primärschlüssel versehen werden. Es ist aber keine Definition
206 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
207 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
208 Daten verantwortlich. Allein durch die Nutzung externer
209 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
210 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
212 %description -l pt_BR.UTF-8
213 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
214 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
215 dados no mundo. O MySQL é uma implementação cliente/servidor que
216 consiste de um servidor chamado mysqld e diversos
217 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
218 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
219 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
220 pudesse lidar com grandes bases de dados e com uma velocidade muito
221 maior do que a que qualquer vendedor podia nos oferecer. Estamos
222 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
223 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
224 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
225 A base da construção do MySQL é uma série de rotinas que foram usadas
226 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
227 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
228 funções muito ricas e úteis. Veja a documentação para maiores
231 %description -l ru.UTF-8
232 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
233 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
234 дистрибутиве на предмет других участников проекта и прочей информации
237 %description -l uk.UTF-8
238 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
239 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
240 дистрибутиві для інформації про інших учасників проекту та іншої
244 Summary: MySQL - character sets definitions
245 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
246 Group: Applications/Databases
248 %description charsets
249 This package contains character sets definitions needed by both client
252 %description charsets -l pl.UTF-8
253 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
256 %package -n mysqlhotcopy
257 Summary: mysqlhotcopy - A MySQL database backup program
258 Group: Applications/Databases
259 Requires: %{name}-libs = %{version}-%{release}
260 Requires: perl-DBD-mysql
262 %description -n mysqlhotcopy
263 mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a
264 database backup quickly. It is the fastest way to make a backup of the
265 database or single tables, but it can be run only on the same machine
266 where the database directories are located. mysqlhotcopy works only
267 for backing up MyISAM and ARCHIVE tables.
269 See innobackup package to backup InnoDB tables.
272 Summary: MySQL additional utilities
273 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
274 Group: Applications/Databases
275 Requires: %{name}-libs = %{version}-%{release}
278 MySQL additional utilities except Perl scripts (they may be found in
279 %{name}-extras-perl package).
281 %description extras -l pl.UTF-8
282 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
283 pakiecie %{name}-extras-perl).
286 Summary: MySQL additional utilities written in Perl
287 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
288 Group: Applications/Databases
289 Requires: %{name}-extras = %{version}-%{release}
290 # this is just for the sake of smooth upgrade, not to break systems
291 Requires: mysqlhotcopy = %{version}-%{release}
292 Requires: perl(DBD::mysql)
294 %description extras-perl
295 MySQL additional utilities written in Perl.
297 %description extras-perl -l pl.UTF-8
298 Dodatkowe narzędzia do MySQL napisane w Perlu.
301 Summary: MySQL - Client
302 Summary(pl.UTF-8): MySQL - Klient
303 Summary(pt.UTF-8): MySQL - Cliente
304 Summary(ru.UTF-8): MySQL клиент
305 Summary(uk.UTF-8): MySQL клієнт
306 Group: Applications/Databases
307 Requires: %{name}-charsets = %{version}-%{release}
308 Requires: %{name}-libs = %{version}-%{release}
309 Obsoletes: MySQL-client
312 This package contains the standard MySQL clients.
314 %description client -l fr.UTF-8
315 Ce package contient les clients MySQL standards.
317 %description client -l pl.UTF-8
318 Standardowe programy klienckie MySQL.
320 %description client -l pt_BR.UTF-8
321 Este pacote contém os clientes padrão para o MySQL.
323 %description client -l ru.UTF-8
324 Этот пакет содержит только клиент MySQL.
326 %description client -l uk.UTF-8
327 Цей пакет містить тільки клієнта MySQL.
330 Summary: Shared libraries for MySQL
331 Summary(pl.UTF-8): Biblioteki dzielone MySQL
333 Obsoletes: libmysql10
334 Obsoletes: mysql-doc < 4.1.12
337 Shared libraries for MySQL.
339 %description libs -l pl.UTF-8
340 Biblioteki dzielone MySQL.
343 Summary: MySQL - Development header files and libraries
344 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i biblioteki dla programistów
345 Summary(pt.UTF-8): MySQL - Medições de desempenho
346 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
347 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
348 Group: Development/Libraries
349 Requires: %{name}-libs = %{version}-%{release}
350 %{?with_ssl:Requires: openssl-devel}
352 Obsoletes: MySQL-devel
353 Obsoletes: libmysql10-devel
356 This package contains the development header files and libraries
357 necessary to develop MySQL client applications.
359 %description devel -l fr.UTF-8
360 Ce package contient les fichiers entetes et les librairies de
361 developpement necessaires pour developper des applications clientes
364 %description devel -l pl.UTF-8
365 Pliki nagłówkowe i biblioteki konieczne do kompilacji aplikacji
368 %description devel -l pt_BR.UTF-8
369 Este pacote contém os arquivos de cabeçalho (header files) e
370 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
372 %description devel -l ru.UTF-8
373 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
374 разработки клиентских приложений.
376 %description devel -l uk.UTF-8
377 Цей пакет містить хедери та бібліотеки програміста, необхідні для
378 розробки програм-клієнтів.
381 Summary: MySQL static libraries
382 Summary(pl.UTF-8): Biblioteki statyczne MySQL
383 Summary(ru.UTF-8): MySQL - статические библиотеки
384 Summary(uk.UTF-8): MySQL - статичні бібліотеки
385 Group: Development/Libraries
386 Requires: %{name}-devel = %{version}-%{release}
387 Obsoletes: MySQL-static
390 MySQL static libraries.
392 %description static -l pl.UTF-8
393 Biblioteki statyczne MySQL.
395 %description static -l ru.UTF-8
396 Этот пакет содержит статические библиотеки разработчика, необходимые
397 для разработки клиентских приложений.
399 %description static -l uk.UTF-8
400 Цей пакет містить статичні бібліотеки програміста, необхідні для
401 розробки програм-клієнтів.
404 Summary: MySQL - Benchmarks
405 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
406 Summary(pt.UTF-8): MySQL - Medições de desempenho
407 Summary(ru.UTF-8): MySQL - бенчмарки
408 Summary(uk.UTF-8): MySQL - бенчмарки
409 Group: Applications/Databases
410 Requires: %{name} = %{version}-%{release}
411 Requires: %{name}-client
412 Requires: perl(DBD::mysql)
413 Obsoletes: MySQL-bench
416 This package contains MySQL benchmark scripts and data.
418 %description bench -l pl.UTF-8
419 Programy testujące szybkość serwera MySQL.
421 %description bench -l pt_BR.UTF-8
422 Este pacote contém medições de desempenho de scripts e dados do MySQL.
424 %description bench -l ru.UTF-8
425 Этот пакет содержит скрипты и данные для оценки производительности
428 %description bench -l uk.UTF-8
429 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
432 Summary: MySQL manual
433 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
434 Group: Applications/Databases
437 This package contains manual in HTML format.
439 %description doc -l pl.UTF-8
440 Podręcznik MySQL-a w formacie HTML.
443 Summary: MySQL - NDB Storage Engine Daemon
444 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
445 Group: Applications/Databases
446 Requires: %{name}-libs = %{version}-%{release}
449 This package contains the standard MySQL NDB Storage Engine Daemon.
451 %description ndb -l pl.UTF-8
452 Ten pakiet zawiera standardowego demona silnika przechowywania danych
456 Summary: MySQL - NDB Clients
457 Summary(pl.UTF-8): MySQL - programy klienckie NDB
458 Group: Applications/Databases
459 Requires: %{name}-libs = %{version}-%{release}
461 %description ndb-client
462 This package contains the standard MySQL NDB Clients.
464 %description ndb-client -l pl.UTF-8
465 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
468 Summary: MySQL - NDB Management Daemon
469 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
470 Group: Applications/Databases
471 Requires: %{name}-libs = %{version}-%{release}
474 This package contains the standard MySQL NDB Management Daemon.
476 %description ndb-mgm -l pl.UTF-8
477 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
480 Summary: MySQL - NDB CPC Daemon
481 Summary(pl.UTF-8): MySQL - demon NDB CPC
482 Group: Applications/Databases
483 Requires: %{name}-libs = %{version}-%{release}
486 This package contains the standard MySQL NDB CPC Daemon.
488 %description ndb-cpc -l pl.UTF-8
489 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
492 %setup -q %{?_snap:-n %{name}-%{version}-nightly-%{_snap}} %{?with_sphinx:-a100}
495 mv sphinx-*/mysqlse sql/sphinx
501 # this is strange: mysqld functions for UDF modules are not explicitly defined,
502 # so -rdynamic is used; in such case gcc3+ld on alpha doesn't like C++ vtables
503 # in objects compiled without -fPIC
540 %{?with_xtrabackup:%patch36 -p1}
542 %if "%{cxx_version}" < "4.1"
552 # The compiler flags are as per their "official" spec ;)
553 CXXFLAGS="%{rpmcflags} -felide-constructors -fno-rtti -fno-exceptions %{!?debug:-fomit-frame-pointer}"
554 CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
556 # NOTE: the PS, FIND_PROC, KILL, CHECK_PID are not used by PLD Linux
557 # and therefore do not add BR on these. These are here just to satisfy
562 FIND_PROC='/bin/ps p $$PID' \
564 CHECK_PID='/bin/kill -0 $$PID' \
566 --enable-largefile=yes \
569 --enable-thread-safe-client \
570 --with%{!?with_bdb:out}-berkeley-db \
571 --with%{!?with_innodb:out}-innodb \
572 --with%{!?with_raid:out}-raid \
573 --with%{!?with_ssl:out}-openssl \
574 --with%{!?with_tcpd:out}-libwrap \
575 %{?with_big_tables:--with-big-tables} \
576 --with-comment="PLD Linux Distribution MySQL RPM" \
577 --with%{!?debug:out}-debug \
578 --with%{!?debug:out}-ndb-debug \
579 --with-embedded-server \
580 --with-extra-charsets=all \
582 --with-mysqld-user=mysql \
583 --with-named-curses-libs="-lncurses" \
584 --with-named-thread-libs="-lpthread" \
585 --with-unix-socket-path=/var/lib/mysql/mysql.sock \
586 --with-archive-storage-engine \
587 %{?with_sphinx:--with-sphinx-storage-engine} \
588 %{?with_federated:--with-federated-storage-engine} \
595 # --with-ndb-test --with-ndb-docs
597 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
598 # (it defaults to first cluster but user may change it to whatever
601 echo -e "all:\ninstall:\nclean:\nlink_sources:\n" > libmysqld/examples/Makefile
604 benchdir=$RPM_BUILD_ROOT%{_datadir}/sql-bench
606 %if %{with xtrabackup}
607 %{__make} -C innobase/xtrabackup \
611 %{__make} -C Docs mysql.info
614 rm -rf $RPM_BUILD_ROOT
615 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,ssl/certs/mysql} \
616 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
617 $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
620 install -d $RPM_BUILD_ROOT/var/lib/mysql/bdb/{log,tmp}
625 DESTDIR=$RPM_BUILD_ROOT \
626 benchdir=%{_datadir}/sql-bench \
628 # libsdir is to avoid installing innodb static libs in $RPM_BUILD_ROOT../libs
630 install Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
632 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
633 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
634 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
635 # This is template for configuration file which is created after 'service mysql init'
636 install %{SOURCE4} mysqld.conf
637 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/clusters.conf
638 touch $RPM_BUILD_ROOT/var/log/mysql/{err,log,update}
640 # remove innodb directives from mysqld.conf if mysqld is configured without
641 %if %{without innodb}
642 cp mysqld.conf mysqld.tmp
643 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
646 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
648 cp mysqld.conf mysqld.tmp
649 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
652 install mysqld.conf $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.conf
653 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/mysql-client.conf
656 install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
657 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
658 install %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
659 install %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
660 install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
661 install %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
663 mv -f $RPM_BUILD_ROOT%{_libdir}/mysql/lib* $RPM_BUILD_ROOT%{_libdir}
664 sed -i -e 's,%{_libdir}/mysql,%{_libdir},' $RPM_BUILD_ROOT{%{_libdir}/libmysqlclient{,_r}.la,%{_bindir}/mysql_config}
665 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
667 # remove known unpackaged files
668 rm -rf $RPM_BUILD_ROOT%{_prefix}/mysql-test
670 # remove .txt variants for .sys messages
671 rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*/*.txt
673 # rename not to be so generic name
674 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
675 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
677 # not useful without -debug build
678 %{!?debug:rm -f $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
679 %{!?debug:rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
680 # generate symbols file, so one can generate backtrace using it
681 # mysql_resolve_stack_dump -s %{_datadir}/mysql/mysqld.sym -n mysqld.stack.
682 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
683 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.sym}
685 # do not clobber users $PATH
686 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
687 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
688 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
689 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
690 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
691 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
692 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
693 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
695 # functionality in initscript / rpm
696 rm $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
697 rm $RPM_BUILD_ROOT%{_bindir}/mysql_upgrade_shell
698 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
699 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
700 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
701 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
702 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
703 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
704 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg.txt
705 rm $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
706 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
707 rm $RPM_BUILD_ROOT%{_mandir}/man1/safe_mysqld*
708 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
709 rm $RPM_BUILD_ROOT%{_bindir}/resolveip
710 rm $RPM_BUILD_ROOT%{_mandir}/man1/resolveip.1*
711 rm $RPM_BUILD_ROOT%{_mandir}/man1/make_win_bin_dist.1
712 rm $RPM_BUILD_ROOT%{_bindir}/comp_err
713 rm $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1
714 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_install_db.1
715 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1
716 rm $RPM_BUILD_ROOT%{_mandir}/man1/make_win_src_distribution.1
717 rm $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld_multi.server
719 # no package for tests
720 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1
721 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1
722 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1
724 rm $RPM_BUILD_ROOT%{_mandir}/man1/ndb_print_backup_file.1
725 rm $RPM_BUILD_ROOT%{_mandir}/man1/ndb_print_schema_file.1
726 rm $RPM_BUILD_ROOT%{_mandir}/man1/ndb_print_sys_file.1
727 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqltest_embedded.1
730 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.{ini,cnf}
733 rm -rf $RPM_BUILD_ROOT
736 %groupadd -g 89 mysql
737 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
740 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
741 /sbin/chkconfig --add mysql
742 %service mysql restart
745 if [ "$1" = "0" ]; then
746 %service -q mysql stop
747 /sbin/chkconfig --del mysql
751 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
752 if [ "$1" = "0" ]; then
758 /sbin/chkconfig --add mysql-ndb
759 %service mysql-ndb restart "mysql NDB engine"
762 if [ "$1" = "0" ]; then
763 %service mysql-ndb stop
764 /sbin/chkconfig --del mysql-ndb
768 /sbin/chkconfig --add mysql-ndb-mgm
769 %service mysql-ndb-mgm restart "mysql NDB management node"
772 if [ "$1" = "0" ]; then
773 %service mysql-ndb-mgm stop
774 /sbin/chkconfig --del mysql-ndb-mgm
778 /sbin/chkconfig --add mysql-ndb-cpc
779 %service mysql-ndb-cpc restart "mysql NDB CPC"
782 if [ "$1" = "0" ]; then
783 %service mysql-ndb-cpc stop
784 /sbin/chkconfig --del mysql-ndb-cpc
787 %post libs -p /sbin/ldconfig
788 %postun libs -p /sbin/ldconfig
790 %triggerpostun -- mysql < 4.0.20-2.4
791 # For clusters in /etc/mysql/clusters.conf
792 if [ -f /etc/sysconfig/mysql ]; then
793 . /etc/sysconfig/mysql
794 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
795 for i in "$MYSQL_DB_CLUSTERS"; do
796 echo "$i/mysqld.conf=$i" >> /etc/mysql/clusters.conf
798 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
799 echo "# USE /etc/mysql/clusters.conf instead" >> /etc/sysconfig/mysql
800 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/mysql/clusters.conf."
801 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/mysql/clusters.conf."
805 %triggerpostun -- mysql < 4.1.1
806 # For better compatibility with prevoius versions:
807 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/mysql/clusters.conf); do
808 if echo "$config" | grep -q '^/'; then
809 config_file="$config"
810 elif [ -f "/etc/mysql/$config" ]; then
811 config_file=/etc/mysql/$config
813 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/mysql/clusters.conf)
814 if [ -z "$clusterdir" ]; then
815 echo >&2 "Can't find cluster dir for $config!"
816 echo >&2 "Please remove extra (leading) spaces from /etc/mysql/clusters.conf"
819 config_file="$clusterdir/mysqld.conf"
822 if [ ! -f "$config_file" ]; then
823 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
826 echo "Adding option old-passwords to config: $config_file"
827 echo "If you want to use new, better passwords - remove it"
829 # sed magic to add 'old-passwords' to [mysqld] section
830 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
832 a; Compatibility options:
838 %banner -e %{name}-4.1.x <<-EOF
839 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
840 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
845 %defattr(644,root,root,755)
846 %doc support-files/*.cnf support-files/*.ini ChangeLog
847 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/mysql
848 %attr(754,root,root) /etc/rc.d/init.d/mysql
849 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql
850 %dir /etc/ssl/certs/mysql
851 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/clusters.conf
852 %attr(755,root,root) %{_sbindir}/innochecksum
853 %attr(755,root,root) %{_sbindir}/my_print_defaults
854 %attr(755,root,root) %{_sbindir}/myisamchk
855 %attr(755,root,root) %{_sbindir}/myisamlog
856 %attr(755,root,root) %{_sbindir}/myisampack
857 %attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
858 %attr(755,root,root) %{_sbindir}/mysql_upgrade
859 %attr(755,root,root) %{_sbindir}/mysqlcheck
860 %attr(755,root,root) %{_sbindir}/mysqld
861 %{_mandir}/man1/innochecksum.1*
862 %{_mandir}/man1/my_print_defaults.1*
863 %{_mandir}/man1/myisamchk.1*
864 %{_mandir}/man1/myisamlog.1*
865 %{_mandir}/man1/myisampack.1*
866 %{_mandir}/man1/mysql_fix_privilege_tables.1*
867 %{_mandir}/man1/mysql_upgrade.1*
868 %{_mandir}/man1/mysqlcheck.1*
869 %{_mandir}/man8/mysqld.8*
872 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
873 %{_datadir}/mysql/mysqld.sym
874 %{_mandir}/man1/*resolve_stack_dump.1*
877 %attr(700,mysql,mysql) %{_mysqlhome}
878 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
879 %attr(751,root,root) /var/lib/mysql
880 %attr(750,mysql,mysql) %dir /var/log/mysql
881 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
882 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
884 %{_infodir}/mysql.info*
885 # This is template for configuration file which is created after 'service mysql init'
886 %{_datadir}/mysql/mysqld.conf
887 %{_datadir}/mysql/mysql_system_tables.sql
888 %{_datadir}/mysql/mysql_system_tables_data.sql
889 %{_datadir}/mysql/mysql_test_data_timezone.sql
891 %{_datadir}/mysql/english
892 %{_datadir}/mysql/fill_help_tables.sql
893 %{_datadir}/mysql/mysql_fix_privilege_tables.sql
894 %lang(cs) %{_datadir}/mysql/czech
895 %lang(da) %{_datadir}/mysql/danish
896 %lang(de) %{_datadir}/mysql/german
897 %lang(el) %{_datadir}/mysql/greek
898 %lang(es) %{_datadir}/mysql/spanish
899 %lang(et) %{_datadir}/mysql/estonian
900 %lang(fr) %{_datadir}/mysql/french
901 %lang(hu) %{_datadir}/mysql/hungarian
902 %lang(it) %{_datadir}/mysql/italian
903 %lang(ja) %{_datadir}/mysql/japanese
904 %lang(ko) %{_datadir}/mysql/korean
905 %lang(nl) %{_datadir}/mysql/dutch
906 %lang(nb) %{_datadir}/mysql/norwegian
907 %lang(nn) %{_datadir}/mysql/norwegian-ny
908 %lang(pl) %{_datadir}/mysql/polish
909 %lang(pt) %{_datadir}/mysql/portuguese
910 %lang(ro) %{_datadir}/mysql/romanian
911 %lang(ru) %{_datadir}/mysql/russian
912 %lang(sr) %{_datadir}/mysql/serbian
913 %lang(sk) %{_datadir}/mysql/slovak
914 %lang(sv) %{_datadir}/mysql/swedish
915 %lang(uk) %{_datadir}/mysql/ukrainian
918 %defattr(644,root,root,755)
919 %dir %{_datadir}/mysql
920 %{_datadir}/mysql/charsets
923 %defattr(644,root,root,755)
924 %attr(755,root,root) %{_bindir}/msql2mysql
925 %attr(755,root,root) %{_bindir}/myisam_ftdump
926 %attr(755,root,root) %{_bindir}/mysql_secure_installation
927 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
928 %attr(755,root,root) %{_bindir}/perror
929 %attr(755,root,root) %{_bindir}/replace
930 %{_mandir}/man1/msql2mysql.1*
931 %{_mandir}/man1/myisam_ftdump.1*
932 %{_mandir}/man1/mysql_secure_installation.1*
933 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
934 %{_mandir}/man1/perror.1*
935 %{_mandir}/man1/replace.1*
937 %files -n mysqlhotcopy
938 %defattr(644,root,root,755)
939 %attr(755,root,root) %{_bindir}/mysqlhotcopy
940 %{_mandir}/man1/mysqlhotcopy.1*
943 %defattr(644,root,root,755)
944 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
945 %attr(755,root,root) %{_bindir}/mysql_explain_log
946 %attr(755,root,root) %{_bindir}/mysql_find_rows
947 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
948 %attr(755,root,root) %{_bindir}/mysql_setpermission
949 %attr(755,root,root) %{_bindir}/mysql_tableinfo
950 %attr(755,root,root) %{_bindir}/mysql_zap
951 %attr(755,root,root) %{_bindir}/mysqlaccess
952 %attr(755,root,root) %{_bindir}/mysqldumpslow
953 %{_mandir}/man1/mysql_convert_table_format.1*
954 %{_mandir}/man1/mysql_explain_log.1*
955 %{_mandir}/man1/mysql_find_rows.1*
956 %{_mandir}/man1/mysql_fix_extensions.1*
957 %{_mandir}/man1/mysql_setpermission.1*
958 %{_mandir}/man1/mysql_tableinfo.1*
959 %{_mandir}/man1/mysql_zap.1*
960 %{_mandir}/man1/mysqlaccess.1*
961 %{_mandir}/man1/mysqldumpslow.1*
964 %defattr(644,root,root,755)
965 %attr(755,root,root) %{_bindir}/mysql
966 %attr(755,root,root) %{_bindir}/mysqladmin
967 %attr(755,root,root) %{_bindir}/mysqlbinlog
968 %attr(755,root,root) %{_bindir}/mysqlbug
969 %attr(755,root,root) %{_bindir}/mysqldump
970 %attr(755,root,root) %{_bindir}/mysqlimport
971 %attr(755,root,root) %{_bindir}/mysqlshow
972 %attr(755,root,root) %{_sbindir}/mysqlmanager
973 %{_mandir}/man1/mysql.1*
974 %{_mandir}/man1/mysqladmin.1*
975 %{_mandir}/man1/mysqlbinlog.1*
976 %{_mandir}/man1/mysqlbug.1*
977 %{_mandir}/man1/mysqldump.1*
978 %{_mandir}/man1/mysqlimport.1*
979 %{_mandir}/man1/mysqlshow.1*
980 %{_mandir}/man8/mysqlmanager.8*
983 %defattr(644,root,root,755)
984 %doc EXCEPTIONS-CLIENT
985 %attr(751,root,root) %dir %{_sysconfdir}/mysql
986 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/mysql-client.conf
987 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*
988 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.15
989 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*
990 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.15
991 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*
992 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.2
995 %defattr(644,root,root,755)
996 %attr(755,root,root) %{_bindir}/mysql_config
997 %attr(755,root,root) %{_libdir}/libmysqlclient.so
998 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
999 %attr(755,root,root) %{_libdir}/libndbclient.so
1000 %{_libdir}/libmysqlclient.la
1001 %{_libdir}/libmysqlclient_r.la
1002 %{_libdir}/libndbclient.la
1004 %{_libdir}/libdbug.a
1005 %{_libdir}/libheap.a
1006 %{_libdir}/libmyisam.a
1007 %{_libdir}/libmyisammrg.a
1008 %{_libdir}/libmysqld.a
1009 %{_libdir}/libmystrings.a
1010 %{_libdir}/libmysys.a
1012 %{_includedir}/mysql
1013 %{_mandir}/man1/mysql_config.1*
1016 %defattr(644,root,root,755)
1017 %{_libdir}/libmysqlclient.a
1018 %{_libdir}/libmysqlclient_r.a
1019 %{_libdir}/libndbclient.a
1022 %defattr(644,root,root,755)
1023 %attr(755,root,root) %{_bindir}/mysql_client_test
1024 %attr(755,root,root) %{_bindir}/mysqltest
1025 %attr(755,root,root) %{_bindir}/mysqltestmanager
1026 %attr(755,root,root) %{_bindir}/mysqltestmanager-pwgen
1027 %attr(755,root,root) %{_bindir}/mysqltestmanagerc
1028 %dir %{_datadir}/sql-bench
1029 %{_datadir}/sql-bench/[CDRl]*
1030 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1032 %{_datadir}/mysql/mi_test_all.res
1033 %attr(755,root,root) %{_datadir}/mysql/mi_test_all
1034 %{_mandir}/man1/mysql_client_test.1*
1035 %{_mandir}/man1/mysqltest.1*
1038 #%defattr(644,root,root,755)
1039 #%doc Docs/manual.html Docs/manual_toc.html
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_sbindir}/ndbd
1044 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1045 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1046 %{_mandir}/man8/ndbd.8*
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_bindir}/ndb_config
1051 %attr(755,root,root) %{_bindir}/ndb_delete_all
1052 %attr(755,root,root) %{_bindir}/ndb_desc
1053 %attr(755,root,root) %{_bindir}/ndb_drop_index
1054 %attr(755,root,root) %{_bindir}/ndb_drop_table
1055 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1056 %attr(755,root,root) %{_bindir}/ndb_mgm
1057 %attr(755,root,root) %{_bindir}/ndb_restore
1058 %attr(755,root,root) %{_bindir}/ndb_select_all
1059 %attr(755,root,root) %{_bindir}/ndb_select_count
1060 %attr(755,root,root) %{_bindir}/ndb_show_tables
1061 %attr(755,root,root) %{_bindir}/ndb_size.pl
1062 %attr(755,root,root) %{_bindir}/ndb_test_platform
1063 %attr(755,root,root) %{_bindir}/ndb_waiter
1064 %attr(755,root,root) %{_datadir}/mysql/ndb_size.tmpl
1065 %{_mandir}/man1/ndb_config.1*
1066 %{_mandir}/man1/ndb_delete_all.1*
1067 %{_mandir}/man1/ndb_desc.1*
1068 %{_mandir}/man1/ndb_drop_index.1*
1069 %{_mandir}/man1/ndb_drop_table.1*
1070 %{_mandir}/man1/ndb_error_reporter.1*
1071 %{_mandir}/man1/ndb_mgm.1*
1072 %{_mandir}/man1/ndb_restore.1*
1073 %{_mandir}/man1/ndb_select_all.1*
1074 %{_mandir}/man1/ndb_select_count.1*
1075 %{_mandir}/man1/ndb_show_tables.1*
1076 %{_mandir}/man1/ndb_size.pl.1*
1077 %{_mandir}/man1/ndb_waiter.1*
1080 %defattr(644,root,root,755)
1081 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1082 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1083 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1084 %{_mandir}/man8/ndb_mgmd.8*
1087 %defattr(644,root,root,755)
1088 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1089 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1090 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1091 %{_mandir}/man1/ndb_cpcd.1*