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: 375794ebf84b4c7b63f1676bc7416cd0
45 Source100: http://sphinxsearch.com/files/sphinx-2.0.3-release.tar.gz
46 # Source100-md5: a1293aecd5034aa797811610beb7ba89
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 # <percona patches, updated with percona.sh>
78 Patch100: microsec_process.patch
79 Patch101: optimizer_fix.patch
80 Patch102: mysql_dump_ignore_ct.patch
81 Patch103: control_online_alter_index.patch
82 Patch104: show_temp.patch
83 Patch105: innodb_show_status.patch
84 Patch106: innodb_io_patches.patch
85 Patch107: innodb_opt_lru_count.patch
86 Patch108: innodb_extra_rseg.patch
87 Patch109: innodb_overwrite_relay_log_info.patch
88 Patch110: innodb_thread_concurrency_timer_based.patch
89 Patch111: innodb_dict_size_limit.patch
90 Patch112: innodb_split_buf_pool_mutex.patch
91 Patch113: innodb_expand_import.patch
92 Patch114: innodb_show_sys_tables.patch
93 Patch115: innodb_stats.patch
94 Patch116: innodb_recovery_patches.patch
95 Patch117: innodb_admin_command_base.patch
96 Patch118: innodb_show_lock_name.patch
97 Patch119: innodb_extend_slow.patch
98 Patch120: innodb_lru_dump_restore.patch
99 Patch121: innodb_separate_doublewrite.patch
100 Patch122: innodb_pass_corrupt_table.patch
101 Patch123: innodb_fast_checksum.patch
102 Patch124: innodb_files_extend.patch
103 Patch125: innodb_fix_misc.patch
104 Patch126: innodb_deadlock_count.patch
105 Patch127: innodb_adaptive_hash_index_partitions.patch
106 Patch128: innodb_buffer_pool_pages_i_s.patch
107 Patch129: innodb_buffer_pool_shm.patch
108 Patch130: innodb_show_status_extend.patch
109 Patch131: innodb_kill_idle_transaction.patch
110 Patch132: innodb_fake_changes.patch
111 Patch133: slow_extended.patch
112 Patch134: percona_support.patch
113 Patch135: query_cache_enhance.patch
114 Patch136: log_connection_error.patch
115 Patch137: mysql_syslog.patch
116 Patch138: error_pad.patch
117 Patch139: response_time_distribution.patch
118 Patch140: remove_fcntl_excessive_calls.patch
119 Patch141: sql_no_fcache.patch
120 Patch142: show_slave_status_nolock.patch
121 Patch143: log_warnings_suppress.patch
122 Patch144: userstat.patch
123 Patch145: bug580324.patch
124 Patch146: mysql_remove_eol_carret.patch
125 Patch147: processlist_row_stats.patch
126 Patch148: innodb_expand_fast_index_creation.patch
127 Patch149: innodb_bug60788.patch
128 Patch150: start-stop-messages.patch
129 Patch151: file-contents.patch
130 Patch152: slave_timeout_fix.patch
131 Patch153: utf8_general50_ci.patch
132 Patch154: bug813587.patch
133 Patch155: valgrind_zlib_suppression.patch
134 Patch156: memory_dynamic_rows.patch
135 Patch157: xtradb_bug317074.patch
136 Patch158: subunit.patch
137 Patch159: bug860910.patch
138 Patch160: bug45702.patch
139 Patch161: group_commit.patch
140 Patch162: warning_fixes.patch
141 Patch163: bug917246.patch
143 URL: http://www.mysql.com/products/community/
145 BuildRequires: cmake >= 2.6
147 %if "%{pld_release}" == "ac"
148 BuildRequires: libstdc++4-devel >= 5:4.0
150 BuildRequires: libstdc++-devel >= 5:4.0
152 BuildRequires: libtool
153 %{?with_tcpd:BuildRequires: libwrap-devel}
154 BuildRequires: ncurses-devel >= 4.2
155 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
156 %{?with_autodeps:BuildRequires: perl-DBI}
157 BuildRequires: perl-devel >= 1:5.6.1
158 BuildRequires: readline-devel >= 4.2
159 BuildRequires: rpm-perlprov >= 4.1-13
160 BuildRequires: rpmbuild(macros) >= 1.597
161 BuildRequires: sed >= 4.0
162 BuildRequires: zlib-devel
163 Requires(post,preun): /sbin/chkconfig
164 Requires(postun): /usr/sbin/groupdel
165 Requires(postun): /usr/sbin/userdel
166 Requires(pre): /bin/id
167 Requires(pre): /usr/bin/getgid
168 Requires(pre): /usr/sbin/groupadd
169 Requires(pre): /usr/sbin/useradd
170 Requires(triggerpostun): sed >= 4.0
171 Requires: %{name}-charsets = %{version}-%{release}
172 Requires: %{name}-libs = %{version}-%{release}
173 Requires: /usr/bin/setsid
174 Requires: rc-scripts >= 0.2.0
175 Suggests: mysql-client
176 %{?with_tcpd:Suggests: tcp_wrappers}
177 Suggests: vim-syntax-mycnf
178 Provides: MySQL-server
179 Provides: group(mysql)
180 Provides: msqlormysql
181 Provides: user(mysql)
183 Obsoletes: mysql-server
184 Conflicts: logrotate < 3.8.0
185 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
187 %define _libexecdir %{_sbindir}
188 %define _localstatedir /var/lib/mysql
189 %define _mysqlhome /home/services/mysql
191 %define _noautoreqdep 'perl(DBD::mysql)'
194 MySQL is a true multi-user, multi-threaded SQL (Structured Query
195 Language) database server. SQL is the most popular database language
196 in the world. MySQL is a client/server implementation that consists of
197 a server daemon mysqld and many different client programs/libraries.
199 The main goals of MySQL are speed, robustness and easy to use. MySQL
200 was originally developed because we at Tcx needed a SQL server that
201 could handle very big databases with magnitude higher speed than what
202 any database vendor could offer to us. We have now been using MySQL
203 since 1996 in a environment with more than 40 databases, 10,000
204 tables, of which more than 500 have more than 7 million rows. This is
205 about 50G of mission critical data.
207 The base upon which MySQL is built is a set of routines that have been
208 used in a highly demanding production environment for many years.
209 While MySQL is still in development, it already offers a rich and
210 highly useful function set.
212 %description -l fr.UTF-8
213 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
214 multi-taches. Le langage SQL est le langage de bases de donnees le
215 plus populaire au monde. MySQL est une implementation client/serveur
216 qui consiste en un serveur (mysqld) et differents
217 programmes/bibliotheques clientes.
219 Les objectifs principaux de MySQL sont: vitesse, robustesse et
220 facilite d'utilisation. MySQL fut originalement developpe parce que
221 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
222 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
223 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
224 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
225 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
226 millions de lignes. Ceci represente environ 50G de donnees critiques.
228 A la base de la conception de MySQL, on retrouve une serie de routines
229 qui ont ete utilisees dans un environnement de production pendant
230 plusieurs annees. Meme si MySQL est encore en developpement, il offre
231 deja une riche et utile serie de fonctions.
233 %description -l pl.UTF-8
234 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
235 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
236 danych. MySQL to implementacja klient/serwer składająca się z demona
237 mysqld i wielu różnych programów i bibliotek klienckich.
239 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
240 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
241 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
242 większą, niż mogli zaoferować inni producenci baz danych. Używają go
243 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
244 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
245 50GB krytycznych danych.
247 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
248 które były używane w bardzo wymagającym środowisku produkcyjnym przez
249 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
250 i użyteczny zbiór funkcji.
252 %description -l de.UTF-8
253 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
254 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
255 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
256 einem Primärschlüssel versehen werden. Es ist aber keine Definition
257 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
258 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
259 Daten verantwortlich. Allein durch die Nutzung externer
260 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
261 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
263 %description -l pt_BR.UTF-8
264 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
265 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
266 dados no mundo. O MySQL é uma implementação cliente/servidor que
267 consiste de um servidor chamado mysqld e diversos
268 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
269 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
270 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
271 pudesse lidar com grandes bases de dados e com uma velocidade muito
272 maior do que a que qualquer vendedor podia nos oferecer. Estamos
273 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
274 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
275 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
276 A base da construção do MySQL é uma série de rotinas que foram usadas
277 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
278 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
279 funções muito ricas e úteis. Veja a documentação para maiores
282 %description -l ru.UTF-8
283 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
284 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
285 дистрибутиве на предмет других участников проекта и прочей информации
288 %description -l uk.UTF-8
289 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
290 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
291 дистрибутиві для інформації про інших учасників проекту та іншої
295 Summary: MySQL - character sets definitions
296 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
297 Group: Applications/Databases
299 %description charsets
300 This package contains character sets definitions needed by both client
303 %description charsets -l pl.UTF-8
304 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
307 %package -n mysqlhotcopy
308 Summary: mysqlhotcopy - A MySQL database backup program
309 Summary(pl.UTF-8): mysqlhotcopy - program do tworzenia kopii zapasowych baz MySQL
310 Group: Applications/Databases
311 Requires: perl-DBD-mysql
313 %description -n mysqlhotcopy
314 mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a
315 database backup quickly. It is the fastest way to make a backup of the
316 database or single tables, but it can be run only on the same machine
317 where the database directories are located. mysqlhotcopy works only
318 for backing up MyISAM and ARCHIVE tables.
320 See innobackup package to backup InnoDB tables.
322 %description -n mysqlhotcopy -l pl.UTF-8
323 mysqlhotcopy wykorzystuje LOCK TABLES, FLUSH TABLES oraz cp i scp do
324 szybkiego tworzenia kopii zapasowych baz danych. Jest to najszybszy
325 sposób wykonania kopii zapasowej bazy danych lub pojedynczych tabel,
326 ale może działać tylko na maszynie, na której znajdują się katalogi z
327 bazą danych. mysqlhotcopy działa tylko dla tabel typu MyISAM i
330 Narzędzie do tworzenia kopii tabel InnoDB znajduje się w pakiecie
334 Summary: MySQL additional utilities
335 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
336 Group: Applications/Databases
337 Requires: %{name}-client = %{version}-%{release}
338 Requires: %{name}-libs = %{version}-%{release}
341 MySQL additional utilities except Perl scripts (they may be found in
342 %{name}-extras-perl package).
344 %description extras -l pl.UTF-8
345 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
346 pakiecie %{name}-extras-perl).
349 Summary: MySQL additional utilities written in Perl
350 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
351 Group: Applications/Databases
352 Requires: %{name}-extras = %{version}-%{release}
353 # this is just for the sake of smooth upgrade, not to break systems
354 Requires: mysqlhotcopy = %{version}-%{release}
355 Requires: perl(DBD::mysql)
357 %description extras-perl
358 MySQL additional utilities written in Perl.
360 %description extras-perl -l pl.UTF-8
361 Dodatkowe narzędzia do MySQL napisane w Perlu.
364 Summary: MySQL - Client
365 Summary(pl.UTF-8): MySQL - Klient
366 Summary(pt.UTF-8): MySQL - Cliente
367 Summary(ru.UTF-8): MySQL клиент
368 Summary(uk.UTF-8): MySQL клієнт
369 Group: Applications/Databases
370 Requires: %{name}-charsets = %{version}-%{release}
371 Requires: %{name}-libs = %{version}-%{release}
372 Obsoletes: MySQL-client
375 This package contains the standard MySQL clients.
377 %description client -l fr.UTF-8
378 Ce package contient les clients MySQL standards.
380 %description client -l pl.UTF-8
381 Standardowe programy klienckie MySQL.
383 %description client -l pt_BR.UTF-8
384 Este pacote contém os clientes padrão para o MySQL.
386 %description client -l ru.UTF-8
387 Этот пакет содержит только клиент MySQL.
389 %description client -l uk.UTF-8
390 Цей пакет містить тільки клієнта MySQL.
393 Summary: Shared libraries for MySQL
394 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
396 Obsoletes: libmysql10
397 Obsoletes: mysql-doc < 4.1.12
400 Shared libraries for MySQL.
402 %description libs -l pl.UTF-8
403 Biblioteki współdzielone MySQL.
406 Summary: MySQL - development header files and other files
407 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
408 Summary(pt.UTF-8): MySQL - Medições de desempenho
409 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
410 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
411 Group: Development/Libraries
412 Requires: %{name}-libs = %{version}-%{release}
413 %{?with_ssl:Requires: openssl-devel}
415 Obsoletes: MySQL-devel
416 Obsoletes: libmysql10-devel
419 This package contains the development header files and other files
420 necessary to develop MySQL client applications.
422 %description devel -l fr.UTF-8
423 Ce package contient les fichiers entetes et les librairies de
424 developpement necessaires pour developper des applications clientes
427 %description devel -l pl.UTF-8
428 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
431 %description devel -l pt_BR.UTF-8
432 Este pacote contém os arquivos de cabeçalho (header files) e
433 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
435 %description devel -l ru.UTF-8
436 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
437 разработки клиентских приложений.
439 %description devel -l uk.UTF-8
440 Цей пакет містить хедери та бібліотеки програміста, необхідні для
441 розробки програм-клієнтів.
444 Summary: MySQL static libraries
445 Summary(pl.UTF-8): Biblioteki statyczne MySQL
446 Summary(ru.UTF-8): MySQL - статические библиотеки
447 Summary(uk.UTF-8): MySQL - статичні бібліотеки
448 Group: Development/Libraries
449 Requires: %{name}-devel = %{version}-%{release}
450 Obsoletes: MySQL-static
453 MySQL static libraries.
455 %description static -l pl.UTF-8
456 Biblioteki statyczne MySQL.
458 %description static -l ru.UTF-8
459 Этот пакет содержит статические библиотеки разработчика, необходимые
460 для разработки клиентских приложений.
462 %description static -l uk.UTF-8
463 Цей пакет містить статичні бібліотеки програміста, необхідні для
464 розробки програм-клієнтів.
467 Summary: MySQL - Benchmarks
468 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
469 Summary(pt.UTF-8): MySQL - Medições de desempenho
470 Summary(ru.UTF-8): MySQL - бенчмарки
471 Summary(uk.UTF-8): MySQL - бенчмарки
472 Group: Applications/Databases
473 Requires: %{name} = %{version}-%{release}
474 Requires: %{name}-client
475 Requires: perl(DBD::mysql)
476 Obsoletes: MySQL-bench
479 This package contains MySQL benchmark scripts and data.
481 %description bench -l pl.UTF-8
482 Programy testujące szybkość serwera MySQL.
484 %description bench -l pt_BR.UTF-8
485 Este pacote contém medições de desempenho de scripts e dados do MySQL.
487 %description bench -l ru.UTF-8
488 Этот пакет содержит скрипты и данные для оценки производительности
491 %description bench -l uk.UTF-8
492 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
495 Summary: MySQL manual
496 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
497 Group: Applications/Databases
500 This package contains manual in HTML format.
502 %description doc -l pl.UTF-8
503 Podręcznik MySQL-a w formacie HTML.
506 Summary: MySQL - NDB Storage Engine Daemon
507 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
508 Group: Applications/Databases
509 Requires: %{name}-libs = %{version}-%{release}
512 This package contains the standard MySQL NDB Storage Engine Daemon.
514 %description ndb -l pl.UTF-8
515 Ten pakiet zawiera standardowego demona silnika przechowywania danych
519 Summary: MySQL - NDB Clients
520 Summary(pl.UTF-8): MySQL - programy klienckie NDB
521 Group: Applications/Databases
522 Requires: %{name}-libs = %{version}-%{release}
524 %description ndb-client
525 This package contains the standard MySQL NDB Clients.
527 %description ndb-client -l pl.UTF-8
528 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
531 Summary: MySQL - NDB Management Daemon
532 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
533 Group: Applications/Databases
534 Requires: %{name}-libs = %{version}-%{release}
537 This package contains the standard MySQL NDB Management Daemon.
539 %description ndb-mgm -l pl.UTF-8
540 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
543 Summary: MySQL - NDB CPC Daemon
544 Summary(pl.UTF-8): MySQL - demon NDB CPC
545 Group: Applications/Databases
546 Requires: %{name}-libs = %{version}-%{release}
549 This package contains the standard MySQL NDB CPC Daemon.
551 %description ndb-cpc -l pl.UTF-8
552 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
555 %setup -q %{?with_sphinx:-a100}
557 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
558 mv sphinx-*/mysqlse storage/sphinx
561 #%patch2 -p1 # NEEDS CHECK, which exact program needs -lc++
640 # to get these files rebuild
647 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
648 # (it defaults to first cluster but user may change it to whatever
651 %if "%{pld_release}" == "ac"
652 # add suffix, but allow ccache, etc in ~/.rpmmacros
653 %{expand:%%define __cc %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
654 %{expand:%%define __cxx %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
655 %{expand:%%define __cpp %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
658 # upstream has fallen down badly on symbol versioning, do it ourselves
660 cp -a %{SOURCE15} libmysql/libmysql.version
663 -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
664 -DFEATURE_SET="community" \
665 -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
666 -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
667 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
668 %{?debug:-DWITH_DEBUG=ON} \
669 -DWITH_FAST_MUTEXES=ON \
672 -DWITH_READLINE=OFF \
673 %if "%{pld_release}" == "ac"
674 -DWITH_SSL=%{?with_ssl:bundled}%{!?with_ssl:no} \
676 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
679 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
680 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
681 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
682 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
683 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
684 -DINSTALL_LAYOUT=RPM \
685 -DINSTALL_MYSQLTESTDIR_RPM="" \
686 -DINSTALL_SQLBENCHDIR=%{_datadir} \
687 -DINSTALL_SUPPORTFILESDIR=%{_datadir}/%{name}-support \
692 %{?with_tests:%{__make} test}
695 rm -rf $RPM_BUILD_ROOT
696 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
697 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
698 $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
700 %{__make} -C build install \
701 DESTDIR=$RPM_BUILD_ROOT
703 cp -a Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
705 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
706 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
707 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
708 # This is template for configuration file which is created after 'service mysql init'
709 cp -a %{SOURCE4} mysqld.conf
710 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
711 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
713 # remove innodb directives from mysqld.conf if mysqld is configured without
714 %if %{without innodb}
715 cp mysqld.conf mysqld.tmp
716 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
719 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
720 cp mysqld.conf mysqld.tmp
721 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
723 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
724 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
725 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
729 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
730 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
731 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
732 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
733 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
734 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
737 # symlinks point to the .so file, fix it
738 ln -sf libmysqlclient.so.18 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.18
739 ln -sf libmysqlclient.so.18.0.0 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.18.0.0
741 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
742 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
744 # remove known unpackaged files
745 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-support
747 # rename not to be so generic name
748 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
749 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
751 # not useful without -debug build
752 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
753 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
754 # generate symbols file, so one can generate backtrace using it
755 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
756 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
757 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
759 # do not clobber users $PATH
760 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_plugin
761 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
762 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
763 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
764 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
765 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
766 #mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
767 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
768 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
769 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
771 # delete - functionality in initscript / rpm
772 # note: mysql_install_db (and thus resolveip) are needed by digikam
773 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
774 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
775 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
776 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
777 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
778 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
779 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg-utf8.txt
780 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
781 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
782 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
783 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
784 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
786 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
787 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
788 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
789 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
790 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
791 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
792 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
795 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
798 rm -rf $RPM_BUILD_ROOT
801 %groupadd -g 89 mysql
802 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
805 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
807 /sbin/chkconfig --add mysql
808 %service mysql restart
811 if [ "$1" = "0" ]; then
812 %service -q mysql stop
813 /sbin/chkconfig --del mysql
817 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
820 if [ "$1" = "0" ]; then
826 /sbin/chkconfig --add mysql-ndb
827 %service mysql-ndb restart "mysql NDB engine"
830 if [ "$1" = "0" ]; then
831 %service mysql-ndb stop
832 /sbin/chkconfig --del mysql-ndb
836 /sbin/chkconfig --add mysql-ndb-mgm
837 %service mysql-ndb-mgm restart "mysql NDB management node"
840 if [ "$1" = "0" ]; then
841 %service mysql-ndb-mgm stop
842 /sbin/chkconfig --del mysql-ndb-mgm
846 /sbin/chkconfig --add mysql-ndb-cpc
847 %service mysql-ndb-cpc restart "mysql NDB CPC"
850 if [ "$1" = "0" ]; then
851 %service mysql-ndb-cpc stop
852 /sbin/chkconfig --del mysql-ndb-cpc
855 %post libs -p /sbin/ldconfig
856 %postun libs -p /sbin/ldconfig
858 %triggerpostun -- mysql < 4.0.20-2.4
859 # For clusters in /etc/%{name}/clusters.conf
860 if [ -f /etc/sysconfig/mysql ]; then
861 . /etc/sysconfig/mysql
862 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
863 for i in "$MYSQL_DB_CLUSTERS"; do
864 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
866 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
867 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
868 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
869 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
873 %triggerpostun -- mysql < 4.1.1
874 # For better compatibility with prevoius versions:
875 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
876 if echo "$config" | grep -q '^/'; then
877 config_file="$config"
878 elif [ -f "/etc/%{name}/$config" ]; then
879 config_file=/etc/%{name}/$config
881 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
882 if [ -z "$clusterdir" ]; then
883 echo >&2 "Can't find cluster dir for $config!"
884 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
887 config_file="$clusterdir/mysqld.conf"
890 if [ ! -f "$config_file" ]; then
891 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
894 echo "Adding option old-passwords to config: $config_file"
895 echo "If you want to use new, better passwords - remove it"
897 # sed magic to add 'old-passwords' to [mysqld] section
898 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
900 a; Compatibility options:
906 %banner -e %{name}-4.1.x <<-EOF
907 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
908 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
912 %triggerpostun -- mysql < 5.1.0
914 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
915 if echo "$config" | grep -q '^/'; then
916 config_file="$config"
917 elif [ -f "/etc/%{name}/$config" ]; then
918 config_file=/etc/%{name}/$config
920 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
921 if [ -z "$clusterdir" ]; then
922 echo >&2 "Can't find cluster dir for $config!"
923 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
926 config_file="$clusterdir/mysqld.conf"
929 if [ ! -f "$config_file" ]; then
930 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/"
933 configs="$configs $config_file"
937 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
938 echo 'Thus, you should invoke:'
939 for config in $configs; do
941 s/set-variable\s*=\s* //
942 # use # as comment in config
946 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
947 echo "# mysql_upgrade --datadir=$datadir"
949 ) | %banner -e %{name}-5.1
951 %triggerpostun -- mysql < 5.5.0
953 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
954 if echo "$config" | grep -q '^/'; then
955 config_file="$config"
956 elif [ -f "/etc/%{name}/$config" ]; then
957 config_file=/etc/%{name}/$config
959 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
960 if [ -z "$clusterdir" ]; then
961 echo >&2 "Can't find cluster dir for $config!"
962 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
965 config_file="$clusterdir/mysqld.conf"
968 if [ ! -f "$config_file" ]; then
969 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/"
972 configs="$configs $config_file"
976 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
977 echo 'Thus, you should invoke:'
978 for config in $configs; do
980 s/^language *= *polish/lc-messages = pl_PL/i
981 s/set-variable\s*=\s* //
982 s/^skip-locking/skip-external-locking/
983 # this is not valid for server. it is client option
984 s/^default-character-set/# client-config: &/
985 # use # as comment in config
989 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
990 echo "# mysql_upgrade ${socket:+--socket=$socket}"
992 ) | %banner -e %{name}-5.5
995 %defattr(644,root,root,755)
996 %doc build/support-files/*.cnf build/support-files/*.ini
997 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
998 %attr(754,root,root) /etc/rc.d/init.d/%{name}
999 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
1000 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
1001 %attr(755,root,root) %{_sbindir}/innochecksum
1002 %attr(755,root,root) %{_sbindir}/my_print_defaults
1003 %attr(755,root,root) %{_sbindir}/myisamchk
1004 %attr(755,root,root) %{_sbindir}/myisamlog
1005 %attr(755,root,root) %{_sbindir}/myisampack
1006 #%attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
1007 %attr(755,root,root) %{_sbindir}/mysql_plugin
1008 %attr(755,root,root) %{_sbindir}/mysql_upgrade
1009 %attr(755,root,root) %{_sbindir}/mysqlcheck
1010 %attr(755,root,root) %{_sbindir}/mysqld
1011 %dir %{_libdir}/%{name}
1012 %dir %{_libdir}/%{name}/plugin
1013 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
1014 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
1015 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
1016 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
1017 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_archive.so
1018 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_blackhole.so
1019 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_federated.so
1020 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
1021 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
1022 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
1023 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
1024 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
1025 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
1027 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
1030 %attr(755,root,root) %{_libdir}/libmysqlservices.so
1031 %{_mandir}/man1/innochecksum.1*
1032 %{_mandir}/man1/my_print_defaults.1*
1033 %{_mandir}/man1/myisamchk.1*
1034 %{_mandir}/man1/myisamlog.1*
1035 %{_mandir}/man1/myisampack.1*
1036 #%{_mandir}/man1/mysql_fix_privilege_tables.1*
1037 %{_mandir}/man1/mysql_plugin.1*
1038 %{_mandir}/man1/mysql_upgrade.1*
1039 %{_mandir}/man1/mysqlcheck.1*
1040 %{_mandir}/man8/mysqld.8*
1043 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
1044 %{_datadir}/%{name}/mysqld.sym
1045 %{_mandir}/man1/*resolve_stack_dump.1*
1048 %attr(700,mysql,mysql) %{_mysqlhome}
1049 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
1050 %attr(751,root,root) /var/lib/mysql
1051 %attr(750,mysql,mysql) %dir /var/log/mysql
1052 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
1053 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
1055 %{_infodir}/mysql.info*
1056 # This is template for configuration file which is created after 'service mysql init'
1057 %{_datadir}/%{name}/mysqld.conf
1058 %{_datadir}/%{name}/mysql_system_tables.sql
1059 %{_datadir}/%{name}/mysql_system_tables_data.sql
1060 %{_datadir}/%{name}/mysql_test_data_timezone.sql
1062 %{_datadir}/%{name}/english
1063 %{_datadir}/%{name}/fill_help_tables.sql
1064 #%{_datadir}/%{name}/mysql_fix_privilege_tables.sql
1065 %lang(cs) %{_datadir}/%{name}/czech
1066 %lang(da) %{_datadir}/%{name}/danish
1067 %lang(de) %{_datadir}/%{name}/german
1068 %lang(el) %{_datadir}/%{name}/greek
1069 %lang(es) %{_datadir}/%{name}/spanish
1070 %lang(et) %{_datadir}/%{name}/estonian
1071 %lang(fr) %{_datadir}/%{name}/french
1072 %lang(hu) %{_datadir}/%{name}/hungarian
1073 %lang(it) %{_datadir}/%{name}/italian
1074 %lang(ja) %{_datadir}/%{name}/japanese
1075 %lang(ko) %{_datadir}/%{name}/korean
1076 %lang(nl) %{_datadir}/%{name}/dutch
1077 %lang(nb) %{_datadir}/%{name}/norwegian
1078 %lang(nn) %{_datadir}/%{name}/norwegian-ny
1079 %lang(pl) %{_datadir}/%{name}/polish
1080 %lang(pt) %{_datadir}/%{name}/portuguese
1081 %lang(ro) %{_datadir}/%{name}/romanian
1082 %lang(ru) %{_datadir}/%{name}/russian
1083 %lang(sr) %{_datadir}/%{name}/serbian
1084 %lang(sk) %{_datadir}/%{name}/slovak
1085 %lang(sv) %{_datadir}/%{name}/swedish
1086 %lang(uk) %{_datadir}/%{name}/ukrainian
1089 %defattr(644,root,root,755)
1090 %dir %{_datadir}/mysql
1091 %{_datadir}/%{name}/charsets
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_bindir}/msql2mysql
1096 %attr(755,root,root) %{_bindir}/myisam_ftdump
1097 %attr(755,root,root) %{_bindir}/mysql_install_db
1098 %attr(755,root,root) %{_bindir}/mysql_secure_installation
1099 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
1100 %attr(755,root,root) %{_bindir}/perror
1101 %attr(755,root,root) %{_bindir}/replace
1102 %attr(755,root,root) %{_bindir}/resolveip
1103 %{_mandir}/man1/msql2mysql.1*
1104 %{_mandir}/man1/myisam_ftdump.1*
1105 %{_mandir}/man1/mysql_install_db.1*
1106 %{_mandir}/man1/mysql_secure_installation.1*
1107 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1108 %{_mandir}/man1/perror.1*
1109 %{_mandir}/man1/replace.1*
1110 %{_mandir}/man1/resolveip.1*
1112 %files -n mysqlhotcopy
1113 %defattr(644,root,root,755)
1114 %attr(755,root,root) %{_bindir}/mysqlhotcopy
1115 %{_mandir}/man1/mysqlhotcopy.1*
1118 %defattr(644,root,root,755)
1119 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
1120 %attr(755,root,root) %{_bindir}/mysql_find_rows
1121 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
1122 %attr(755,root,root) %{_bindir}/mysql_setpermission
1123 %attr(755,root,root) %{_bindir}/mysql_zap
1124 %attr(755,root,root) %{_bindir}/mysqlaccess
1125 %attr(755,root,root) %{_bindir}/mysqldumpslow
1126 %{_mandir}/man1/mysql_convert_table_format.1*
1127 %{_mandir}/man1/mysql_find_rows.1*
1128 %{_mandir}/man1/mysql_fix_extensions.1*
1129 %{_mandir}/man1/mysql_setpermission.1*
1130 %{_mandir}/man1/mysql_zap.1*
1131 %{_mandir}/man1/mysqlaccess.1*
1132 %{_mandir}/man1/mysqldumpslow.1*
1135 %defattr(644,root,root,755)
1136 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
1137 %attr(755,root,root) %{_bindir}/mysql
1138 %attr(755,root,root) %{_bindir}/mysqladmin
1139 %attr(755,root,root) %{_bindir}/mysqlbinlog
1140 %attr(755,root,root) %{_bindir}/mysqlbug
1141 %attr(755,root,root) %{_bindir}/mysqldump
1142 %attr(755,root,root) %{_bindir}/mysqlimport
1143 %attr(755,root,root) %{_bindir}/mysqlshow
1144 %{_mandir}/man1/mysql.1*
1145 %{_mandir}/man1/mysqladmin.1*
1146 %{_mandir}/man1/mysqlbinlog.1*
1147 %{_mandir}/man1/mysqlbug.1*
1148 %{_mandir}/man1/mysqldump.1*
1149 %{_mandir}/man1/mysqlimport.1*
1150 %{_mandir}/man1/mysqlshow.1*
1153 %defattr(644,root,root,755)
1154 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1155 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1156 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1157 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.18
1158 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.*
1159 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.18
1161 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1162 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1166 %defattr(644,root,root,755)
1167 %attr(755,root,root) %{_bindir}/mysql_config
1168 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1169 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1171 %attr(755,root,root) %{_libdir}/libndbclient.so
1173 %{_includedir}/mysql
1174 %{_aclocaldir}/mysql.m4
1175 %{_mandir}/man1/mysql_config.1*
1178 %defattr(644,root,root,755)
1179 %{_libdir}/libmysqlclient.a
1180 %{_libdir}/libmysqlclient_r.a
1182 %{_libdir}/libndbclient.a
1186 %defattr(644,root,root,755)
1187 %attr(755,root,root) %{_bindir}/mysqlslap
1188 %attr(755,root,root) %{_bindir}/mysqltest
1189 %dir %{_datadir}/sql-bench
1190 %{_datadir}/sql-bench/[CDRl]*
1191 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1192 %{_mandir}/man1/mysqlslap.1*
1193 %{_mandir}/man1/mysqltest.1*
1194 %{_mandir}/man1/mysqltest_embedded.1*
1197 #%defattr(644,root,root,755)
1198 #%doc Docs/manual.html Docs/manual_toc.html
1202 %defattr(644,root,root,755)
1203 %attr(755,root,root) %{_sbindir}/ndbd
1204 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1205 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1206 %{_mandir}/man1/ndbd_redo_log_reader.1*
1207 %{_mandir}/man8/ndbd.8*
1210 %defattr(644,root,root,755)
1211 %attr(755,root,root) %{_bindir}/ndb_config
1212 %attr(755,root,root) %{_bindir}/ndb_delete_all
1213 %attr(755,root,root) %{_bindir}/ndb_desc
1214 %attr(755,root,root) %{_bindir}/ndb_drop_index
1215 %attr(755,root,root) %{_bindir}/ndb_drop_table
1216 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1217 %attr(755,root,root) %{_bindir}/ndb_mgm
1218 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1219 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1220 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1221 %attr(755,root,root) %{_bindir}/ndb_restore
1222 %attr(755,root,root) %{_bindir}/ndb_select_all
1223 %attr(755,root,root) %{_bindir}/ndb_select_count
1224 %attr(755,root,root) %{_bindir}/ndb_show_tables
1225 %attr(755,root,root) %{_bindir}/ndb_size.pl
1226 %attr(755,root,root) %{_bindir}/ndb_test_platform
1227 %attr(755,root,root) %{_bindir}/ndb_waiter
1228 %{_mandir}/man1/ndb_config.1*
1229 %{_mandir}/man1/ndb_delete_all.1*
1230 %{_mandir}/man1/ndb_desc.1*
1231 %{_mandir}/man1/ndb_drop_index.1*
1232 %{_mandir}/man1/ndb_drop_table.1*
1233 %{_mandir}/man1/ndb_error_reporter.1*
1234 %{_mandir}/man1/ndb_mgm.1*
1235 %{_mandir}/man1/ndb_print_backup_file.1*
1236 %{_mandir}/man1/ndb_print_schema_file.1*
1237 %{_mandir}/man1/ndb_print_sys_file.1*
1238 %{_mandir}/man1/ndb_restore.1*
1239 %{_mandir}/man1/ndb_select_all.1*
1240 %{_mandir}/man1/ndb_select_count.1*
1241 %{_mandir}/man1/ndb_show_tables.1*
1242 %{_mandir}/man1/ndb_size.pl.1*
1243 %{_mandir}/man1/ndb_waiter.1*
1246 %defattr(644,root,root,755)
1247 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1248 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1249 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1250 %{_mandir}/man8/ndb_mgmd.8*
1253 %defattr(644,root,root,755)
1254 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1255 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1256 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1257 %{_mandir}/man1/ndb_cpcd.1*