2 # - make response_time_distribution.patch compatible with i386 alpha sparc ppc arches
3 # - mysqldump ... (invalid usage) prints to stdout not stderr (idiotic if you want to create dump and get usage in .sql)
5 # /usr/bin/mysqlaccess.conf
6 # - http://bugs.mysql.com/bug.php?id=16470
7 # - innodb are dynamic (= as plugins) ?
8 # - missing have_archive, have_merge
9 # - is plugin_dir lib64 safe?
10 # - Using NDB Cluster... could not find sci transporter in /{include, lib}
11 # - !!! Makefiles for libmysqld.so !!!
12 # - segfaults on select from non-mysql user (caused by builder environment):
13 # https://bugs.launchpad.net/pld-linux/+bug/381904
14 # (profiling disabled temporaily to workaround this)
17 %bcond_with autodeps # BR packages needed only for resolving deps
18 %bcond_without innodb # InnoDB storage engine support
19 %bcond_without big_tables # Support tables with more than 4G rows even on 32 bit platforms
20 %bcond_without federated # Federated storage engine support
21 %bcond_without raid # RAID support
22 %bcond_without ssl # OpenSSL support
23 %bcond_without tcpd # libwrap (tcp_wrappers) support
24 %bcond_without sphinx # Sphinx storage engine support
25 %bcond_with tests # FIXME: don't run correctly
26 %bcond_with ndb # NDB is now a separate product, this here is broken, so disable it
28 %include /usr/lib/rpm/macros.perl
29 Summary: MySQL: a very fast and reliable SQL database engine
30 Summary(de.UTF-8): MySQL: ist eine SQL-Datenbank
31 Summary(fr.UTF-8): MySQL: un serveur SQL rapide et fiable
32 Summary(pl.UTF-8): MySQL: bardzo szybka i niezawodna baza danych (SQL)
33 Summary(pt_BR.UTF-8): MySQL: Um servidor SQL rápido e confiável
34 Summary(ru.UTF-8): MySQL - быстрый SQL-сервер
35 Summary(uk.UTF-8): MySQL - швидкий SQL-сервер
36 Summary(zh_CN.UTF-8): MySQL数据库服务器
40 License: GPL + MySQL FLOSS Exception
41 Group: Applications/Databases
42 # Source0Download: http://dev.mysql.com/downloads/mysql/5.5.html#downloads
43 Source0: http://vesta.informatik.rwth-aachen.de/mysql/Downloads/MySQL-5.5/%{name}-%{version}.tar.gz
44 # Source0-md5: dcb6a06e68c5e8f30f57b15300730c9c
45 Source100: http://www.sphinxsearch.com/files/sphinx-2.0.1-beta.tar.gz
46 # Source100-md5: 95c217d81d0b7a4ff73d5297318c3481
48 Source2: %{name}.sysconfig
49 Source3: %{name}.logrotate
50 Source4: %{name}d.conf
51 Source5: %{name}-clusters.conf
52 Source7: %{name}-ndb.init
53 Source8: %{name}-ndb.sysconfig
54 Source9: %{name}-ndb-mgm.init
55 Source10: %{name}-ndb-mgm.sysconfig
56 Source11: %{name}-ndb-cpc.init
57 Source12: %{name}-ndb-cpc.sysconfig
58 Source13: %{name}-client.conf
61 Source15: lib%{name}.version
62 Patch2: %{name}-c++.patch
63 Patch3: %{name}-info.patch
65 Patch5: %{name}-versioning.patch
66 Patch6: %{name}-system-users.patch
67 Patch7: %{name}-bug-34192.patch
68 Patch8: %{name}-client-config.patch
69 Patch9: %{name}-build.patch
70 Patch11: %{name}-upgrade.patch
71 Patch12: %{name}-config.patch
72 Patch14: %{name}-bug-43594.patch
73 Patch18: %{name}-sphinx.patch
74 Patch19: %{name}-chain-certs.patch
76 Patch20: %{name}-dubious-exports.patch
77 # http://sphinxsearch.com/bugs/view.php?id=676
78 Patch21: sphinx-mysql.patch
79 # <percona patches, updated with percona.sh>
80 Patch100: microsec_process.patch
81 Patch101: optimizer_fix.patch
82 Patch102: mysql_dump_ignore_ct.patch
83 Patch103: control_online_alter_index.patch
84 Patch104: show_temp.patch
85 Patch105: innodb_show_status.patch
86 Patch106: innodb_io_patches.patch
87 Patch107: innodb_opt_lru_count.patch
88 Patch108: innodb_extra_rseg.patch
89 Patch109: innodb_overwrite_relay_log_info.patch
90 Patch110: innodb_thread_concurrency_timer_based.patch
91 Patch111: innodb_dict_size_limit.patch
92 Patch112: innodb_split_buf_pool_mutex.patch
93 Patch113: innodb_expand_import.patch
94 Patch114: innodb_show_sys_tables.patch
95 Patch115: innodb_stats.patch
96 Patch116: innodb_recovery_patches.patch
97 Patch117: innodb_admin_command_base.patch
98 Patch118: innodb_show_lock_name.patch
99 Patch119: innodb_extend_slow.patch
100 Patch120: innodb_lru_dump_restore.patch
101 Patch121: innodb_separate_doublewrite.patch
102 Patch122: innodb_pass_corrupt_table.patch
103 Patch123: innodb_fast_checksum.patch
104 Patch124: innodb_files_extend.patch
105 Patch125: innodb_fix_misc.patch
106 Patch126: innodb_deadlock_count.patch
107 Patch127: innodb_adaptive_hash_index_partitions.patch
108 Patch128: innodb_buffer_pool_pages_i_s.patch
109 Patch129: innodb_buffer_pool_shm.patch
110 Patch130: innodb_show_status_extend.patch
111 Patch131: innodb_kill_idle_transaction.patch
112 Patch132: innodb_fake_changes.patch
113 Patch133: slow_extended.patch
114 Patch134: percona_support.patch
115 Patch135: query_cache_enhance.patch
116 Patch136: log_connection_error.patch
117 Patch137: mysql_syslog.patch
118 Patch138: error_pad.patch
119 Patch139: response_time_distribution.patch
120 Patch140: remove_fcntl_excessive_calls.patch
121 Patch141: sql_no_fcache.patch
122 Patch142: show_slave_status_nolock.patch
123 Patch143: log_warnings_suppress.patch
124 Patch144: userstat.patch
125 Patch145: bug580324.patch
126 Patch146: mysql_remove_eol_carret.patch
127 Patch147: processlist_row_stats.patch
128 Patch148: innodb_expand_fast_index_creation.patch
129 Patch149: innodb_bug60788.patch
130 Patch150: start-stop-messages.patch
131 Patch151: file-contents.patch
132 Patch152: slave_timeout_fix.patch
133 Patch153: utf8_general50_ci.patch
134 Patch154: bug813587.patch
135 Patch155: valgrind_zlib_suppression.patch
136 Patch156: memory_dynamic_rows.patch
137 Patch157: xtradb_bug317074.patch
138 Patch158: subunit.patch
139 Patch159: bug860910.patch
140 Patch160: bug45702.patch
142 URL: http://www.mysql.com/products/community/
144 BuildRequires: cmake >= 2.6
146 %if "%{pld_release}" == "ac"
147 BuildRequires: libstdc++4-devel >= 5:4.0
149 BuildRequires: libstdc++-devel >= 5:4.0
151 BuildRequires: libtool
152 %{?with_tcpd:BuildRequires: libwrap-devel}
153 BuildRequires: ncurses-devel >= 4.2
154 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
155 %{?with_autodeps:BuildRequires: perl-DBI}
156 BuildRequires: perl-devel >= 1:5.6.1
157 BuildRequires: readline-devel >= 4.2
158 BuildRequires: rpm-perlprov >= 4.1-13
159 BuildRequires: rpmbuild(macros) >= 1.597
160 BuildRequires: sed >= 4.0
161 BuildRequires: zlib-devel
162 Requires(post,preun): /sbin/chkconfig
163 Requires(postun): /usr/sbin/groupdel
164 Requires(postun): /usr/sbin/userdel
165 Requires(pre): /bin/id
166 Requires(pre): /usr/bin/getgid
167 Requires(pre): /usr/sbin/groupadd
168 Requires(pre): /usr/sbin/useradd
169 Requires(triggerpostun): sed >= 4.0
170 Requires: %{name}-charsets = %{version}-%{release}
171 Requires: %{name}-libs = %{version}-%{release}
172 Requires: /usr/bin/setsid
173 Requires: rc-scripts >= 0.2.0
174 Suggests: mysql-client
175 %{?with_tcpd:Suggests: tcp_wrappers}
176 Suggests: vim-syntax-mycnf
177 Provides: MySQL-server
178 Provides: group(mysql)
179 Provides: msqlormysql
180 Provides: user(mysql)
182 Obsoletes: mysql-server
183 Conflicts: logrotate < 3.7-4
184 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
186 %define _libexecdir %{_sbindir}
187 %define _localstatedir /var/lib/mysql
188 %define _mysqlhome /home/services/mysql
190 %define _noautoreqdep 'perl(DBD::mysql)'
193 MySQL is a true multi-user, multi-threaded SQL (Structured Query
194 Language) database server. SQL is the most popular database language
195 in the world. MySQL is a client/server implementation that consists of
196 a server daemon mysqld and many different client programs/libraries.
198 The main goals of MySQL are speed, robustness and easy to use. MySQL
199 was originally developed because we at Tcx needed a SQL server that
200 could handle very big databases with magnitude higher speed than what
201 any database vendor could offer to us. We have now been using MySQL
202 since 1996 in a environment with more than 40 databases, 10,000
203 tables, of which more than 500 have more than 7 million rows. This is
204 about 50G of mission critical data.
206 The base upon which MySQL is built is a set of routines that have been
207 used in a highly demanding production environment for many years.
208 While MySQL is still in development, it already offers a rich and
209 highly useful function set.
211 %description -l fr.UTF-8
212 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
213 multi-taches. Le langage SQL est le langage de bases de donnees le
214 plus populaire au monde. MySQL est une implementation client/serveur
215 qui consiste en un serveur (mysqld) et differents
216 programmes/bibliotheques clientes.
218 Les objectifs principaux de MySQL sont: vitesse, robustesse et
219 facilite d'utilisation. MySQL fut originalement developpe parce que
220 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
221 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
222 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
223 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
224 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
225 millions de lignes. Ceci represente environ 50G de donnees critiques.
227 A la base de la conception de MySQL, on retrouve une serie de routines
228 qui ont ete utilisees dans un environnement de production pendant
229 plusieurs annees. Meme si MySQL est encore en developpement, il offre
230 deja une riche et utile serie de fonctions.
232 %description -l pl.UTF-8
233 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
234 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
235 danych. MySQL to implementacja klient/serwer składająca się z demona
236 mysqld i wielu różnych programów i bibliotek klienckich.
238 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
239 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
240 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
241 większą, niż mogli zaoferować inni producenci baz danych. Używają go
242 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
243 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
244 50GB krytycznych danych.
246 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
247 które były używane w bardzo wymagającym środowisku produkcyjnym przez
248 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
249 i użyteczny zbiór funkcji.
251 %description -l de.UTF-8
252 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
253 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
254 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
255 einem Primärschlüssel versehen werden. Es ist aber keine Definition
256 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
257 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
258 Daten verantwortlich. Allein durch die Nutzung externer
259 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
260 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
262 %description -l pt_BR.UTF-8
263 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
264 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
265 dados no mundo. O MySQL é uma implementação cliente/servidor que
266 consiste de um servidor chamado mysqld e diversos
267 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
268 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
269 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
270 pudesse lidar com grandes bases de dados e com uma velocidade muito
271 maior do que a que qualquer vendedor podia nos oferecer. Estamos
272 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
273 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
274 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
275 A base da construção do MySQL é uma série de rotinas que foram usadas
276 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
277 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
278 funções muito ricas e úteis. Veja a documentação para maiores
281 %description -l ru.UTF-8
282 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
283 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
284 дистрибутиве на предмет других участников проекта и прочей информации
287 %description -l uk.UTF-8
288 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
289 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
290 дистрибутиві для інформації про інших учасників проекту та іншої
294 Summary: MySQL - character sets definitions
295 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
296 Group: Applications/Databases
298 %description charsets
299 This package contains character sets definitions needed by both client
302 %description charsets -l pl.UTF-8
303 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
306 %package -n mysqlhotcopy
307 Summary: mysqlhotcopy - A MySQL database backup program
308 Summary(pl.UTF-8): mysqlhotcopy - program do tworzenia kopii zapasowych baz MySQL
309 Group: Applications/Databases
310 Requires: perl-DBD-mysql
312 %description -n mysqlhotcopy
313 mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a
314 database backup quickly. It is the fastest way to make a backup of the
315 database or single tables, but it can be run only on the same machine
316 where the database directories are located. mysqlhotcopy works only
317 for backing up MyISAM and ARCHIVE tables.
319 See innobackup package to backup InnoDB tables.
321 %description -n mysqlhotcopy -l pl.UTF-8
322 mysqlhotcopy wykorzystuje LOCK TABLES, FLUSH TABLES oraz cp i scp do
323 szybkiego tworzenia kopii zapasowych baz danych. Jest to najszybszy
324 sposób wykonania kopii zapasowej bazy danych lub pojedynczych tabel,
325 ale może działać tylko na maszynie, na której znajdują się katalogi z
326 bazą danych. mysqlhotcopy działa tylko dla tabel typu MyISAM i
329 Narzędzie do tworzenia kopii tabel InnoDB znajduje się w pakiecie
333 Summary: MySQL additional utilities
334 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
335 Group: Applications/Databases
336 Requires: %{name}-client = %{version}-%{release}
337 Requires: %{name}-libs = %{version}-%{release}
340 MySQL additional utilities except Perl scripts (they may be found in
341 %{name}-extras-perl package).
343 %description extras -l pl.UTF-8
344 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
345 pakiecie %{name}-extras-perl).
348 Summary: MySQL additional utilities written in Perl
349 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
350 Group: Applications/Databases
351 Requires: %{name}-extras = %{version}-%{release}
352 # this is just for the sake of smooth upgrade, not to break systems
353 Requires: mysqlhotcopy = %{version}-%{release}
354 Requires: perl(DBD::mysql)
356 %description extras-perl
357 MySQL additional utilities written in Perl.
359 %description extras-perl -l pl.UTF-8
360 Dodatkowe narzędzia do MySQL napisane w Perlu.
363 Summary: MySQL - Client
364 Summary(pl.UTF-8): MySQL - Klient
365 Summary(pt.UTF-8): MySQL - Cliente
366 Summary(ru.UTF-8): MySQL клиент
367 Summary(uk.UTF-8): MySQL клієнт
368 Group: Applications/Databases
369 Requires: %{name}-charsets = %{version}-%{release}
370 Requires: %{name}-libs = %{version}-%{release}
371 Obsoletes: MySQL-client
374 This package contains the standard MySQL clients.
376 %description client -l fr.UTF-8
377 Ce package contient les clients MySQL standards.
379 %description client -l pl.UTF-8
380 Standardowe programy klienckie MySQL.
382 %description client -l pt_BR.UTF-8
383 Este pacote contém os clientes padrão para o MySQL.
385 %description client -l ru.UTF-8
386 Этот пакет содержит только клиент MySQL.
388 %description client -l uk.UTF-8
389 Цей пакет містить тільки клієнта MySQL.
392 Summary: Shared libraries for MySQL
393 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
395 Obsoletes: libmysql10
396 Obsoletes: mysql-doc < 4.1.12
399 Shared libraries for MySQL.
401 %description libs -l pl.UTF-8
402 Biblioteki współdzielone MySQL.
405 Summary: MySQL - development header files and other files
406 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
407 Summary(pt.UTF-8): MySQL - Medições de desempenho
408 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
409 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
410 Group: Development/Libraries
411 Requires: %{name}-libs = %{version}-%{release}
412 %{?with_ssl:Requires: openssl-devel}
414 Obsoletes: MySQL-devel
415 Obsoletes: libmysql10-devel
418 This package contains the development header files and other files
419 necessary to develop MySQL client applications.
421 %description devel -l fr.UTF-8
422 Ce package contient les fichiers entetes et les librairies de
423 developpement necessaires pour developper des applications clientes
426 %description devel -l pl.UTF-8
427 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
430 %description devel -l pt_BR.UTF-8
431 Este pacote contém os arquivos de cabeçalho (header files) e
432 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
434 %description devel -l ru.UTF-8
435 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
436 разработки клиентских приложений.
438 %description devel -l uk.UTF-8
439 Цей пакет містить хедери та бібліотеки програміста, необхідні для
440 розробки програм-клієнтів.
443 Summary: MySQL static libraries
444 Summary(pl.UTF-8): Biblioteki statyczne MySQL
445 Summary(ru.UTF-8): MySQL - статические библиотеки
446 Summary(uk.UTF-8): MySQL - статичні бібліотеки
447 Group: Development/Libraries
448 Requires: %{name}-devel = %{version}-%{release}
449 Obsoletes: MySQL-static
452 MySQL static libraries.
454 %description static -l pl.UTF-8
455 Biblioteki statyczne MySQL.
457 %description static -l ru.UTF-8
458 Этот пакет содержит статические библиотеки разработчика, необходимые
459 для разработки клиентских приложений.
461 %description static -l uk.UTF-8
462 Цей пакет містить статичні бібліотеки програміста, необхідні для
463 розробки програм-клієнтів.
466 Summary: MySQL - Benchmarks
467 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
468 Summary(pt.UTF-8): MySQL - Medições de desempenho
469 Summary(ru.UTF-8): MySQL - бенчмарки
470 Summary(uk.UTF-8): MySQL - бенчмарки
471 Group: Applications/Databases
472 Requires: %{name} = %{version}-%{release}
473 Requires: %{name}-client
474 Requires: perl(DBD::mysql)
475 Obsoletes: MySQL-bench
478 This package contains MySQL benchmark scripts and data.
480 %description bench -l pl.UTF-8
481 Programy testujące szybkość serwera MySQL.
483 %description bench -l pt_BR.UTF-8
484 Este pacote contém medições de desempenho de scripts e dados do MySQL.
486 %description bench -l ru.UTF-8
487 Этот пакет содержит скрипты и данные для оценки производительности
490 %description bench -l uk.UTF-8
491 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
494 Summary: MySQL manual
495 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
496 Group: Applications/Databases
499 This package contains manual in HTML format.
501 %description doc -l pl.UTF-8
502 Podręcznik MySQL-a w formacie HTML.
505 Summary: MySQL - NDB Storage Engine Daemon
506 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
507 Group: Applications/Databases
508 Requires: %{name}-libs = %{version}-%{release}
511 This package contains the standard MySQL NDB Storage Engine Daemon.
513 %description ndb -l pl.UTF-8
514 Ten pakiet zawiera standardowego demona silnika przechowywania danych
518 Summary: MySQL - NDB Clients
519 Summary(pl.UTF-8): MySQL - programy klienckie NDB
520 Group: Applications/Databases
521 Requires: %{name}-libs = %{version}-%{release}
523 %description ndb-client
524 This package contains the standard MySQL NDB Clients.
526 %description ndb-client -l pl.UTF-8
527 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
530 Summary: MySQL - NDB Management Daemon
531 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
532 Group: Applications/Databases
533 Requires: %{name}-libs = %{version}-%{release}
536 This package contains the standard MySQL NDB Management Daemon.
538 %description ndb-mgm -l pl.UTF-8
539 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
542 Summary: MySQL - NDB CPC Daemon
543 Summary(pl.UTF-8): MySQL - demon NDB CPC
544 Group: Applications/Databases
545 Requires: %{name}-libs = %{version}-%{release}
548 This package contains the standard MySQL NDB CPC Daemon.
550 %description ndb-cpc -l pl.UTF-8
551 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
554 %setup -q %{?with_sphinx:-a100}
556 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
557 mv sphinx-*/mysqlse storage/sphinx
560 #%patch2 -p1 # NEEDS CHECK, which exact program needs -lc++
639 # to get these files rebuild
646 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
647 # (it defaults to first cluster but user may change it to whatever
650 %if "%{pld_release}" == "ac"
651 # add suffix, but allow ccache, etc in ~/.rpmmacros
652 %{expand:%%define __cc %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
653 %{expand:%%define __cxx %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
654 %{expand:%%define __cpp %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
657 # upstream has fallen down badly on symbol versioning, do it ourselves
659 cp -a %{SOURCE15} libmysql/libmysql.version
662 -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
663 -DFEATURE_SET="community" \
664 -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
665 -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
666 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
667 %{?debug:-DWITH_DEBUG=ON} \
668 -DWITH_FAST_MUTEXES=ON \
671 -DWITH_READLINE=OFF \
672 %if "%{pld_release}" == "ac"
673 -DWITH_SSL=%{?with_ssl:bundled}%{!?with_ssl:no} \
675 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
678 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
679 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
680 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
681 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
682 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
683 -DINSTALL_LAYOUT=RPM \
684 -DINSTALL_MYSQLTESTDIR_RPM="" \
685 -DINSTALL_SQLBENCHDIR=%{_datadir} \
686 -DINSTALL_SUPPORTFILESDIR=%{_datadir}/%{name}-support \
691 %{?with_tests:%{__make} test}
694 rm -rf $RPM_BUILD_ROOT
695 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
696 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
697 $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
699 %{__make} -C build install \
700 DESTDIR=$RPM_BUILD_ROOT
702 cp -a Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
704 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
705 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
706 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
707 # This is template for configuration file which is created after 'service mysql init'
708 cp -a %{SOURCE4} mysqld.conf
709 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
710 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
712 # remove innodb directives from mysqld.conf if mysqld is configured without
713 %if %{without innodb}
714 cp mysqld.conf mysqld.tmp
715 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
718 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
719 cp mysqld.conf mysqld.tmp
720 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
722 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
723 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
724 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
728 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
729 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
730 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
731 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
732 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
733 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
736 # symlinks point to the .so file, fix it
737 ln -sf libmysqlclient.so.18 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.18
738 ln -sf libmysqlclient.so.18.0.0 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.18.0.0
740 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
741 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
743 # remove known unpackaged files
744 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-support
746 # rename not to be so generic name
747 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
748 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
750 # not useful without -debug build
751 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
752 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
753 # generate symbols file, so one can generate backtrace using it
754 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
755 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
756 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
758 # do not clobber users $PATH
759 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_plugin
760 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
761 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
762 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
763 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
764 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
765 #mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
766 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
767 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
768 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
770 # delete - functionality in initscript / rpm
771 # note: mysql_install_db (and thus resolveip) are needed by digikam
772 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
773 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
774 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
775 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
776 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
777 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
778 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg-utf8.txt
779 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
780 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
781 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
782 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
783 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
785 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
786 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
787 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
788 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
789 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
790 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
791 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
794 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
797 rm -rf $RPM_BUILD_ROOT
800 %groupadd -g 89 mysql
801 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
804 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
806 /sbin/chkconfig --add mysql
807 %service mysql restart
810 if [ "$1" = "0" ]; then
811 %service -q mysql stop
812 /sbin/chkconfig --del mysql
816 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
819 if [ "$1" = "0" ]; then
825 /sbin/chkconfig --add mysql-ndb
826 %service mysql-ndb restart "mysql NDB engine"
829 if [ "$1" = "0" ]; then
830 %service mysql-ndb stop
831 /sbin/chkconfig --del mysql-ndb
835 /sbin/chkconfig --add mysql-ndb-mgm
836 %service mysql-ndb-mgm restart "mysql NDB management node"
839 if [ "$1" = "0" ]; then
840 %service mysql-ndb-mgm stop
841 /sbin/chkconfig --del mysql-ndb-mgm
845 /sbin/chkconfig --add mysql-ndb-cpc
846 %service mysql-ndb-cpc restart "mysql NDB CPC"
849 if [ "$1" = "0" ]; then
850 %service mysql-ndb-cpc stop
851 /sbin/chkconfig --del mysql-ndb-cpc
854 %post libs -p /sbin/ldconfig
855 %postun libs -p /sbin/ldconfig
857 %triggerpostun -- mysql < 4.0.20-2.4
858 # For clusters in /etc/%{name}/clusters.conf
859 if [ -f /etc/sysconfig/mysql ]; then
860 . /etc/sysconfig/mysql
861 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
862 for i in "$MYSQL_DB_CLUSTERS"; do
863 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
865 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
866 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
867 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
868 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
872 %triggerpostun -- mysql < 4.1.1
873 # For better compatibility with prevoius versions:
874 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
875 if echo "$config" | grep -q '^/'; then
876 config_file="$config"
877 elif [ -f "/etc/%{name}/$config" ]; then
878 config_file=/etc/%{name}/$config
880 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
881 if [ -z "$clusterdir" ]; then
882 echo >&2 "Can't find cluster dir for $config!"
883 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
886 config_file="$clusterdir/mysqld.conf"
889 if [ ! -f "$config_file" ]; then
890 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
893 echo "Adding option old-passwords to config: $config_file"
894 echo "If you want to use new, better passwords - remove it"
896 # sed magic to add 'old-passwords' to [mysqld] section
897 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
899 a; Compatibility options:
905 %banner -e %{name}-4.1.x <<-EOF
906 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
907 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
911 %triggerpostun -- mysql < 5.1.0
913 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
914 if echo "$config" | grep -q '^/'; then
915 config_file="$config"
916 elif [ -f "/etc/%{name}/$config" ]; then
917 config_file=/etc/%{name}/$config
919 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
920 if [ -z "$clusterdir" ]; then
921 echo >&2 "Can't find cluster dir for $config!"
922 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
925 config_file="$clusterdir/mysqld.conf"
928 if [ ! -f "$config_file" ]; then
929 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/"
932 configs="$configs $config_file"
936 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
937 echo 'Thus, you should invoke:'
938 for config in $configs; do
940 s/set-variable\s*=\s* //
941 # use # as comment in config
945 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
946 echo "# mysql_upgrade --datadir=$datadir"
948 ) | %banner -e %{name}-5.1
950 %triggerpostun -- mysql < 5.5.0
952 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
953 if echo "$config" | grep -q '^/'; then
954 config_file="$config"
955 elif [ -f "/etc/%{name}/$config" ]; then
956 config_file=/etc/%{name}/$config
958 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
959 if [ -z "$clusterdir" ]; then
960 echo >&2 "Can't find cluster dir for $config!"
961 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
964 config_file="$clusterdir/mysqld.conf"
967 if [ ! -f "$config_file" ]; then
968 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/"
971 configs="$configs $config_file"
975 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
976 echo 'Thus, you should invoke:'
977 for config in $configs; do
979 s/^language *= *polish/lc-messages = pl_PL/i
980 s/set-variable\s*=\s* //
981 s/^skip-locking/skip-external-locking/
982 # this is not valid for server. it is client option
983 s/^default-character-set/# client-config: &/
984 # use # as comment in config
988 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
989 echo "# mysql_upgrade ${socket:+--socket=$socket}"
991 ) | %banner -e %{name}-5.5
994 %defattr(644,root,root,755)
995 %doc build/support-files/*.cnf build/support-files/*.ini
996 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
997 %attr(754,root,root) /etc/rc.d/init.d/%{name}
998 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
999 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
1000 %attr(755,root,root) %{_sbindir}/innochecksum
1001 %attr(755,root,root) %{_sbindir}/my_print_defaults
1002 %attr(755,root,root) %{_sbindir}/myisamchk
1003 %attr(755,root,root) %{_sbindir}/myisamlog
1004 %attr(755,root,root) %{_sbindir}/myisampack
1005 #%attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
1006 %attr(755,root,root) %{_sbindir}/mysql_plugin
1007 %attr(755,root,root) %{_sbindir}/mysql_upgrade
1008 %attr(755,root,root) %{_sbindir}/mysqlcheck
1009 %attr(755,root,root) %{_sbindir}/mysqld
1010 %dir %{_libdir}/%{name}
1011 %dir %{_libdir}/%{name}/plugin
1012 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
1013 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
1014 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
1015 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
1016 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_archive.so
1017 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_blackhole.so
1018 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_federated.so
1019 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
1020 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
1021 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
1022 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
1023 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
1024 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
1026 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
1029 %attr(755,root,root) %{_libdir}/libmysqlservices.so
1030 %{_mandir}/man1/innochecksum.1*
1031 %{_mandir}/man1/my_print_defaults.1*
1032 %{_mandir}/man1/myisamchk.1*
1033 %{_mandir}/man1/myisamlog.1*
1034 %{_mandir}/man1/myisampack.1*
1035 #%{_mandir}/man1/mysql_fix_privilege_tables.1*
1036 %{_mandir}/man1/mysql_plugin.1*
1037 %{_mandir}/man1/mysql_upgrade.1*
1038 %{_mandir}/man1/mysqlcheck.1*
1039 %{_mandir}/man8/mysqld.8*
1042 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
1043 %{_datadir}/%{name}/mysqld.sym
1044 %{_mandir}/man1/*resolve_stack_dump.1*
1047 %attr(700,mysql,mysql) %{_mysqlhome}
1048 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
1049 %attr(751,root,root) /var/lib/mysql
1050 %attr(750,mysql,mysql) %dir /var/log/mysql
1051 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
1052 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
1054 %{_infodir}/mysql.info*
1055 # This is template for configuration file which is created after 'service mysql init'
1056 %{_datadir}/%{name}/mysqld.conf
1057 %{_datadir}/%{name}/mysql_system_tables.sql
1058 %{_datadir}/%{name}/mysql_system_tables_data.sql
1059 %{_datadir}/%{name}/mysql_test_data_timezone.sql
1061 %{_datadir}/%{name}/english
1062 %{_datadir}/%{name}/fill_help_tables.sql
1063 #%{_datadir}/%{name}/mysql_fix_privilege_tables.sql
1064 %lang(cs) %{_datadir}/%{name}/czech
1065 %lang(da) %{_datadir}/%{name}/danish
1066 %lang(de) %{_datadir}/%{name}/german
1067 %lang(el) %{_datadir}/%{name}/greek
1068 %lang(es) %{_datadir}/%{name}/spanish
1069 %lang(et) %{_datadir}/%{name}/estonian
1070 %lang(fr) %{_datadir}/%{name}/french
1071 %lang(hu) %{_datadir}/%{name}/hungarian
1072 %lang(it) %{_datadir}/%{name}/italian
1073 %lang(ja) %{_datadir}/%{name}/japanese
1074 %lang(ko) %{_datadir}/%{name}/korean
1075 %lang(nl) %{_datadir}/%{name}/dutch
1076 %lang(nb) %{_datadir}/%{name}/norwegian
1077 %lang(nn) %{_datadir}/%{name}/norwegian-ny
1078 %lang(pl) %{_datadir}/%{name}/polish
1079 %lang(pt) %{_datadir}/%{name}/portuguese
1080 %lang(ro) %{_datadir}/%{name}/romanian
1081 %lang(ru) %{_datadir}/%{name}/russian
1082 %lang(sr) %{_datadir}/%{name}/serbian
1083 %lang(sk) %{_datadir}/%{name}/slovak
1084 %lang(sv) %{_datadir}/%{name}/swedish
1085 %lang(uk) %{_datadir}/%{name}/ukrainian
1088 %defattr(644,root,root,755)
1089 %dir %{_datadir}/mysql
1090 %{_datadir}/%{name}/charsets
1093 %defattr(644,root,root,755)
1094 %attr(755,root,root) %{_bindir}/msql2mysql
1095 %attr(755,root,root) %{_bindir}/myisam_ftdump
1096 %attr(755,root,root) %{_bindir}/mysql_install_db
1097 %attr(755,root,root) %{_bindir}/mysql_secure_installation
1098 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
1099 %attr(755,root,root) %{_bindir}/perror
1100 %attr(755,root,root) %{_bindir}/replace
1101 %attr(755,root,root) %{_bindir}/resolveip
1102 %{_mandir}/man1/msql2mysql.1*
1103 %{_mandir}/man1/myisam_ftdump.1*
1104 %{_mandir}/man1/mysql_install_db.1*
1105 %{_mandir}/man1/mysql_secure_installation.1*
1106 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1107 %{_mandir}/man1/perror.1*
1108 %{_mandir}/man1/replace.1*
1109 %{_mandir}/man1/resolveip.1*
1111 %files -n mysqlhotcopy
1112 %defattr(644,root,root,755)
1113 %attr(755,root,root) %{_bindir}/mysqlhotcopy
1114 %{_mandir}/man1/mysqlhotcopy.1*
1117 %defattr(644,root,root,755)
1118 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
1119 %attr(755,root,root) %{_bindir}/mysql_find_rows
1120 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
1121 %attr(755,root,root) %{_bindir}/mysql_setpermission
1122 %attr(755,root,root) %{_bindir}/mysql_zap
1123 %attr(755,root,root) %{_bindir}/mysqlaccess
1124 %attr(755,root,root) %{_bindir}/mysqldumpslow
1125 %{_mandir}/man1/mysql_convert_table_format.1*
1126 %{_mandir}/man1/mysql_find_rows.1*
1127 %{_mandir}/man1/mysql_fix_extensions.1*
1128 %{_mandir}/man1/mysql_setpermission.1*
1129 %{_mandir}/man1/mysql_zap.1*
1130 %{_mandir}/man1/mysqlaccess.1*
1131 %{_mandir}/man1/mysqldumpslow.1*
1134 %defattr(644,root,root,755)
1135 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
1136 %attr(755,root,root) %{_bindir}/mysql
1137 %attr(755,root,root) %{_bindir}/mysqladmin
1138 %attr(755,root,root) %{_bindir}/mysqlbinlog
1139 %attr(755,root,root) %{_bindir}/mysqlbug
1140 %attr(755,root,root) %{_bindir}/mysqldump
1141 %attr(755,root,root) %{_bindir}/mysqlimport
1142 %attr(755,root,root) %{_bindir}/mysqlshow
1143 %{_mandir}/man1/mysql.1*
1144 %{_mandir}/man1/mysqladmin.1*
1145 %{_mandir}/man1/mysqlbinlog.1*
1146 %{_mandir}/man1/mysqlbug.1*
1147 %{_mandir}/man1/mysqldump.1*
1148 %{_mandir}/man1/mysqlimport.1*
1149 %{_mandir}/man1/mysqlshow.1*
1152 %defattr(644,root,root,755)
1153 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1154 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1155 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1156 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.18
1157 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.*
1158 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.18
1160 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1161 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1165 %defattr(644,root,root,755)
1166 %attr(755,root,root) %{_bindir}/mysql_config
1167 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1168 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1170 %attr(755,root,root) %{_libdir}/libndbclient.so
1172 %{_includedir}/mysql
1173 %{_aclocaldir}/mysql.m4
1174 %{_mandir}/man1/mysql_config.1*
1177 %defattr(644,root,root,755)
1178 %{_libdir}/libmysqlclient.a
1179 %{_libdir}/libmysqlclient_r.a
1181 %{_libdir}/libndbclient.a
1185 %defattr(644,root,root,755)
1186 %attr(755,root,root) %{_bindir}/mysqlslap
1187 %attr(755,root,root) %{_bindir}/mysqltest
1188 %dir %{_datadir}/sql-bench
1189 %{_datadir}/sql-bench/[CDRl]*
1190 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1191 %{_mandir}/man1/mysqlslap.1*
1192 %{_mandir}/man1/mysqltest.1*
1193 %{_mandir}/man1/mysqltest_embedded.1*
1196 #%defattr(644,root,root,755)
1197 #%doc Docs/manual.html Docs/manual_toc.html
1201 %defattr(644,root,root,755)
1202 %attr(755,root,root) %{_sbindir}/ndbd
1203 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1204 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1205 %{_mandir}/man1/ndbd_redo_log_reader.1*
1206 %{_mandir}/man8/ndbd.8*
1209 %defattr(644,root,root,755)
1210 %attr(755,root,root) %{_bindir}/ndb_config
1211 %attr(755,root,root) %{_bindir}/ndb_delete_all
1212 %attr(755,root,root) %{_bindir}/ndb_desc
1213 %attr(755,root,root) %{_bindir}/ndb_drop_index
1214 %attr(755,root,root) %{_bindir}/ndb_drop_table
1215 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1216 %attr(755,root,root) %{_bindir}/ndb_mgm
1217 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1218 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1219 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1220 %attr(755,root,root) %{_bindir}/ndb_restore
1221 %attr(755,root,root) %{_bindir}/ndb_select_all
1222 %attr(755,root,root) %{_bindir}/ndb_select_count
1223 %attr(755,root,root) %{_bindir}/ndb_show_tables
1224 %attr(755,root,root) %{_bindir}/ndb_size.pl
1225 %attr(755,root,root) %{_bindir}/ndb_test_platform
1226 %attr(755,root,root) %{_bindir}/ndb_waiter
1227 %{_mandir}/man1/ndb_config.1*
1228 %{_mandir}/man1/ndb_delete_all.1*
1229 %{_mandir}/man1/ndb_desc.1*
1230 %{_mandir}/man1/ndb_drop_index.1*
1231 %{_mandir}/man1/ndb_drop_table.1*
1232 %{_mandir}/man1/ndb_error_reporter.1*
1233 %{_mandir}/man1/ndb_mgm.1*
1234 %{_mandir}/man1/ndb_print_backup_file.1*
1235 %{_mandir}/man1/ndb_print_schema_file.1*
1236 %{_mandir}/man1/ndb_print_sys_file.1*
1237 %{_mandir}/man1/ndb_restore.1*
1238 %{_mandir}/man1/ndb_select_all.1*
1239 %{_mandir}/man1/ndb_select_count.1*
1240 %{_mandir}/man1/ndb_show_tables.1*
1241 %{_mandir}/man1/ndb_size.pl.1*
1242 %{_mandir}/man1/ndb_waiter.1*
1245 %defattr(644,root,root,755)
1246 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1247 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1248 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1249 %{_mandir}/man8/ndb_mgmd.8*
1252 %defattr(644,root,root,755)
1253 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1254 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1255 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1256 %{_mandir}/man1/ndb_cpcd.1*