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 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
669 %{?debug:-DWITH_DEBUG=ON} \
670 -DWITH_FAST_MUTEXES=ON \
673 -DWITH_READLINE=OFF \
674 %if "%{pld_release}" == "ac"
675 -DWITH_SSL=%{?with_ssl:bundled}%{!?with_ssl:no} \
677 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
680 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
681 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
682 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
683 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
684 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
685 -DINSTALL_LAYOUT=RPM \
686 -DINSTALL_MYSQLTESTDIR_RPM="" \
687 -DINSTALL_SQLBENCHDIR=%{_datadir} \
688 -DINSTALL_SUPPORTFILESDIR=%{_datadir}/%{name}-support \
693 %{?with_tests:%{__make} test}
696 rm -rf $RPM_BUILD_ROOT
697 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
698 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
699 $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
701 %{__make} -C build install \
702 DESTDIR=$RPM_BUILD_ROOT
704 cp -a Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
706 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
707 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
708 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
709 # This is template for configuration file which is created after 'service mysql init'
710 cp -a %{SOURCE4} mysqld.conf
711 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
712 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
714 # remove innodb directives from mysqld.conf if mysqld is configured without
715 %if %{without innodb}
716 cp mysqld.conf mysqld.tmp
717 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
720 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
721 cp mysqld.conf mysqld.tmp
722 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
724 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
725 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
726 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
730 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
731 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
732 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
733 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
734 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
735 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
738 # symlinks point to the .so file, fix it
739 ln -sf libmysqlclient.so.18 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.18
740 ln -sf libmysqlclient.so.18.0.0 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.18.0.0
742 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
743 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
745 # remove known unpackaged files
746 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-support
748 # rename not to be so generic name
749 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
750 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
752 # not useful without -debug build
753 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
754 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
755 # generate symbols file, so one can generate backtrace using it
756 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
757 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
758 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
760 # do not clobber users $PATH
761 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_plugin
762 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
763 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
764 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
765 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
766 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
767 #mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
768 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
769 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
770 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
772 # delete - functionality in initscript / rpm
773 # note: mysql_install_db (and thus resolveip) are needed by digikam
774 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
775 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
776 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
777 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
778 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
779 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
780 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg-utf8.txt
781 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
782 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
783 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
784 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
785 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
787 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
788 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
789 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
790 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
791 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
792 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
793 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
796 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
799 rm -rf $RPM_BUILD_ROOT
802 %groupadd -g 89 mysql
803 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
806 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
808 /sbin/chkconfig --add mysql
809 %service mysql restart
812 if [ "$1" = "0" ]; then
813 %service -q mysql stop
814 /sbin/chkconfig --del mysql
818 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
821 if [ "$1" = "0" ]; then
827 /sbin/chkconfig --add mysql-ndb
828 %service mysql-ndb restart "mysql NDB engine"
831 if [ "$1" = "0" ]; then
832 %service mysql-ndb stop
833 /sbin/chkconfig --del mysql-ndb
837 /sbin/chkconfig --add mysql-ndb-mgm
838 %service mysql-ndb-mgm restart "mysql NDB management node"
841 if [ "$1" = "0" ]; then
842 %service mysql-ndb-mgm stop
843 /sbin/chkconfig --del mysql-ndb-mgm
847 /sbin/chkconfig --add mysql-ndb-cpc
848 %service mysql-ndb-cpc restart "mysql NDB CPC"
851 if [ "$1" = "0" ]; then
852 %service mysql-ndb-cpc stop
853 /sbin/chkconfig --del mysql-ndb-cpc
856 %post libs -p /sbin/ldconfig
857 %postun libs -p /sbin/ldconfig
859 %triggerpostun -- mysql < 4.0.20-2.4
860 # For clusters in /etc/%{name}/clusters.conf
861 if [ -f /etc/sysconfig/mysql ]; then
862 . /etc/sysconfig/mysql
863 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
864 for i in "$MYSQL_DB_CLUSTERS"; do
865 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
867 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
868 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
869 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
870 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
874 %triggerpostun -- mysql < 4.1.1
875 # For better compatibility with prevoius versions:
876 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
877 if echo "$config" | grep -q '^/'; then
878 config_file="$config"
879 elif [ -f "/etc/%{name}/$config" ]; then
880 config_file=/etc/%{name}/$config
882 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
883 if [ -z "$clusterdir" ]; then
884 echo >&2 "Can't find cluster dir for $config!"
885 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
888 config_file="$clusterdir/mysqld.conf"
891 if [ ! -f "$config_file" ]; then
892 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
895 echo "Adding option old-passwords to config: $config_file"
896 echo "If you want to use new, better passwords - remove it"
898 # sed magic to add 'old-passwords' to [mysqld] section
899 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
901 a; Compatibility options:
907 %banner -e %{name}-4.1.x <<-EOF
908 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
909 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
913 %triggerpostun -- mysql < 5.1.0
915 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
916 if echo "$config" | grep -q '^/'; then
917 config_file="$config"
918 elif [ -f "/etc/%{name}/$config" ]; then
919 config_file=/etc/%{name}/$config
921 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
922 if [ -z "$clusterdir" ]; then
923 echo >&2 "Can't find cluster dir for $config!"
924 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
927 config_file="$clusterdir/mysqld.conf"
930 if [ ! -f "$config_file" ]; then
931 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/"
934 configs="$configs $config_file"
938 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
939 echo 'Thus, you should invoke:'
940 for config in $configs; do
942 s/set-variable\s*=\s* //
943 # use # as comment in config
947 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
948 echo "# mysql_upgrade --datadir=$datadir"
950 ) | %banner -e %{name}-5.1
952 %triggerpostun -- mysql < 5.5.0
954 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
955 if echo "$config" | grep -q '^/'; then
956 config_file="$config"
957 elif [ -f "/etc/%{name}/$config" ]; then
958 config_file=/etc/%{name}/$config
960 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
961 if [ -z "$clusterdir" ]; then
962 echo >&2 "Can't find cluster dir for $config!"
963 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
966 config_file="$clusterdir/mysqld.conf"
969 if [ ! -f "$config_file" ]; then
970 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/"
973 configs="$configs $config_file"
977 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
978 echo 'Thus, you should invoke:'
979 for config in $configs; do
981 s/^language *= *polish/lc-messages = pl_PL/i
982 s/set-variable\s*=\s* //
983 s/^skip-locking/skip-external-locking/
984 # this is not valid for server. it is client option
985 s/^default-character-set/# client-config: &/
986 # use # as comment in config
990 socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
991 echo "# mysql_upgrade ${socket:+--socket=$socket}"
993 ) | %banner -e %{name}-5.5
996 %defattr(644,root,root,755)
997 %doc build/support-files/*.cnf build/support-files/*.ini
998 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
999 %attr(754,root,root) /etc/rc.d/init.d/%{name}
1000 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
1001 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
1002 %attr(755,root,root) %{_sbindir}/innochecksum
1003 %attr(755,root,root) %{_sbindir}/my_print_defaults
1004 %attr(755,root,root) %{_sbindir}/myisamchk
1005 %attr(755,root,root) %{_sbindir}/myisamlog
1006 %attr(755,root,root) %{_sbindir}/myisampack
1007 #%attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
1008 %attr(755,root,root) %{_sbindir}/mysql_plugin
1009 %attr(755,root,root) %{_sbindir}/mysql_upgrade
1010 %attr(755,root,root) %{_sbindir}/mysqlcheck
1011 %attr(755,root,root) %{_sbindir}/mysqld
1012 %dir %{_libdir}/%{name}
1013 %dir %{_libdir}/%{name}/plugin
1014 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
1015 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
1016 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
1017 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
1018 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_archive.so
1019 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_blackhole.so
1020 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_federated.so
1021 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
1022 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
1023 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
1024 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
1025 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
1026 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
1028 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
1031 %attr(755,root,root) %{_libdir}/libmysqlservices.so
1032 %{_mandir}/man1/innochecksum.1*
1033 %{_mandir}/man1/my_print_defaults.1*
1034 %{_mandir}/man1/myisamchk.1*
1035 %{_mandir}/man1/myisamlog.1*
1036 %{_mandir}/man1/myisampack.1*
1037 #%{_mandir}/man1/mysql_fix_privilege_tables.1*
1038 %{_mandir}/man1/mysql_plugin.1*
1039 %{_mandir}/man1/mysql_upgrade.1*
1040 %{_mandir}/man1/mysqlcheck.1*
1041 %{_mandir}/man8/mysqld.8*
1044 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
1045 %{_datadir}/%{name}/mysqld.sym
1046 %{_mandir}/man1/*resolve_stack_dump.1*
1049 %attr(700,mysql,mysql) %{_mysqlhome}
1050 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
1051 %attr(751,root,root) /var/lib/mysql
1052 %attr(750,mysql,mysql) %dir /var/log/mysql
1053 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
1054 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
1056 %{_infodir}/mysql.info*
1057 # This is template for configuration file which is created after 'service mysql init'
1058 %{_datadir}/%{name}/mysqld.conf
1059 %{_datadir}/%{name}/mysql_system_tables.sql
1060 %{_datadir}/%{name}/mysql_system_tables_data.sql
1061 %{_datadir}/%{name}/mysql_test_data_timezone.sql
1063 %{_datadir}/%{name}/english
1064 %{_datadir}/%{name}/fill_help_tables.sql
1065 #%{_datadir}/%{name}/mysql_fix_privilege_tables.sql
1066 %lang(cs) %{_datadir}/%{name}/czech
1067 %lang(da) %{_datadir}/%{name}/danish
1068 %lang(de) %{_datadir}/%{name}/german
1069 %lang(el) %{_datadir}/%{name}/greek
1070 %lang(es) %{_datadir}/%{name}/spanish
1071 %lang(et) %{_datadir}/%{name}/estonian
1072 %lang(fr) %{_datadir}/%{name}/french
1073 %lang(hu) %{_datadir}/%{name}/hungarian
1074 %lang(it) %{_datadir}/%{name}/italian
1075 %lang(ja) %{_datadir}/%{name}/japanese
1076 %lang(ko) %{_datadir}/%{name}/korean
1077 %lang(nl) %{_datadir}/%{name}/dutch
1078 %lang(nb) %{_datadir}/%{name}/norwegian
1079 %lang(nn) %{_datadir}/%{name}/norwegian-ny
1080 %lang(pl) %{_datadir}/%{name}/polish
1081 %lang(pt) %{_datadir}/%{name}/portuguese
1082 %lang(ro) %{_datadir}/%{name}/romanian
1083 %lang(ru) %{_datadir}/%{name}/russian
1084 %lang(sr) %{_datadir}/%{name}/serbian
1085 %lang(sk) %{_datadir}/%{name}/slovak
1086 %lang(sv) %{_datadir}/%{name}/swedish
1087 %lang(uk) %{_datadir}/%{name}/ukrainian
1090 %defattr(644,root,root,755)
1091 %dir %{_datadir}/mysql
1092 %{_datadir}/%{name}/charsets
1095 %defattr(644,root,root,755)
1096 %attr(755,root,root) %{_bindir}/msql2mysql
1097 %attr(755,root,root) %{_bindir}/myisam_ftdump
1098 %attr(755,root,root) %{_bindir}/mysql_install_db
1099 %attr(755,root,root) %{_bindir}/mysql_secure_installation
1100 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
1101 %attr(755,root,root) %{_bindir}/perror
1102 %attr(755,root,root) %{_bindir}/replace
1103 %attr(755,root,root) %{_bindir}/resolveip
1104 %{_mandir}/man1/msql2mysql.1*
1105 %{_mandir}/man1/myisam_ftdump.1*
1106 %{_mandir}/man1/mysql_install_db.1*
1107 %{_mandir}/man1/mysql_secure_installation.1*
1108 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1109 %{_mandir}/man1/perror.1*
1110 %{_mandir}/man1/replace.1*
1111 %{_mandir}/man1/resolveip.1*
1113 %files -n mysqlhotcopy
1114 %defattr(644,root,root,755)
1115 %attr(755,root,root) %{_bindir}/mysqlhotcopy
1116 %{_mandir}/man1/mysqlhotcopy.1*
1119 %defattr(644,root,root,755)
1120 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
1121 %attr(755,root,root) %{_bindir}/mysql_find_rows
1122 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
1123 %attr(755,root,root) %{_bindir}/mysql_setpermission
1124 %attr(755,root,root) %{_bindir}/mysql_zap
1125 %attr(755,root,root) %{_bindir}/mysqlaccess
1126 %attr(755,root,root) %{_bindir}/mysqldumpslow
1127 %{_mandir}/man1/mysql_convert_table_format.1*
1128 %{_mandir}/man1/mysql_find_rows.1*
1129 %{_mandir}/man1/mysql_fix_extensions.1*
1130 %{_mandir}/man1/mysql_setpermission.1*
1131 %{_mandir}/man1/mysql_zap.1*
1132 %{_mandir}/man1/mysqlaccess.1*
1133 %{_mandir}/man1/mysqldumpslow.1*
1136 %defattr(644,root,root,755)
1137 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
1138 %attr(755,root,root) %{_bindir}/mysql
1139 %attr(755,root,root) %{_bindir}/mysqladmin
1140 %attr(755,root,root) %{_bindir}/mysqlbinlog
1141 %attr(755,root,root) %{_bindir}/mysqlbug
1142 %attr(755,root,root) %{_bindir}/mysqldump
1143 %attr(755,root,root) %{_bindir}/mysqlimport
1144 %attr(755,root,root) %{_bindir}/mysqlshow
1145 %{_mandir}/man1/mysql.1*
1146 %{_mandir}/man1/mysqladmin.1*
1147 %{_mandir}/man1/mysqlbinlog.1*
1148 %{_mandir}/man1/mysqlbug.1*
1149 %{_mandir}/man1/mysqldump.1*
1150 %{_mandir}/man1/mysqlimport.1*
1151 %{_mandir}/man1/mysqlshow.1*
1154 %defattr(644,root,root,755)
1155 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1156 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1157 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1158 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.18
1159 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.*
1160 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.18
1162 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1163 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1167 %defattr(644,root,root,755)
1168 %attr(755,root,root) %{_bindir}/mysql_config
1169 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1170 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1172 %attr(755,root,root) %{_libdir}/libndbclient.so
1174 %{_includedir}/mysql
1175 %{_aclocaldir}/mysql.m4
1176 %{_mandir}/man1/mysql_config.1*
1179 %defattr(644,root,root,755)
1180 %{_libdir}/libmysqlclient.a
1181 %{_libdir}/libmysqlclient_r.a
1183 %{_libdir}/libndbclient.a
1187 %defattr(644,root,root,755)
1188 %attr(755,root,root) %{_bindir}/mysqlslap
1189 %attr(755,root,root) %{_bindir}/mysqltest
1190 %dir %{_datadir}/sql-bench
1191 %{_datadir}/sql-bench/[CDRl]*
1192 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1193 %{_mandir}/man1/mysqlslap.1*
1194 %{_mandir}/man1/mysqltest.1*
1195 %{_mandir}/man1/mysqltest_embedded.1*
1198 #%defattr(644,root,root,755)
1199 #%doc Docs/manual.html Docs/manual_toc.html
1203 %defattr(644,root,root,755)
1204 %attr(755,root,root) %{_sbindir}/ndbd
1205 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1206 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1207 %{_mandir}/man1/ndbd_redo_log_reader.1*
1208 %{_mandir}/man8/ndbd.8*
1211 %defattr(644,root,root,755)
1212 %attr(755,root,root) %{_bindir}/ndb_config
1213 %attr(755,root,root) %{_bindir}/ndb_delete_all
1214 %attr(755,root,root) %{_bindir}/ndb_desc
1215 %attr(755,root,root) %{_bindir}/ndb_drop_index
1216 %attr(755,root,root) %{_bindir}/ndb_drop_table
1217 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1218 %attr(755,root,root) %{_bindir}/ndb_mgm
1219 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1220 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1221 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1222 %attr(755,root,root) %{_bindir}/ndb_restore
1223 %attr(755,root,root) %{_bindir}/ndb_select_all
1224 %attr(755,root,root) %{_bindir}/ndb_select_count
1225 %attr(755,root,root) %{_bindir}/ndb_show_tables
1226 %attr(755,root,root) %{_bindir}/ndb_size.pl
1227 %attr(755,root,root) %{_bindir}/ndb_test_platform
1228 %attr(755,root,root) %{_bindir}/ndb_waiter
1229 %{_mandir}/man1/ndb_config.1*
1230 %{_mandir}/man1/ndb_delete_all.1*
1231 %{_mandir}/man1/ndb_desc.1*
1232 %{_mandir}/man1/ndb_drop_index.1*
1233 %{_mandir}/man1/ndb_drop_table.1*
1234 %{_mandir}/man1/ndb_error_reporter.1*
1235 %{_mandir}/man1/ndb_mgm.1*
1236 %{_mandir}/man1/ndb_print_backup_file.1*
1237 %{_mandir}/man1/ndb_print_schema_file.1*
1238 %{_mandir}/man1/ndb_print_sys_file.1*
1239 %{_mandir}/man1/ndb_restore.1*
1240 %{_mandir}/man1/ndb_select_all.1*
1241 %{_mandir}/man1/ndb_select_count.1*
1242 %{_mandir}/man1/ndb_show_tables.1*
1243 %{_mandir}/man1/ndb_size.pl.1*
1244 %{_mandir}/man1/ndb_waiter.1*
1247 %defattr(644,root,root,755)
1248 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1249 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1250 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1251 %{_mandir}/man8/ndb_mgmd.8*
1254 %defattr(644,root,root,755)
1255 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1256 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1257 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1258 %{_mandir}/man1/ndb_cpcd.1*