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