2 # - http://bugs.mysql.com/bug.php?id=16470
3 # - innodb are dynamic (= as plugins) ?
4 # - missing have_archive, have_merge
5 # - is plugin_dir lib64 safe?
6 # - Using NDB Cluster... could not find sci transporter in /{include, lib}
7 # - !!! Makefiles for libmysqld.so !!!
8 # - segfaults on select from non-mysql user (caused by builder environment):
9 # https://bugs.launchpad.net/pld-linux/+bug/381904
10 # (profiling disabled temporaily to workaround this)
13 %bcond_with autodeps # BR packages needed only for resolving deps
14 %bcond_without innodb # InnoDB storage engine support
15 %bcond_without big_tables # Support tables with more than 4G rows even on 32 bit platforms
16 %bcond_without federated # Federated storage engine support
17 %bcond_without raid # RAID support
18 %bcond_without ssl # OpenSSL support
19 %bcond_without tcpd # libwrap (tcp_wrappers) support
20 %bcond_without sphinx # Sphinx storage engine support
21 %bcond_with tests # FIXME: don't run correctly
22 %bcond_with ndb # NDB is now a separate product, this here is broken, so disable it
24 %include /usr/lib/rpm/macros.perl
25 Summary: MySQL: a very fast and reliable SQL database engine
26 Summary(de.UTF-8): MySQL: ist eine SQL-Datenbank
27 Summary(fr.UTF-8): MySQL: un serveur SQL rapide et fiable
28 Summary(pl.UTF-8): MySQL: bardzo szybka i niezawodna baza danych (SQL)
29 Summary(pt_BR.UTF-8): MySQL: Um servidor SQL rápido e confiável
30 Summary(ru.UTF-8): MySQL - быстрый SQL-сервер
31 Summary(uk.UTF-8): MySQL - швидкий SQL-сервер
32 Summary(zh_CN.UTF-8): MySQL数据库服务器
36 License: GPL + MySQL FLOSS Exception
37 Group: Applications/Databases
38 #Source0Download: http://dev.mysql.com/downloads/mysql/5.1.html#source
39 Source0: http://vesta.informatik.rwth-aachen.de/mysql/Downloads/MySQL-5.1/%{name}-%{version}.tar.gz
40 # Source0-md5: 672167c3f03f969febae66c43859d76d
41 Source100: http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
42 # Source100-md5: 7b9b618cb9b378f949bb1b91ddcc4f54
44 Source2: %{name}.sysconfig
45 Source3: %{name}.logrotate
46 Source4: %{name}d.conf
47 Source5: %{name}-clusters.conf
48 Source7: %{name}-ndb.init
49 Source8: %{name}-ndb.sysconfig
50 Source9: %{name}-ndb-mgm.init
51 Source10: %{name}-ndb-mgm.sysconfig
52 Source11: %{name}-ndb-cpc.init
53 Source12: %{name}-ndb-cpc.sysconfig
54 Source13: %{name}-client.conf
57 Patch0: %{name}-libs.patch
58 Patch1: %{name}-libwrap.patch
59 Patch2: %{name}-c++.patch
60 Patch3: %{name}-info.patch
61 Patch4: %{name}-sql-cxx-pic.patch
62 Patch5: %{name}-noproc.patch
63 Patch6: %{name}-system-users.patch
64 Patch7: %{name}-bug-34192.patch
65 Patch8: %{name}-client-config.patch
66 Patch9: %{name}-build.patch
67 Patch10: %{name}-alpha.patch
68 Patch11: %{name}-upgrade.patch
69 Patch12: %{name}-config.patch
70 Patch13: gcc-ice.patch
71 Patch14: %{name}-bug-43594.patch
72 Patch15: plugin-avoid-version.patch
73 Patch16: %{name}-fix-dummy-thread-race-condition.patch
74 Patch18: %{name}-sphinx.patch
75 # <percona patches, http://www.percona.com/percona-lab.html>
76 Patch100: %{name}-innodb_swap_builtin_plugin.patch
77 Patch101: %{name}-show_patches.patch
78 Patch102: %{name}-slow_extended.patch
79 Patch103: %{name}-profiling_slow.patch
80 Patch104: %{name}-microsec_process.patch
81 Patch105: %{name}-userstat.patch
82 Patch106: %{name}-optimizer_fix.patch
83 Patch107: %{name}-show_temp_51.patch
84 Patch108: %{name}-suppress_log_warning_1592.patch
85 Patch109: %{name}-innodb_show_enhancements.patch
86 Patch110: %{name}-innodb_show_status.patch
87 Patch111: %{name}-innodb_io_patches.patch
88 Patch112: %{name}-innodb_opt_lru_count.patch
89 Patch113: %{name}-i_s_innodb_buffer_pool_pages.patch
90 Patch114: %{name}-innodb_expand_undo_slots.patch
91 Patch115: %{name}-innodb_extra_rseg.patch
92 Patch116: %{name}-innodb_overwrite_relay_log_info.patch
93 Patch117: %{name}-innodb_thread_concurrency_timer_based.patch
94 Patch118: %{name}-innodb_dict_size_limit.patch
95 Patch119: %{name}-innodb_split_buf_pool_mutex.patch
96 Patch120: %{name}-innodb_expand_import.patch
97 Patch121: %{name}-innodb_recovery_patches.patch
98 Patch122: %{name}-innodb_purge_thread.patch
99 Patch123: %{name}-innodb_admin_command_base.patch
100 Patch124: %{name}-innodb_show_lock_name.patch
101 Patch125: %{name}-innodb_extend_slow.patch
102 Patch126: %{name}-innodb_lru_dump_restore.patch
103 Patch127: %{name}-innodb_separate_doublewrite.patch
104 Patch128: %{name}-innodb_pass_corrupt_table.patch
105 Patch129: %{name}-innodb_stats.patch
106 Patch130: %{name}-innodb_fast_checksum.patch
107 Patch131: %{name}-innodb_files_extend.patch
108 Patch132: %{name}-innodb_show_sys_tables.patch
109 Patch133: %{name}-innodb_fix_misc.patch
110 Patch134: %{name}-innodb_adjust_defaults.patch
111 Patch135: innodb_kill_idle_transaction.patch
112 Patch136: innodb_fake_changes.patch
113 Patch137: %{name}-innodb_deadlock_count.patch
114 Patch138: %{name}-bug580324.patch
115 Patch139: %{name}-bugfix48929.patch
116 Patch140: %{name}-query_cache_enhance.patch
117 Patch141: %{name}-control_online_alter_index.patch
118 Patch142: %{name}-log_connection_error.patch
119 Patch143: %{name}-mysql-syslog.patch
120 Patch144: %{name}-innodb_buffer_pool_shm.patch
121 Patch145: %{name}-error_pad.patch
122 Patch146: response_time_distribution.patch
123 Patch147: %{name}-remove_fcntl_excessive_calls.patch
124 Patch148: %{name}-sql_no_fcache.patch
125 Patch149: %{name}-show_slave_status_nolock.patch
126 Patch150: %{name}-innodb_fast_shutdown.patch
127 Patch151: %{name}-bug677407.patch
128 Patch152: %{name}-fix-bug671764.patch
129 Patch153: %{name}-mysql_remove_eol_carret.patch
130 Patch154: %{name}-innodb_expand_fast_index_creation.patch
131 Patch155: %{name}-innodb_bug60788.patch
132 Patch156: slave_timeout_fix.patch
133 Patch157: utf8_general50_ci.patch
134 Patch158: bug813587.patch
135 Patch159: innodb_bug47167_test_fix.patch
136 Patch160: disable_query_cache_28249_test_sporadic_failure.patch
137 Patch161: bug53761.patch
138 Patch162: xtradb_bug317074.patch
139 Patch163: subunit.patch
140 Patch164: warning_fixes.patch
141 Patch165: bug860910.patch
142 Patch166: bug45702.patch
144 URL: http://www.mysql.com/products/community/
145 BuildRequires: autoconf
146 BuildRequires: automake
149 %if "%{pld_release}" == "ac"
150 BuildRequires: libstdc++4-devel >= 5:4.0
152 BuildRequires: libstdc++-devel >= 5:4.0
154 BuildRequires: libtool
155 %{?with_tcpd:BuildRequires: libwrap-devel}
156 BuildRequires: ncurses-devel >= 4.2
157 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
158 %{?with_autodeps:BuildRequires: perl-DBI}
159 BuildRequires: perl-devel >= 1:5.6.1
160 BuildRequires: readline-devel >= 4.2
161 BuildRequires: rpm-perlprov >= 4.1-13
162 BuildRequires: rpmbuild(macros) >= 1.453
163 BuildRequires: sed >= 4.0
164 BuildRequires: zlib-devel
165 Requires(post,preun): /sbin/chkconfig
166 Requires(postun): /usr/sbin/groupdel
167 Requires(postun): /usr/sbin/userdel
168 Requires(pre): /bin/id
169 Requires(pre): /usr/bin/getgid
170 Requires(pre): /usr/sbin/groupadd
171 Requires(pre): /usr/sbin/useradd
172 Requires(triggerpostun): sed >= 4.0
173 Requires: %{name}-charsets = %{version}-%{release}
174 Requires: %{name}-libs = %{version}-%{release}
175 Requires: /usr/bin/setsid
176 Requires: rc-scripts >= 0.2.0
177 Suggests: mysql-client
178 %{?with_tcpd:Suggests: tcp_wrappers}
179 Suggests: vim-syntax-mycnf
180 Provides: MySQL-server
181 Provides: group(mysql)
182 Provides: msqlormysql
183 Provides: user(mysql)
185 Obsoletes: mysql-server
186 Conflicts: logrotate < 3.7-4
187 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
189 %define _libexecdir %{_sbindir}
190 %define _localstatedir /var/lib/mysql
191 %define _mysqlhome /home/services/mysql
193 %define _noautoreqdep perl(DBD::mysql)
195 # readline/libedit detection goes wrong
196 %undefine configure_cache
199 MySQL is a true multi-user, multi-threaded SQL (Structured Query
200 Language) database server. SQL is the most popular database language
201 in the world. MySQL is a client/server implementation that consists of
202 a server daemon mysqld and many different client programs/libraries.
204 The main goals of MySQL are speed, robustness and easy to use. MySQL
205 was originally developed because we at Tcx needed a SQL server that
206 could handle very big databases with magnitude higher speed than what
207 any database vendor could offer to us. We have now been using MySQL
208 since 1996 in a environment with more than 40 databases, 10,000
209 tables, of which more than 500 have more than 7 million rows. This is
210 about 50G of mission critical data.
212 The base upon which MySQL is built is a set of routines that have been
213 used in a highly demanding production environment for many years.
214 While MySQL is still in development, it already offers a rich and
215 highly useful function set.
217 %description -l fr.UTF-8
218 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
219 multi-taches. Le langage SQL est le langage de bases de donnees le
220 plus populaire au monde. MySQL est une implementation client/serveur
221 qui consiste en un serveur (mysqld) et differents
222 programmes/bibliotheques clientes.
224 Les objectifs principaux de MySQL sont: vitesse, robustesse et
225 facilite d'utilisation. MySQL fut originalement developpe parce que
226 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
227 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
228 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
229 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
230 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
231 millions de lignes. Ceci represente environ 50G de donnees critiques.
233 A la base de la conception de MySQL, on retrouve une serie de routines
234 qui ont ete utilisees dans un environnement de production pendant
235 plusieurs annees. Meme si MySQL est encore en developpement, il offre
236 deja une riche et utile serie de fonctions.
238 %description -l pl.UTF-8
239 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
240 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
241 danych. MySQL to implementacja klient/serwer składająca się z demona
242 mysqld i wielu różnych programów i bibliotek klienckich.
244 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
245 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
246 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
247 większą, niż mogli zaoferować inni producenci baz danych. Używają go
248 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
249 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
250 50GB krytycznych danych.
252 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
253 które były używane w bardzo wymagającym środowisku produkcyjnym przez
254 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
255 i użyteczny zbiór funkcji.
257 %description -l de.UTF-8
258 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
259 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
260 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
261 einem Primärschlüssel versehen werden. Es ist aber keine Definition
262 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
263 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
264 Daten verantwortlich. Allein durch die Nutzung externer
265 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
266 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
268 %description -l pt_BR.UTF-8
269 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
270 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
271 dados no mundo. O MySQL é uma implementação cliente/servidor que
272 consiste de um servidor chamado mysqld e diversos
273 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
274 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
275 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
276 pudesse lidar com grandes bases de dados e com uma velocidade muito
277 maior do que a que qualquer vendedor podia nos oferecer. Estamos
278 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
279 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
280 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
281 A base da construção do MySQL é uma série de rotinas que foram usadas
282 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
283 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
284 funções muito ricas e úteis. Veja a documentação para maiores
287 %description -l ru.UTF-8
288 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
289 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
290 дистрибутиве на предмет других участников проекта и прочей информации
293 %description -l uk.UTF-8
294 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
295 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
296 дистрибутиві для інформації про інших учасників проекту та іншої
300 Summary: MySQL - character sets definitions
301 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
302 Group: Applications/Databases
304 %description charsets
305 This package contains character sets definitions needed by both client
308 %description charsets -l pl.UTF-8
309 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
312 %package -n mysqlhotcopy
313 Summary: mysqlhotcopy - A MySQL database backup program
314 Summary(pl.UTF-8): mysqlhotcopy - program do tworzenia kopii zapasowych baz MySQL
315 Group: Applications/Databases
316 Requires: perl-DBD-mysql
318 %description -n mysqlhotcopy
319 mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a
320 database backup quickly. It is the fastest way to make a backup of the
321 database or single tables, but it can be run only on the same machine
322 where the database directories are located. mysqlhotcopy works only
323 for backing up MyISAM and ARCHIVE tables.
325 See innobackup package to backup InnoDB tables.
327 %description -n mysqlhotcopy -l pl.UTF-8
328 mysqlhotcopy wykorzystuje LOCK TABLES, FLUSH TABLES oraz cp i scp do
329 szybkiego tworzenia kopii zapasowych baz danych. Jest to najszybszy
330 sposób wykonania kopii zapasowej bazy danych lub pojedynczych tabel,
331 ale może działać tylko na maszynie, na której znajdują się katalogi z
332 bazą danych. mysqlhotcopy działa tylko dla tabel typu MyISAM i
335 Narzędzie do tworzenia kopii tabel InnoDB znajduje się w pakiecie
339 Summary: MySQL additional utilities
340 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
341 Group: Applications/Databases
342 Requires: %{name}-libs = %{version}-%{release}
345 MySQL additional utilities except Perl scripts (they may be found in
346 %{name}-extras-perl package).
348 %description extras -l pl.UTF-8
349 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
350 pakiecie %{name}-extras-perl).
353 Summary: MySQL additional utilities written in Perl
354 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
355 Group: Applications/Databases
356 Requires: %{name}-extras = %{version}-%{release}
357 # this is just for the sake of smooth upgrade, not to break systems
358 Requires: mysqlhotcopy = %{version}-%{release}
359 Requires: perl(DBD::mysql)
361 %description extras-perl
362 MySQL additional utilities written in Perl.
364 %description extras-perl -l pl.UTF-8
365 Dodatkowe narzędzia do MySQL napisane w Perlu.
368 Summary: MySQL - Client
369 Summary(pl.UTF-8): MySQL - Klient
370 Summary(pt.UTF-8): MySQL - Cliente
371 Summary(ru.UTF-8): MySQL клиент
372 Summary(uk.UTF-8): MySQL клієнт
373 Group: Applications/Databases
374 Requires: %{name}-charsets = %{version}-%{release}
375 Requires: %{name}-libs = %{version}-%{release}
376 Obsoletes: MySQL-client
379 This package contains the standard MySQL clients.
381 %description client -l fr.UTF-8
382 Ce package contient les clients MySQL standards.
384 %description client -l pl.UTF-8
385 Standardowe programy klienckie MySQL.
387 %description client -l pt_BR.UTF-8
388 Este pacote contém os clientes padrão para o MySQL.
390 %description client -l ru.UTF-8
391 Этот пакет содержит только клиент MySQL.
393 %description client -l uk.UTF-8
394 Цей пакет містить тільки клієнта MySQL.
397 Summary: Shared libraries for MySQL
398 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
400 Obsoletes: libmysql10
401 Obsoletes: mysql-doc < 4.1.12
404 Shared libraries for MySQL.
406 %description libs -l pl.UTF-8
407 Biblioteki współdzielone MySQL.
410 Summary: MySQL - development header files and other files
411 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
412 Summary(pt.UTF-8): MySQL - Medições de desempenho
413 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
414 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
415 Group: Development/Libraries
416 Requires: %{name}-libs = %{version}-%{release}
417 %{?with_ssl:Requires: openssl-devel}
419 Obsoletes: MySQL-devel
420 Obsoletes: libmysql10-devel
423 This package contains the development header files and other files
424 necessary to develop MySQL client applications.
426 %description devel -l fr.UTF-8
427 Ce package contient les fichiers entetes et les librairies de
428 developpement necessaires pour developper des applications clientes
431 %description devel -l pl.UTF-8
432 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
435 %description devel -l pt_BR.UTF-8
436 Este pacote contém os arquivos de cabeçalho (header files) e
437 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
439 %description devel -l ru.UTF-8
440 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
441 разработки клиентских приложений.
443 %description devel -l uk.UTF-8
444 Цей пакет містить хедери та бібліотеки програміста, необхідні для
445 розробки програм-клієнтів.
448 Summary: MySQL static libraries
449 Summary(pl.UTF-8): Biblioteki statyczne MySQL
450 Summary(ru.UTF-8): MySQL - статические библиотеки
451 Summary(uk.UTF-8): MySQL - статичні бібліотеки
452 Group: Development/Libraries
453 Requires: %{name}-devel = %{version}-%{release}
454 Obsoletes: MySQL-static
457 MySQL static libraries.
459 %description static -l pl.UTF-8
460 Biblioteki statyczne MySQL.
462 %description static -l ru.UTF-8
463 Этот пакет содержит статические библиотеки разработчика, необходимые
464 для разработки клиентских приложений.
466 %description static -l uk.UTF-8
467 Цей пакет містить статичні бібліотеки програміста, необхідні для
468 розробки програм-клієнтів.
471 Summary: MySQL - Benchmarks
472 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
473 Summary(pt.UTF-8): MySQL - Medições de desempenho
474 Summary(ru.UTF-8): MySQL - бенчмарки
475 Summary(uk.UTF-8): MySQL - бенчмарки
476 Group: Applications/Databases
477 Requires: %{name} = %{version}-%{release}
478 Requires: %{name}-client
479 Requires: perl(DBD::mysql)
480 Obsoletes: MySQL-bench
483 This package contains MySQL benchmark scripts and data.
485 %description bench -l pl.UTF-8
486 Programy testujące szybkość serwera MySQL.
488 %description bench -l pt_BR.UTF-8
489 Este pacote contém medições de desempenho de scripts e dados do MySQL.
491 %description bench -l ru.UTF-8
492 Этот пакет содержит скрипты и данные для оценки производительности
495 %description bench -l uk.UTF-8
496 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
499 Summary: MySQL manual
500 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
501 Group: Applications/Databases
504 This package contains manual in HTML format.
506 %description doc -l pl.UTF-8
507 Podręcznik MySQL-a w formacie HTML.
510 Summary: MySQL - NDB Storage Engine Daemon
511 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
512 Group: Applications/Databases
513 Requires: %{name}-libs = %{version}-%{release}
516 This package contains the standard MySQL NDB Storage Engine Daemon.
518 %description ndb -l pl.UTF-8
519 Ten pakiet zawiera standardowego demona silnika przechowywania danych
523 Summary: MySQL - NDB Clients
524 Summary(pl.UTF-8): MySQL - programy klienckie NDB
525 Group: Applications/Databases
526 Requires: %{name}-libs = %{version}-%{release}
528 %description ndb-client
529 This package contains the standard MySQL NDB Clients.
531 %description ndb-client -l pl.UTF-8
532 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
535 Summary: MySQL - NDB Management Daemon
536 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
537 Group: Applications/Databases
538 Requires: %{name}-libs = %{version}-%{release}
541 This package contains the standard MySQL NDB Management Daemon.
543 %description ndb-mgm -l pl.UTF-8
544 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
547 Summary: MySQL - NDB CPC Daemon
548 Summary(pl.UTF-8): MySQL - demon NDB CPC
549 Group: Applications/Databases
550 Requires: %{name}-libs = %{version}-%{release}
553 This package contains the standard MySQL NDB CPC Daemon.
555 %description ndb-cpc -l pl.UTF-8
556 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
559 %setup -q %{?with_sphinx:-a100}
561 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
562 mv sphinx-*/mysqlse storage/sphinx
566 #%{?with_tcpd:%patch1 -p1} # WHATS PURPOSE OF THIS PATCH?
567 #%patch2 -p1 # NEEDS CHECK, which exact program needs -lc++
570 # this is strange: mysqld functions for UDF modules are not explicitly defined,
571 # so -rdynamic is used; in such case gcc3+ld on alpha doesn't like C++ vtables
572 # in objects compiled without -fPIC
584 %if "%{cc_version}" < "3.4"
661 %if "%{pld_release}" == "ac"
662 # add suffix, but allow ccache, etc in ~/.rpmmacros
663 %{expand:%%define __cc %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
664 %{expand:%%define __cxx %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
665 %{expand:%%define __cpp %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
669 %{__aclocal} -I config/ac-macros
673 # The compiler flags are as per their "official" spec ;)
674 CXXFLAGS="%{rpmcxxflags} -fPIC -fno-implicit-templates -fno-rtti -fno-exceptions"
675 CFLAGS="%{rpmcflags} -fPIC"
676 CPPFLAGS="%{rpmcppflags}"
678 # NOTE: the PS, FIND_PROC, KILL, CHECK_PID are not used by PLD Linux
679 # and therefore do not add BR on these. These are here just to satisfy
684 FIND_PROC='/bin/ps p $$PID' \
686 CHECK_PID='/bin/kill -0 $$PID' \
688 --enable-largefile=yes \
691 --enable-thread-safe-client \
692 --with%{!?with_ssl:out}-ssl=/usr \
693 --with%{!?with_tcpd:out}-libwrap \
694 %{?with_big_tables:--with-big-tables} \
695 --with-comment="PLD Linux Distribution MySQL RPM" \
696 --with%{!?debug:out}-debug%{?debug:=full} \
697 --with-embedded-server \
698 --with-extra-charsets=all \
700 --with-mysqld-user=mysql \
701 --with-named-curses-libs="-lncurses" \
702 --with-named-thread-libs="-lpthread" \
703 --with-unix-socket-path=/var/lib/mysql/mysql.sock \
705 --with-fast-mutexes \
709 --with%{!?debug:out}-ndb-debug \
713 --without-plugin-ndbcluster \
719 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
720 # (it defaults to first cluster but user may change it to whatever
723 echo -e "all:\ninstall:\nclean:\nlink_sources:\n" > libmysqld/examples/Makefile
726 benchdir=$RPM_BUILD_ROOT%{_datadir}/sql-bench
728 %{__make} -C Docs mysql.info
730 %{?with_tests:%{__make} test}
733 rm -rf $RPM_BUILD_ROOT
734 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
735 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
736 $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
740 DESTDIR=$RPM_BUILD_ROOT \
741 benchdir=%{_datadir}/sql-bench \
743 # libsdir is to avoid installing innodb static libs in $RPM_BUILD_ROOT../libs
745 install Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
747 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
748 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
749 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
750 # This is template for configuration file which is created after 'service mysql init'
751 install %{SOURCE4} mysqld.conf
752 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/clusters.conf
753 touch $RPM_BUILD_ROOT/var/log/mysql/{mysqld,query,slow}.log
755 # remove innodb directives from mysqld.conf if mysqld is configured without
756 %if %{without innodb}
757 cp mysqld.conf mysqld.tmp
758 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
761 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
762 cp mysqld.conf mysqld.tmp
763 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
765 install mysqld.conf $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.conf
766 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/mysql-client.conf
767 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
771 install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
772 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
773 install %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
774 install %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
775 install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
776 install %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
779 mv -f $RPM_BUILD_ROOT%{_libdir}/mysql/lib* $RPM_BUILD_ROOT%{_libdir}
780 sed -i -e 's,%{_libdir}/mysql,%{_libdir},' $RPM_BUILD_ROOT{%{_libdir}/libmysqlclient{,_r}.la,%{_bindir}/mysql_config}
781 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
783 # remove known unpackaged files
784 rm -rf $RPM_BUILD_ROOT%{_prefix}/mysql-test
786 # remove .txt variants for .sys messages
787 rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*/*.txt
789 # rename not to be so generic name
790 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
791 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
793 # not useful without -debug build
794 %{!?debug:rm -f $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
795 %{!?debug:rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
796 # generate symbols file, so one can generate backtrace using it
797 # mysql_resolve_stack_dump -s %{_datadir}/mysql/mysqld.sym -n mysqld.stack.
798 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
799 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.sym}
801 # do not clobber users $PATH
802 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
803 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
804 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
805 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
806 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
807 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
808 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
809 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
810 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
812 # delete - functionality in initscript / rpm
813 # mysql_install_db is needed by digikam
814 #rm $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
815 #rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_install_db.1*
816 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
817 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
818 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
819 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
820 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
821 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
822 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg.txt
823 rm $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
824 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
825 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
826 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
827 rm $RPM_BUILD_ROOT%{_bindir}/resolveip
828 rm $RPM_BUILD_ROOT%{_mandir}/man1/resolveip.1*
829 rm $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
830 rm $RPM_BUILD_ROOT%{_datadir}/mysql/ChangeLog
832 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
833 rm $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
834 rm $RPM_BUILD_ROOT%{_datadir}/mysql/mi_test_all
835 rm $RPM_BUILD_ROOT%{_datadir}/mysql/mi_test_all.res
836 rm $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld_multi.server
837 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
838 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
839 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
840 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
843 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.{ini,cnf}
846 rm -f $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/ha_*.{a,la}
847 rm -f $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/ha_example.*
848 rm -f $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/sphinx.{a,la}
851 rm -rf $RPM_BUILD_ROOT
854 %groupadd -g 89 mysql
855 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
858 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
859 /sbin/chkconfig --add mysql
860 %service mysql restart
863 if [ "$1" = "0" ]; then
864 %service -q mysql stop
865 /sbin/chkconfig --del mysql
869 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
871 if [ "$1" = "0" ]; then
877 /sbin/chkconfig --add mysql-ndb
878 %service mysql-ndb restart "mysql NDB engine"
881 if [ "$1" = "0" ]; then
882 %service mysql-ndb stop
883 /sbin/chkconfig --del mysql-ndb
887 /sbin/chkconfig --add mysql-ndb-mgm
888 %service mysql-ndb-mgm restart "mysql NDB management node"
891 if [ "$1" = "0" ]; then
892 %service mysql-ndb-mgm stop
893 /sbin/chkconfig --del mysql-ndb-mgm
897 /sbin/chkconfig --add mysql-ndb-cpc
898 %service mysql-ndb-cpc restart "mysql NDB CPC"
901 if [ "$1" = "0" ]; then
902 %service mysql-ndb-cpc stop
903 /sbin/chkconfig --del mysql-ndb-cpc
906 %post libs -p /sbin/ldconfig
907 %postun libs -p /sbin/ldconfig
909 %triggerpostun -- mysql < 4.0.20-2.4
910 # For clusters in /etc/%{name}/clusters.conf
911 if [ -f /etc/sysconfig/mysql ]; then
912 . /etc/sysconfig/mysql
913 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
914 for i in "$MYSQL_DB_CLUSTERS"; do
915 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
917 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
918 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
919 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
920 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
924 %triggerpostun -- mysql < 4.1.1
925 # For better compatibility with prevoius versions:
926 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
927 if echo "$config" | grep -q '^/'; then
928 config_file="$config"
929 elif [ -f "/etc/%{name}/$config" ]; then
930 config_file=/etc/%{name}/$config
932 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
933 if [ -z "$clusterdir" ]; then
934 echo >&2 "Can't find cluster dir for $config!"
935 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
938 config_file="$clusterdir/mysqld.conf"
941 if [ ! -f "$config_file" ]; then
942 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
945 echo "Adding option old-passwords to config: $config_file"
946 echo "If you want to use new, better passwords - remove it"
948 # sed magic to add 'old-passwords' to [mysqld] section
949 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
951 a; Compatibility options:
957 %banner -e %{name}-4.1.x <<-EOF
958 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
959 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
963 %triggerpostun -- mysql < 5.1.0
965 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
966 if echo "$config" | grep -q '^/'; then
967 config_file="$config"
968 elif [ -f "/etc/%{name}/$config" ]; then
969 config_file=/etc/%{name}/$config
971 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
972 if [ -z "$clusterdir" ]; then
973 echo >&2 "Can't find cluster dir for $config!"
974 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
977 config_file="$clusterdir/mysqld.conf"
980 if [ ! -f "$config_file" ]; then
981 echo >&2 "ERROR: Can't find real config file for $config! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
984 configs="$configs $config_file"
988 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
989 echo 'Thus, you should invoke:'
990 for config in $configs; do
992 #set-variable\s*=\s* ##
995 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
996 echo "# mysql_upgrade --datadir=$datadir"
998 ) | %banner -e %{name}-5.1
1001 %defattr(644,root,root,755)
1002 %doc support-files/*.cnf support-files/*.ini ChangeLog
1003 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/mysql
1004 %attr(754,root,root) /etc/rc.d/init.d/mysql
1005 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql
1006 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/clusters.conf
1007 %attr(755,root,root) %{_sbindir}/innochecksum
1008 %attr(755,root,root) %{_sbindir}/my_print_defaults
1009 %attr(755,root,root) %{_sbindir}/myisamchk
1010 %attr(755,root,root) %{_sbindir}/myisamlog
1011 %attr(755,root,root) %{_sbindir}/myisampack
1012 %attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
1013 %attr(755,root,root) %{_sbindir}/mysql_upgrade
1014 %attr(755,root,root) %{_sbindir}/mysqlcheck
1015 %attr(755,root,root) %{_sbindir}/mysqld
1016 %attr(755,root,root) %{_bindir}/mysql_install_db
1017 %dir %{_libdir}/mysql
1018 %dir %{_libdir}/mysql/plugin
1019 %attr(755,root,root) %{_libdir}/mysql/plugin/ha_innodb.so
1021 %attr(755,root,root) %{_libdir}/mysql/plugin/sphinx.so
1023 %{_mandir}/man1/innochecksum.1*
1024 %{_mandir}/man1/my_print_defaults.1*
1025 %{_mandir}/man1/myisamchk.1*
1026 %{_mandir}/man1/myisamlog.1*
1027 %{_mandir}/man1/myisampack.1*
1028 %{_mandir}/man1/mysql_fix_privilege_tables.1*
1029 %{_mandir}/man1/mysql_install_db.1*
1030 %{_mandir}/man1/mysql_upgrade.1*
1031 %{_mandir}/man1/mysqlcheck.1*
1032 %{_mandir}/man8/mysqld.8*
1035 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
1036 %{_datadir}/mysql/mysqld.sym
1037 %{_mandir}/man1/*resolve_stack_dump.1*
1040 %attr(700,mysql,mysql) %{_mysqlhome}
1041 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
1042 %attr(751,root,root) /var/lib/mysql
1043 %attr(750,mysql,mysql) %dir /var/log/mysql
1044 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
1045 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
1047 %{_infodir}/mysql.info*
1048 # This is template for configuration file which is created after 'service mysql init'
1049 %{_datadir}/mysql/mysqld.conf
1050 %{_datadir}/mysql/mysql_system_tables.sql
1051 %{_datadir}/mysql/mysql_system_tables_data.sql
1052 %{_datadir}/mysql/mysql_test_data_timezone.sql
1054 %{_datadir}/mysql/english
1055 %{_datadir}/mysql/fill_help_tables.sql
1056 %{_datadir}/mysql/mysql_fix_privilege_tables.sql
1057 %lang(cs) %{_datadir}/mysql/czech
1058 %lang(da) %{_datadir}/mysql/danish
1059 %lang(de) %{_datadir}/mysql/german
1060 %lang(el) %{_datadir}/mysql/greek
1061 %lang(es) %{_datadir}/mysql/spanish
1062 %lang(et) %{_datadir}/mysql/estonian
1063 %lang(fr) %{_datadir}/mysql/french
1064 %lang(hu) %{_datadir}/mysql/hungarian
1065 %lang(it) %{_datadir}/mysql/italian
1066 %lang(ja) %{_datadir}/mysql/japanese
1067 %lang(ko) %{_datadir}/mysql/korean
1068 %lang(nl) %{_datadir}/mysql/dutch
1069 %lang(nb) %{_datadir}/mysql/norwegian
1070 %lang(nn) %{_datadir}/mysql/norwegian-ny
1071 %lang(pl) %{_datadir}/mysql/polish
1072 %lang(pt) %{_datadir}/mysql/portuguese
1073 %lang(ro) %{_datadir}/mysql/romanian
1074 %lang(ru) %{_datadir}/mysql/russian
1075 %lang(sr) %{_datadir}/mysql/serbian
1076 %lang(sk) %{_datadir}/mysql/slovak
1077 %lang(sv) %{_datadir}/mysql/swedish
1078 %lang(uk) %{_datadir}/mysql/ukrainian
1081 %defattr(644,root,root,755)
1082 %dir %{_datadir}/mysql
1083 %{_datadir}/mysql/charsets
1086 %defattr(644,root,root,755)
1087 %attr(755,root,root) %{_bindir}/msql2mysql
1088 %attr(755,root,root) %{_bindir}/myisam_ftdump
1089 %attr(755,root,root) %{_bindir}/mysql_secure_installation
1090 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
1091 %attr(755,root,root) %{_bindir}/perror
1092 %attr(755,root,root) %{_bindir}/replace
1093 %{_mandir}/man1/msql2mysql.1*
1094 %{_mandir}/man1/myisam_ftdump.1*
1095 %{_mandir}/man1/mysql_secure_installation.1*
1096 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1097 %{_mandir}/man1/perror.1*
1098 %{_mandir}/man1/replace.1*
1100 %files -n mysqlhotcopy
1101 %defattr(644,root,root,755)
1102 %attr(755,root,root) %{_bindir}/mysqlhotcopy
1103 %{_mandir}/man1/mysqlhotcopy.1*
1106 %defattr(644,root,root,755)
1107 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
1108 %attr(755,root,root) %{_bindir}/mysql_find_rows
1109 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
1110 %attr(755,root,root) %{_bindir}/mysql_setpermission
1111 %attr(755,root,root) %{_bindir}/mysql_zap
1112 %attr(755,root,root) %{_bindir}/mysqlaccess
1113 %attr(755,root,root) %{_bindir}/mysqldumpslow
1114 %{_mandir}/man1/mysql_convert_table_format.1*
1115 %{_mandir}/man1/mysql_find_rows.1*
1116 %{_mandir}/man1/mysql_fix_extensions.1*
1117 %{_mandir}/man1/mysql_setpermission.1*
1118 %{_mandir}/man1/mysql_zap.1*
1119 %{_mandir}/man1/mysqlaccess.1*
1120 %{_mandir}/man1/mysqldumpslow.1*
1123 %defattr(644,root,root,755)
1124 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
1125 %attr(755,root,root) %{_bindir}/mysql
1126 %attr(755,root,root) %{_bindir}/mysqladmin
1127 %attr(755,root,root) %{_bindir}/mysqlbinlog
1128 %attr(755,root,root) %{_bindir}/mysqlbug
1129 %attr(755,root,root) %{_bindir}/mysqldump
1130 %attr(755,root,root) %{_bindir}/mysqlimport
1131 %attr(755,root,root) %{_bindir}/mysqlshow
1132 %attr(755,root,root) %{_sbindir}/mysqlmanager
1133 %{_mandir}/man1/mysql.1*
1134 %{_mandir}/man1/mysqladmin.1*
1135 %{_mandir}/man1/mysqlbinlog.1*
1136 %{_mandir}/man1/mysqlbug.1*
1137 %{_mandir}/man1/mysqldump.1*
1138 %{_mandir}/man1/mysqlimport.1*
1139 %{_mandir}/man1/mysqlshow.1*
1140 %{_mandir}/man8/mysqlmanager.8*
1143 %defattr(644,root,root,755)
1144 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1145 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/mysql-client.conf
1146 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1147 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.16
1148 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.*
1149 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.16
1151 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1152 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1156 %defattr(644,root,root,755)
1157 %attr(755,root,root) %{_bindir}/mysql_config
1158 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1159 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1161 %attr(755,root,root) %{_libdir}/libndbclient.so
1162 %{_libdir}/libndbclient.la
1164 %{_libdir}/libmysqlclient.la
1165 %{_libdir}/libmysqlclient_r.la
1167 %{_libdir}/libdbug.a
1168 %{_libdir}/libheap.a
1169 %{_libdir}/libmyisam.a
1170 %{_libdir}/libmyisammrg.a
1171 %{_libdir}/libmysqld.a
1172 %{_libdir}/libmystrings.a
1173 %{_libdir}/libmysys.a
1175 %{_includedir}/mysql
1176 %{_aclocaldir}/mysql.m4
1177 %{_mandir}/man1/mysql_config.1*
1180 %defattr(644,root,root,755)
1181 %{_libdir}/libmysqlclient.a
1182 %{_libdir}/libmysqlclient_r.a
1184 %{_libdir}/libndbclient.a
1188 %defattr(644,root,root,755)
1189 %attr(755,root,root) %{_bindir}/mysqlslap
1190 %attr(755,root,root) %{_bindir}/mysqltest
1191 %dir %{_datadir}/sql-bench
1192 %{_datadir}/sql-bench/[CDRl]*
1193 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1194 %{_mandir}/man1/mysqlslap.1*
1195 %{_mandir}/man1/mysqltest.1*
1196 %{_mandir}/man1/mysqltest_embedded.1*
1199 #%defattr(644,root,root,755)
1200 #%doc Docs/manual.html Docs/manual_toc.html
1204 %defattr(644,root,root,755)
1205 %attr(755,root,root) %{_sbindir}/ndbd
1206 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1207 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1208 %{_mandir}/man1/ndbd_redo_log_reader.1*
1209 %{_mandir}/man8/ndbd.8*
1212 %defattr(644,root,root,755)
1213 %attr(755,root,root) %{_bindir}/ndb_config
1214 %attr(755,root,root) %{_bindir}/ndb_delete_all
1215 %attr(755,root,root) %{_bindir}/ndb_desc
1216 %attr(755,root,root) %{_bindir}/ndb_drop_index
1217 %attr(755,root,root) %{_bindir}/ndb_drop_table
1218 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1219 %attr(755,root,root) %{_bindir}/ndb_mgm
1220 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1221 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1222 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1223 %attr(755,root,root) %{_bindir}/ndb_restore
1224 %attr(755,root,root) %{_bindir}/ndb_select_all
1225 %attr(755,root,root) %{_bindir}/ndb_select_count
1226 %attr(755,root,root) %{_bindir}/ndb_show_tables
1227 %attr(755,root,root) %{_bindir}/ndb_size.pl
1228 %attr(755,root,root) %{_bindir}/ndb_test_platform
1229 %attr(755,root,root) %{_bindir}/ndb_waiter
1230 %{_mandir}/man1/ndb_config.1*
1231 %{_mandir}/man1/ndb_delete_all.1*
1232 %{_mandir}/man1/ndb_desc.1*
1233 %{_mandir}/man1/ndb_drop_index.1*
1234 %{_mandir}/man1/ndb_drop_table.1*
1235 %{_mandir}/man1/ndb_error_reporter.1*
1236 %{_mandir}/man1/ndb_mgm.1*
1237 %{_mandir}/man1/ndb_print_backup_file.1*
1238 %{_mandir}/man1/ndb_print_schema_file.1*
1239 %{_mandir}/man1/ndb_print_sys_file.1*
1240 %{_mandir}/man1/ndb_restore.1*
1241 %{_mandir}/man1/ndb_select_all.1*
1242 %{_mandir}/man1/ndb_select_count.1*
1243 %{_mandir}/man1/ndb_show_tables.1*
1244 %{_mandir}/man1/ndb_size.pl.1*
1245 %{_mandir}/man1/ndb_waiter.1*
1248 %defattr(644,root,root,755)
1249 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1250 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1251 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1252 %{_mandir}/man8/ndb_mgmd.8*
1255 %defattr(644,root,root,755)
1256 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1257 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1258 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1259 %{_mandir}/man1/ndb_cpcd.1*