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