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