3 # /usr/bin/mysqlaccess.conf
4 # /usr/data/mysql/.empty
5 # /usr/data/test/.empty
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_with 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: 701c0c44b7f1c2300adc0dc45729f903
45 Source100: http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
46 # Source100-md5: 7b9b618cb9b378f949bb1b91ddcc4f54
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
64 Patch4: %{name}-sql-cxx-pic.patch
66 Patch5: %{name}-versioning.patch
67 Patch6: %{name}-system-users.patch
68 Patch7: %{name}-bug-34192.patch
69 Patch8: %{name}-client-config.patch
70 Patch9: %{name}-build.patch
71 Patch10: %{name}-alpha.patch
72 Patch11: %{name}-upgrade.patch
73 Patch12: %{name}-config.patch
74 Patch14: %{name}-bug-43594.patch
75 Patch18: %{name}-sphinx.patch
76 Patch19: %{name}-chain-certs.patch
77 # <percona patches, updated with percona.sh>
78 Patch100: microsec_process.patch
79 Patch101: optimizer_fix.patch
80 Patch102: control_online_alter_index.patch
81 Patch103: show_temp.patch
82 Patch104: innodb_show_status.patch
83 Patch105: innodb_io_patches.patch
84 Patch106: innodb_opt_lru_count.patch
85 Patch107: innodb_extra_rseg.patch
86 Patch108: innodb_overwrite_relay_log_info.patch
87 Patch109: innodb_thread_concurrency_timer_based.patch
88 Patch110: innodb_dict_size_limit.patch
89 Patch111: innodb_split_buf_pool_mutex.patch
90 Patch112: innodb_expand_import.patch
91 Patch113: innodb_show_sys_tables.patch
92 Patch114: innodb_stats.patch
93 Patch115: innodb_recovery_patches.patch
94 Patch116: innodb_admin_command_base.patch
95 Patch117: innodb_show_lock_name.patch
96 Patch118: innodb_extend_slow.patch
97 Patch119: innodb_lru_dump_restore.patch
98 Patch120: innodb_separate_doublewrite.patch
99 Patch121: innodb_pass_corrupt_table.patch
100 Patch122: innodb_fast_checksum.patch
101 Patch123: innodb_files_extend.patch
102 Patch124: innodb_fix_misc.patch
103 Patch125: innodb_deadlock_count.patch
104 Patch126: innodb_adaptive_hash_index_partitions.patch
105 Patch127: innodb_buffer_pool_pages_i_s.patch
106 Patch128: innodb_buffer_pool_shm.patch
107 Patch129: innodb_show_status_extend.patch
108 Patch130: slow_extended.patch
109 Patch131: percona_support.patch
110 Patch132: query_cache_enhance.patch
111 Patch133: log_connection_error.patch
112 Patch134: mysql_syslog.patch
113 Patch135: response_time_distribution.patch
114 Patch136: error_pad.patch
115 Patch137: remove_fcntl_excessive_calls.patch
116 Patch138: sql_no_fcache.patch
117 Patch139: show_slave_status_nolock.patch
118 Patch140: log_warnings_suppress.patch
119 Patch141: userstat.patch
120 Patch142: bug580324.patch
121 Patch143: mysql_remove_eol_carret.patch
123 URL: http://www.mysql.com/products/community/
125 BuildRequires: cmake >= 2.6
127 %if "%{pld_release}" == "ac"
128 BuildRequires: libstdc++4-devel >= 5:4.0
130 BuildRequires: libstdc++-devel >= 5:4.0
132 BuildRequires: libtool
133 %{?with_tcpd:BuildRequires: libwrap-devel}
134 BuildRequires: ncurses-devel >= 4.2
135 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
136 %{?with_autodeps:BuildRequires: perl-DBI}
137 BuildRequires: perl-devel >= 1:5.6.1
138 BuildRequires: readline-devel >= 4.2
139 BuildRequires: rpm-perlprov >= 4.1-13
140 BuildRequires: rpmbuild(macros) >= 1.597
141 BuildRequires: sed >= 4.0
142 BuildRequires: zlib-devel
143 Requires(post,preun): /sbin/chkconfig
144 Requires(postun): /usr/sbin/groupdel
145 Requires(postun): /usr/sbin/userdel
146 Requires(pre): /bin/id
147 Requires(pre): /usr/bin/getgid
148 Requires(pre): /usr/sbin/groupadd
149 Requires(pre): /usr/sbin/useradd
150 Requires(triggerpostun): sed >= 4.0
151 Requires: %{name}-charsets = %{version}-%{release}
152 Requires: %{name}-libs = %{version}-%{release}
153 Requires: /usr/bin/setsid
154 Requires: rc-scripts >= 0.2.0
155 Suggests: mysql-client
156 %{?with_tcpd:Suggests: tcp_wrappers}
157 Suggests: vim-syntax-mycnf
158 Provides: MySQL-server
159 Provides: group(mysql)
160 Provides: msqlormysql
161 Provides: user(mysql)
163 Obsoletes: mysql-server
164 Conflicts: logrotate < 3.7-4
165 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
167 %define _libexecdir %{_sbindir}
168 %define _localstatedir /var/lib/mysql
169 %define _mysqlhome /home/services/mysql
171 %define _noautoreqdep 'perl(DBD::mysql)'
174 MySQL is a true multi-user, multi-threaded SQL (Structured Query
175 Language) database server. SQL is the most popular database language
176 in the world. MySQL is a client/server implementation that consists of
177 a server daemon mysqld and many different client programs/libraries.
179 The main goals of MySQL are speed, robustness and easy to use. MySQL
180 was originally developed because we at Tcx needed a SQL server that
181 could handle very big databases with magnitude higher speed than what
182 any database vendor could offer to us. We have now been using MySQL
183 since 1996 in a environment with more than 40 databases, 10,000
184 tables, of which more than 500 have more than 7 million rows. This is
185 about 50G of mission critical data.
187 The base upon which MySQL is built is a set of routines that have been
188 used in a highly demanding production environment for many years.
189 While MySQL is still in development, it already offers a rich and
190 highly useful function set.
192 %description -l fr.UTF-8
193 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
194 multi-taches. Le langage SQL est le langage de bases de donnees le
195 plus populaire au monde. MySQL est une implementation client/serveur
196 qui consiste en un serveur (mysqld) et differents
197 programmes/bibliotheques clientes.
199 Les objectifs principaux de MySQL sont: vitesse, robustesse et
200 facilite d'utilisation. MySQL fut originalement developpe parce que
201 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
202 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
203 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
204 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
205 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
206 millions de lignes. Ceci represente environ 50G de donnees critiques.
208 A la base de la conception de MySQL, on retrouve une serie de routines
209 qui ont ete utilisees dans un environnement de production pendant
210 plusieurs annees. Meme si MySQL est encore en developpement, il offre
211 deja une riche et utile serie de fonctions.
213 %description -l pl.UTF-8
214 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
215 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
216 danych. MySQL to implementacja klient/serwer składająca się z demona
217 mysqld i wielu różnych programów i bibliotek klienckich.
219 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
220 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
221 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
222 większą, niż mogli zaoferować inni producenci baz danych. Używają go
223 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
224 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
225 50GB krytycznych danych.
227 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
228 które były używane w bardzo wymagającym środowisku produkcyjnym przez
229 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
230 i użyteczny zbiór funkcji.
232 %description -l de.UTF-8
233 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
234 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
235 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
236 einem Primärschlüssel versehen werden. Es ist aber keine Definition
237 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
238 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
239 Daten verantwortlich. Allein durch die Nutzung externer
240 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
241 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
243 %description -l pt_BR.UTF-8
244 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
245 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
246 dados no mundo. O MySQL é uma implementação cliente/servidor que
247 consiste de um servidor chamado mysqld e diversos
248 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
249 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
250 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
251 pudesse lidar com grandes bases de dados e com uma velocidade muito
252 maior do que a que qualquer vendedor podia nos oferecer. Estamos
253 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
254 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
255 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
256 A base da construção do MySQL é uma série de rotinas que foram usadas
257 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
258 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
259 funções muito ricas e úteis. Veja a documentação para maiores
262 %description -l ru.UTF-8
263 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
264 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
265 дистрибутиве на предмет других участников проекта и прочей информации
268 %description -l uk.UTF-8
269 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
270 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
271 дистрибутиві для інформації про інших учасників проекту та іншої
275 Summary: MySQL - character sets definitions
276 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
277 Group: Applications/Databases
279 %description charsets
280 This package contains character sets definitions needed by both client
283 %description charsets -l pl.UTF-8
284 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
287 %package -n mysqlhotcopy
288 Summary: mysqlhotcopy - A MySQL database backup program
289 Summary(pl.UTF-8): mysqlhotcopy - program do tworzenia kopii zapasowych baz MySQL
290 Group: Applications/Databases
291 Requires: perl-DBD-mysql
293 %description -n mysqlhotcopy
294 mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a
295 database backup quickly. It is the fastest way to make a backup of the
296 database or single tables, but it can be run only on the same machine
297 where the database directories are located. mysqlhotcopy works only
298 for backing up MyISAM and ARCHIVE tables.
300 See innobackup package to backup InnoDB tables.
302 %description -n mysqlhotcopy -l pl.UTF-8
303 mysqlhotcopy wykorzystuje LOCK TABLES, FLUSH TABLES oraz cp i scp do
304 szybkiego tworzenia kopii zapasowych baz danych. Jest to najszybszy
305 sposób wykonania kopii zapasowej bazy danych lub pojedynczych tabel,
306 ale może działać tylko na maszynie, na której znajdują się katalogi z
307 bazą danych. mysqlhotcopy działa tylko dla tabel typu MyISAM i
310 Narzędzie do tworzenia kopii tabel InnoDB znajduje się w pakiecie
314 Summary: MySQL additional utilities
315 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
316 Group: Applications/Databases
317 Requires: %{name}-client = %{version}-%{release}
318 Requires: %{name}-libs = %{version}-%{release}
321 MySQL additional utilities except Perl scripts (they may be found in
322 %{name}-extras-perl package).
324 %description extras -l pl.UTF-8
325 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
326 pakiecie %{name}-extras-perl).
329 Summary: MySQL additional utilities written in Perl
330 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
331 Group: Applications/Databases
332 Requires: %{name}-extras = %{version}-%{release}
333 # this is just for the sake of smooth upgrade, not to break systems
334 Requires: mysqlhotcopy = %{version}-%{release}
335 Requires: perl(DBD::mysql)
337 %description extras-perl
338 MySQL additional utilities written in Perl.
340 %description extras-perl -l pl.UTF-8
341 Dodatkowe narzędzia do MySQL napisane w Perlu.
344 Summary: MySQL - Client
345 Summary(pl.UTF-8): MySQL - Klient
346 Summary(pt.UTF-8): MySQL - Cliente
347 Summary(ru.UTF-8): MySQL клиент
348 Summary(uk.UTF-8): MySQL клієнт
349 Group: Applications/Databases
350 Requires: %{name}-charsets = %{version}-%{release}
351 Requires: %{name}-libs = %{version}-%{release}
352 Obsoletes: MySQL-client
355 This package contains the standard MySQL clients.
357 %description client -l fr.UTF-8
358 Ce package contient les clients MySQL standards.
360 %description client -l pl.UTF-8
361 Standardowe programy klienckie MySQL.
363 %description client -l pt_BR.UTF-8
364 Este pacote contém os clientes padrão para o MySQL.
366 %description client -l ru.UTF-8
367 Этот пакет содержит только клиент MySQL.
369 %description client -l uk.UTF-8
370 Цей пакет містить тільки клієнта MySQL.
373 Summary: Shared libraries for MySQL
374 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
376 Obsoletes: libmysql10
377 Obsoletes: mysql-doc < 4.1.12
380 Shared libraries for MySQL.
382 %description libs -l pl.UTF-8
383 Biblioteki współdzielone MySQL.
386 Summary: MySQL - development header files and other files
387 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
388 Summary(pt.UTF-8): MySQL - Medições de desempenho
389 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
390 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
391 Group: Development/Libraries
392 Requires: %{name}-libs = %{version}-%{release}
393 %{?with_ssl:Requires: openssl-devel}
395 Obsoletes: MySQL-devel
396 Obsoletes: libmysql10-devel
399 This package contains the development header files and other files
400 necessary to develop MySQL client applications.
402 %description devel -l fr.UTF-8
403 Ce package contient les fichiers entetes et les librairies de
404 developpement necessaires pour developper des applications clientes
407 %description devel -l pl.UTF-8
408 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
411 %description devel -l pt_BR.UTF-8
412 Este pacote contém os arquivos de cabeçalho (header files) e
413 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
415 %description devel -l ru.UTF-8
416 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
417 разработки клиентских приложений.
419 %description devel -l uk.UTF-8
420 Цей пакет містить хедери та бібліотеки програміста, необхідні для
421 розробки програм-клієнтів.
424 Summary: MySQL static libraries
425 Summary(pl.UTF-8): Biblioteki statyczne MySQL
426 Summary(ru.UTF-8): MySQL - статические библиотеки
427 Summary(uk.UTF-8): MySQL - статичні бібліотеки
428 Group: Development/Libraries
429 Requires: %{name}-devel = %{version}-%{release}
430 Obsoletes: MySQL-static
433 MySQL static libraries.
435 %description static -l pl.UTF-8
436 Biblioteki statyczne MySQL.
438 %description static -l ru.UTF-8
439 Этот пакет содержит статические библиотеки разработчика, необходимые
440 для разработки клиентских приложений.
442 %description static -l uk.UTF-8
443 Цей пакет містить статичні бібліотеки програміста, необхідні для
444 розробки програм-клієнтів.
447 Summary: MySQL - Benchmarks
448 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
449 Summary(pt.UTF-8): MySQL - Medições de desempenho
450 Summary(ru.UTF-8): MySQL - бенчмарки
451 Summary(uk.UTF-8): MySQL - бенчмарки
452 Group: Applications/Databases
453 Requires: %{name} = %{version}-%{release}
454 Requires: %{name}-client
455 Requires: perl(DBD::mysql)
456 Obsoletes: MySQL-bench
459 This package contains MySQL benchmark scripts and data.
461 %description bench -l pl.UTF-8
462 Programy testujące szybkość serwera MySQL.
464 %description bench -l pt_BR.UTF-8
465 Este pacote contém medições de desempenho de scripts e dados do MySQL.
467 %description bench -l ru.UTF-8
468 Этот пакет содержит скрипты и данные для оценки производительности
471 %description bench -l uk.UTF-8
472 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
475 Summary: MySQL manual
476 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
477 Group: Applications/Databases
480 This package contains manual in HTML format.
482 %description doc -l pl.UTF-8
483 Podręcznik MySQL-a w formacie HTML.
486 Summary: MySQL - NDB Storage Engine Daemon
487 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
488 Group: Applications/Databases
489 Requires: %{name}-libs = %{version}-%{release}
492 This package contains the standard MySQL NDB Storage Engine Daemon.
494 %description ndb -l pl.UTF-8
495 Ten pakiet zawiera standardowego demona silnika przechowywania danych
499 Summary: MySQL - NDB Clients
500 Summary(pl.UTF-8): MySQL - programy klienckie NDB
501 Group: Applications/Databases
502 Requires: %{name}-libs = %{version}-%{release}
504 %description ndb-client
505 This package contains the standard MySQL NDB Clients.
507 %description ndb-client -l pl.UTF-8
508 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
511 Summary: MySQL - NDB Management Daemon
512 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
513 Group: Applications/Databases
514 Requires: %{name}-libs = %{version}-%{release}
517 This package contains the standard MySQL NDB Management Daemon.
519 %description ndb-mgm -l pl.UTF-8
520 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
523 Summary: MySQL - NDB CPC Daemon
524 Summary(pl.UTF-8): MySQL - demon NDB CPC
525 Group: Applications/Databases
526 Requires: %{name}-libs = %{version}-%{release}
529 This package contains the standard MySQL NDB CPC Daemon.
531 %description ndb-cpc -l pl.UTF-8
532 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
535 %setup -q %{?with_sphinx:-a100}
537 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
538 mv sphinx-*/mysqlse storage/sphinx
541 #%patch2 -p1 # NEEDS CHECK, which exact program needs -lc++
544 # this is strange: mysqld functions for UDF modules are not explicitly defined,
545 # so -rdynamic is used; in such case gcc3+ld on alpha doesn't like C++ vtables
546 # in objects compiled without -fPIC
607 # to get these files rebuild
614 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
615 # (it defaults to first cluster but user may change it to whatever
618 %if "%{pld_release}" == "ac"
619 # add suffix, but allow ccache, etc in ~/.rpmmacros
620 %{expand:%%define __cc %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
621 %{expand:%%define __cxx %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
622 %{expand:%%define __cpp %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
625 # upstream has fallen down badly on symbol versioning, do it ourselves
627 cp -a %{SOURCE15} libmysql/libmysql.version
630 -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
631 -DFEATURE_SET="community" \
632 -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
633 -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
634 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
635 %{?debug:-DWITH_DEBUG=ON} \
636 -DWITH_FAST_MUTEXES=ON \
639 -DWITH_READLINE=OFF \
640 %if "%{pld_release}" == "ac"
641 -DWITH_SSL=%{?with_ssl:bundled}%{!?with_ssl:no} \
643 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
646 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
647 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
648 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
649 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
650 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
651 -DINSTALL_LAYOUT=RPM \
652 -DINSTALL_MYSQLTESTDIR_RPM="" \
653 -DINSTALL_SQLBENCHDIR=%{_datadir} \
654 -DINSTALL_SUPPORTFILESDIR=%{_datadir}/%{name}-support \
659 %{?with_tests:%{__make} test}
662 rm -rf $RPM_BUILD_ROOT
663 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
664 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
665 $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
667 %{__make} -C build install \
668 DESTDIR=$RPM_BUILD_ROOT
670 cp -a Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
672 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
673 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
674 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
675 # This is template for configuration file which is created after 'service mysql init'
676 cp -a %{SOURCE4} mysqld.conf
677 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
678 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
680 # remove innodb directives from mysqld.conf if mysqld is configured without
681 %if %{without innodb}
682 cp mysqld.conf mysqld.tmp
683 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
686 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
687 cp mysqld.conf mysqld.tmp
688 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
690 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
691 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
692 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
696 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
697 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
698 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
699 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
700 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
701 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
704 # symlinks point to the .so file, fix it
705 ln -sf libmysqlclient.so.16 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.16
706 ln -sf libmysqlclient.so.16.0.0 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.16.0.0
708 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
709 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
711 # remove known unpackaged files
712 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-support
714 # rename not to be so generic name
715 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
716 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
718 # not useful without -debug build
719 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
720 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
721 # generate symbols file, so one can generate backtrace using it
722 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
723 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
724 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
726 # do not clobber users $PATH
727 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
728 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
729 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
730 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
731 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
732 #mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
733 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
734 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
735 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
737 # delete - functionality in initscript / rpm
738 # note: mysql_install_db (and thus resolveip) are needed by digikam
739 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
740 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
741 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
742 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
743 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
744 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
745 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg-utf8.txt
746 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
747 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
748 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
749 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
750 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
752 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
753 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
754 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
755 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
756 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
757 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
758 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
761 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
764 rm -rf $RPM_BUILD_ROOT
767 %groupadd -g 89 mysql
768 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
771 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
773 /sbin/chkconfig --add mysql
774 %service mysql restart
777 if [ "$1" = "0" ]; then
778 %service -q mysql stop
779 /sbin/chkconfig --del mysql
783 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
786 if [ "$1" = "0" ]; then
792 /sbin/chkconfig --add mysql-ndb
793 %service mysql-ndb restart "mysql NDB engine"
796 if [ "$1" = "0" ]; then
797 %service mysql-ndb stop
798 /sbin/chkconfig --del mysql-ndb
802 /sbin/chkconfig --add mysql-ndb-mgm
803 %service mysql-ndb-mgm restart "mysql NDB management node"
806 if [ "$1" = "0" ]; then
807 %service mysql-ndb-mgm stop
808 /sbin/chkconfig --del mysql-ndb-mgm
812 /sbin/chkconfig --add mysql-ndb-cpc
813 %service mysql-ndb-cpc restart "mysql NDB CPC"
816 if [ "$1" = "0" ]; then
817 %service mysql-ndb-cpc stop
818 /sbin/chkconfig --del mysql-ndb-cpc
821 %post libs -p /sbin/ldconfig
822 %postun libs -p /sbin/ldconfig
824 %triggerpostun -- mysql < 4.0.20-2.4
825 # For clusters in /etc/%{name}/clusters.conf
826 if [ -f /etc/sysconfig/mysql ]; then
827 . /etc/sysconfig/mysql
828 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
829 for i in "$MYSQL_DB_CLUSTERS"; do
830 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
832 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
833 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
834 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
835 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
839 %triggerpostun -- mysql < 4.1.1
840 # For better compatibility with prevoius versions:
841 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
842 if echo "$config" | grep -q '^/'; then
843 config_file="$config"
844 elif [ -f "/etc/%{name}/$config" ]; then
845 config_file=/etc/%{name}/$config
847 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
848 if [ -z "$clusterdir" ]; then
849 echo >&2 "Can't find cluster dir for $config!"
850 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
853 config_file="$clusterdir/mysqld.conf"
856 if [ ! -f "$config_file" ]; then
857 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
860 echo "Adding option old-passwords to config: $config_file"
861 echo "If you want to use new, better passwords - remove it"
863 # sed magic to add 'old-passwords' to [mysqld] section
864 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
866 a; Compatibility options:
872 %banner -e %{name}-4.1.x <<-EOF
873 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
874 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
878 %triggerpostun -- mysql < 5.1.0
880 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
881 if echo "$config" | grep -q '^/'; then
882 config_file="$config"
883 elif [ -f "/etc/%{name}/$config" ]; then
884 config_file=/etc/%{name}/$config
886 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
887 if [ -z "$clusterdir" ]; then
888 echo >&2 "Can't find cluster dir for $config!"
889 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
892 config_file="$clusterdir/mysqld.conf"
895 if [ ! -f "$config_file" ]; then
896 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/"
899 configs="$configs $config_file"
903 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
904 echo 'Thus, you should invoke:'
905 for config in $configs; do
907 s/set-variable\s*=\s* //
908 # use # as comment in config
912 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
913 echo "# mysql_upgrade --datadir=$datadir"
915 ) | %banner -e %{name}-5.1
917 %triggerpostun -- mysql < 5.5.0
919 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
920 if echo "$config" | grep -q '^/'; then
921 config_file="$config"
922 elif [ -f "/etc/%{name}/$config" ]; then
923 config_file=/etc/%{name}/$config
925 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
926 if [ -z "$clusterdir" ]; then
927 echo >&2 "Can't find cluster dir for $config!"
928 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
931 config_file="$clusterdir/mysqld.conf"
934 if [ ! -f "$config_file" ]; then
935 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/"
938 configs="$configs $config_file"
942 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
943 echo 'Thus, you should invoke:'
944 for config in $configs; do
946 s/^language *= *polish/lc-messages = pl_PL/i
947 s/set-variable\s*=\s* //
948 /^skip-locking/skip-external-locking/
949 # this is not valid for server. it is client option
950 s/default-character-set/# client-config: &/
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.5
961 %defattr(644,root,root,755)
962 %doc build/support-files/*.cnf build/support-files/*.ini
963 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
964 %attr(754,root,root) /etc/rc.d/init.d/%{name}
965 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
966 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
967 %attr(755,root,root) %{_sbindir}/innochecksum
968 %attr(755,root,root) %{_sbindir}/my_print_defaults
969 %attr(755,root,root) %{_sbindir}/myisamchk
970 %attr(755,root,root) %{_sbindir}/myisamlog
971 %attr(755,root,root) %{_sbindir}/myisampack
972 #%attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
973 %attr(755,root,root) %{_sbindir}/mysql_upgrade
974 %attr(755,root,root) %{_sbindir}/mysqlcheck
975 %attr(755,root,root) %{_sbindir}/mysqld
976 %dir %{_libdir}/%{name}
977 %dir %{_libdir}/%{name}/plugin
978 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
979 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
980 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
981 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
982 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_archive.so
983 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_blackhole.so
984 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_federated.so
985 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
986 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
987 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
988 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
989 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
990 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
992 %attr(755,root,root) %{_libdir}/%{name}/plugin/sphinx.so
995 %attr(755,root,root) %{_libdir}/libmysqlservices.so
996 %{_mandir}/man1/innochecksum.1*
997 %{_mandir}/man1/my_print_defaults.1*
998 %{_mandir}/man1/myisamchk.1*
999 %{_mandir}/man1/myisamlog.1*
1000 %{_mandir}/man1/myisampack.1*
1001 #%{_mandir}/man1/mysql_fix_privilege_tables.1*
1002 %{_mandir}/man1/mysql_upgrade.1*
1003 %{_mandir}/man1/mysqlcheck.1*
1004 %{_mandir}/man8/mysqld.8*
1007 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
1008 %{_datadir}/%{name}/mysqld.sym
1009 %{_mandir}/man1/*resolve_stack_dump.1*
1012 %attr(700,mysql,mysql) %{_mysqlhome}
1013 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
1014 %attr(751,root,root) /var/lib/mysql
1015 %attr(750,mysql,mysql) %dir /var/log/mysql
1016 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
1017 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
1019 %{_infodir}/mysql.info*
1020 # This is template for configuration file which is created after 'service mysql init'
1021 %{_datadir}/%{name}/mysqld.conf
1022 %{_datadir}/%{name}/mysql_system_tables.sql
1023 %{_datadir}/%{name}/mysql_system_tables_data.sql
1024 %{_datadir}/%{name}/mysql_test_data_timezone.sql
1026 %{_datadir}/%{name}/english
1027 %{_datadir}/%{name}/fill_help_tables.sql
1028 #%{_datadir}/%{name}/mysql_fix_privilege_tables.sql
1029 %lang(cs) %{_datadir}/%{name}/czech
1030 %lang(da) %{_datadir}/%{name}/danish
1031 %lang(de) %{_datadir}/%{name}/german
1032 %lang(el) %{_datadir}/%{name}/greek
1033 %lang(es) %{_datadir}/%{name}/spanish
1034 %lang(et) %{_datadir}/%{name}/estonian
1035 %lang(fr) %{_datadir}/%{name}/french
1036 %lang(hu) %{_datadir}/%{name}/hungarian
1037 %lang(it) %{_datadir}/%{name}/italian
1038 %lang(ja) %{_datadir}/%{name}/japanese
1039 %lang(ko) %{_datadir}/%{name}/korean
1040 %lang(nl) %{_datadir}/%{name}/dutch
1041 %lang(nb) %{_datadir}/%{name}/norwegian
1042 %lang(nn) %{_datadir}/%{name}/norwegian-ny
1043 %lang(pl) %{_datadir}/%{name}/polish
1044 %lang(pt) %{_datadir}/%{name}/portuguese
1045 %lang(ro) %{_datadir}/%{name}/romanian
1046 %lang(ru) %{_datadir}/%{name}/russian
1047 %lang(sr) %{_datadir}/%{name}/serbian
1048 %lang(sk) %{_datadir}/%{name}/slovak
1049 %lang(sv) %{_datadir}/%{name}/swedish
1050 %lang(uk) %{_datadir}/%{name}/ukrainian
1053 %defattr(644,root,root,755)
1054 %dir %{_datadir}/mysql
1055 %{_datadir}/%{name}/charsets
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_bindir}/msql2mysql
1060 %attr(755,root,root) %{_bindir}/myisam_ftdump
1061 %attr(755,root,root) %{_bindir}/mysql_install_db
1062 %attr(755,root,root) %{_bindir}/mysql_secure_installation
1063 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
1064 %attr(755,root,root) %{_bindir}/perror
1065 %attr(755,root,root) %{_bindir}/replace
1066 %attr(755,root,root) %{_bindir}/resolveip
1067 %{_mandir}/man1/msql2mysql.1*
1068 %{_mandir}/man1/myisam_ftdump.1*
1069 %{_mandir}/man1/mysql_install_db.1*
1070 %{_mandir}/man1/mysql_secure_installation.1*
1071 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1072 %{_mandir}/man1/perror.1*
1073 %{_mandir}/man1/replace.1*
1074 %{_mandir}/man1/resolveip.1*
1076 %files -n mysqlhotcopy
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{_bindir}/mysqlhotcopy
1079 %{_mandir}/man1/mysqlhotcopy.1*
1082 %defattr(644,root,root,755)
1083 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
1084 %attr(755,root,root) %{_bindir}/mysql_find_rows
1085 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
1086 %attr(755,root,root) %{_bindir}/mysql_setpermission
1087 %attr(755,root,root) %{_bindir}/mysql_zap
1088 %attr(755,root,root) %{_bindir}/mysqlaccess
1089 %attr(755,root,root) %{_bindir}/mysqldumpslow
1090 %{_mandir}/man1/mysql_convert_table_format.1*
1091 %{_mandir}/man1/mysql_find_rows.1*
1092 %{_mandir}/man1/mysql_fix_extensions.1*
1093 %{_mandir}/man1/mysql_setpermission.1*
1094 %{_mandir}/man1/mysql_zap.1*
1095 %{_mandir}/man1/mysqlaccess.1*
1096 %{_mandir}/man1/mysqldumpslow.1*
1099 %defattr(644,root,root,755)
1100 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
1101 %attr(755,root,root) %{_bindir}/mysql
1102 %attr(755,root,root) %{_bindir}/mysqladmin
1103 %attr(755,root,root) %{_bindir}/mysqlbinlog
1104 %attr(755,root,root) %{_bindir}/mysqlbug
1105 %attr(755,root,root) %{_bindir}/mysqldump
1106 %attr(755,root,root) %{_bindir}/mysqlimport
1107 %attr(755,root,root) %{_bindir}/mysqlshow
1108 %{_mandir}/man1/mysql.1*
1109 %{_mandir}/man1/mysqladmin.1*
1110 %{_mandir}/man1/mysqlbinlog.1*
1111 %{_mandir}/man1/mysqlbug.1*
1112 %{_mandir}/man1/mysqldump.1*
1113 %{_mandir}/man1/mysqlimport.1*
1114 %{_mandir}/man1/mysqlshow.1*
1117 %defattr(644,root,root,755)
1118 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1119 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1120 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1121 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.16
1122 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.*
1123 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.16
1125 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1126 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1130 %defattr(644,root,root,755)
1131 %attr(755,root,root) %{_bindir}/mysql_config
1132 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1133 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1135 %attr(755,root,root) %{_libdir}/libndbclient.so
1137 %{_includedir}/mysql
1138 %{_aclocaldir}/mysql.m4
1139 %{_mandir}/man1/mysql_config.1*
1142 %defattr(644,root,root,755)
1143 %{_libdir}/libmysqlclient.a
1144 %{_libdir}/libmysqlclient_r.a
1146 %{_libdir}/libndbclient.a
1150 %defattr(644,root,root,755)
1151 %attr(755,root,root) %{_bindir}/mysqlslap
1152 %attr(755,root,root) %{_bindir}/mysqltest
1153 %dir %{_datadir}/sql-bench
1154 %{_datadir}/sql-bench/[CDRl]*
1155 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1156 %{_mandir}/man1/mysqlslap.1*
1157 %{_mandir}/man1/mysqltest.1*
1158 %{_mandir}/man1/mysqltest_embedded.1*
1161 #%defattr(644,root,root,755)
1162 #%doc Docs/manual.html Docs/manual_toc.html
1166 %defattr(644,root,root,755)
1167 %attr(755,root,root) %{_sbindir}/ndbd
1168 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1169 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1170 %{_mandir}/man1/ndbd_redo_log_reader.1*
1171 %{_mandir}/man8/ndbd.8*
1174 %defattr(644,root,root,755)
1175 %attr(755,root,root) %{_bindir}/ndb_config
1176 %attr(755,root,root) %{_bindir}/ndb_delete_all
1177 %attr(755,root,root) %{_bindir}/ndb_desc
1178 %attr(755,root,root) %{_bindir}/ndb_drop_index
1179 %attr(755,root,root) %{_bindir}/ndb_drop_table
1180 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1181 %attr(755,root,root) %{_bindir}/ndb_mgm
1182 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1183 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1184 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1185 %attr(755,root,root) %{_bindir}/ndb_restore
1186 %attr(755,root,root) %{_bindir}/ndb_select_all
1187 %attr(755,root,root) %{_bindir}/ndb_select_count
1188 %attr(755,root,root) %{_bindir}/ndb_show_tables
1189 %attr(755,root,root) %{_bindir}/ndb_size.pl
1190 %attr(755,root,root) %{_bindir}/ndb_test_platform
1191 %attr(755,root,root) %{_bindir}/ndb_waiter
1192 %{_mandir}/man1/ndb_config.1*
1193 %{_mandir}/man1/ndb_delete_all.1*
1194 %{_mandir}/man1/ndb_desc.1*
1195 %{_mandir}/man1/ndb_drop_index.1*
1196 %{_mandir}/man1/ndb_drop_table.1*
1197 %{_mandir}/man1/ndb_error_reporter.1*
1198 %{_mandir}/man1/ndb_mgm.1*
1199 %{_mandir}/man1/ndb_print_backup_file.1*
1200 %{_mandir}/man1/ndb_print_schema_file.1*
1201 %{_mandir}/man1/ndb_print_sys_file.1*
1202 %{_mandir}/man1/ndb_restore.1*
1203 %{_mandir}/man1/ndb_select_all.1*
1204 %{_mandir}/man1/ndb_select_count.1*
1205 %{_mandir}/man1/ndb_show_tables.1*
1206 %{_mandir}/man1/ndb_size.pl.1*
1207 %{_mandir}/man1/ndb_waiter.1*
1210 %defattr(644,root,root,755)
1211 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1212 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1213 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1214 %{_mandir}/man8/ndb_mgmd.8*
1217 %defattr(644,root,root,755)
1218 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1219 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1220 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1221 %{_mandir}/man1/ndb_cpcd.1*