3 # - mysqldump ... (invalid usage) prints to stdout not stderr (idiotic if you want to create dump and get usage in .sql)
4 # /usr/bin/mysqlaccess.conf
5 # - http://bugs.mysql.com/bug.php?id=16470
6 # - innodb are dynamic (= as plugins) ?
7 # - missing have_archive, have_merge
8 # - is plugin_dir lib64 safe?
9 # - Using NDB Cluster... could not find sci transporter in /{include, lib}
10 # - !!! Makefiles for libmysqld.so !!!
11 # - segfaults on select from non-mysql user (caused by builder environment):
12 # https://bugs.launchpad.net/pld-linux/+bug/381904
13 # (profiling disabled temporaily to workaround this)
16 %bcond_with autodeps # BR packages needed only for resolving deps
17 %bcond_without innodb # InnoDB storage engine support
18 %bcond_without big_tables # Support tables with more than 4G rows even on 32 bit platforms
19 %bcond_without federated # Federated storage engine support
20 %bcond_without raid # RAID support
21 %bcond_without ssl # OpenSSL support
22 %bcond_without tcpd # libwrap (tcp_wrappers) support
23 %bcond_with sphinx # Sphinx storage engine support
24 %bcond_with tests # FIXME: don't run correctly
25 %bcond_with ndb # NDB is now a separate product, this here is broken, so disable it
27 %include /usr/lib/rpm/macros.perl
28 Summary: MySQL: a very fast and reliable SQL database engine
29 Summary(de.UTF-8): MySQL: ist eine SQL-Datenbank
30 Summary(fr.UTF-8): MySQL: un serveur SQL rapide et fiable
31 Summary(pl.UTF-8): MySQL: bardzo szybka i niezawodna baza danych (SQL)
32 Summary(pt_BR.UTF-8): MySQL: Um servidor SQL rápido e confiável
33 Summary(ru.UTF-8): MySQL - быстрый SQL-сервер
34 Summary(uk.UTF-8): MySQL - швидкий SQL-сервер
35 Summary(zh_CN.UTF-8): MySQL数据库服务器
39 License: GPL + MySQL FLOSS Exception
40 Group: Applications/Databases
41 # Source0Download: http://dev.mysql.com/downloads/mysql/5.5.html#downloads
42 Source0: http://vesta.informatik.rwth-aachen.de/mysql/Downloads/MySQL-5.5/%{name}-%{version}.tar.gz
43 # Source0-md5: 701c0c44b7f1c2300adc0dc45729f903
44 Source100: http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
45 # Source100-md5: 7b9b618cb9b378f949bb1b91ddcc4f54
47 Source2: %{name}.sysconfig
48 Source3: %{name}.logrotate
49 Source4: %{name}d.conf
50 Source5: %{name}-clusters.conf
51 Source7: %{name}-ndb.init
52 Source8: %{name}-ndb.sysconfig
53 Source9: %{name}-ndb-mgm.init
54 Source10: %{name}-ndb-mgm.sysconfig
55 Source11: %{name}-ndb-cpc.init
56 Source12: %{name}-ndb-cpc.sysconfig
57 Source13: %{name}-client.conf
60 Source15: lib%{name}.version
61 Patch2: %{name}-c++.patch
62 Patch3: %{name}-info.patch
63 Patch4: %{name}-sql-cxx-pic.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 Patch10: %{name}-alpha.patch
71 Patch11: %{name}-upgrade.patch
72 Patch12: %{name}-config.patch
73 Patch14: %{name}-bug-43594.patch
74 Patch18: %{name}-sphinx.patch
75 Patch19: %{name}-chain-certs.patch
77 Patch20: %{name}-dubious-exports.patch
78 # <percona patches, updated with percona.sh>
79 Patch100: microsec_process.patch
80 Patch101: optimizer_fix.patch
81 Patch102: %{name}_dump_ignore_ct.patch
82 Patch103: control_online_alter_index.patch
83 Patch104: show_temp.patch
84 Patch105: innodb_show_status.patch
85 Patch106: innodb_io_patches.patch
86 Patch107: innodb_opt_lru_count.patch
87 Patch108: innodb_extra_rseg.patch
88 Patch109: innodb_overwrite_relay_log_info.patch
89 Patch110: innodb_thread_concurrency_timer_based.patch
90 Patch111: innodb_dict_size_limit.patch
91 Patch112: innodb_split_buf_pool_mutex.patch
92 Patch113: innodb_expand_import.patch
93 Patch114: innodb_show_sys_tables.patch
94 Patch115: innodb_stats.patch
95 Patch116: innodb_recovery_patches.patch
96 Patch117: innodb_admin_command_base.patch
97 Patch118: innodb_show_lock_name.patch
98 Patch119: innodb_extend_slow.patch
99 Patch120: innodb_lru_dump_restore.patch
100 Patch121: innodb_separate_doublewrite.patch
101 Patch122: innodb_pass_corrupt_table.patch
102 Patch123: innodb_fast_checksum.patch
103 Patch124: innodb_files_extend.patch
104 Patch125: innodb_fix_misc.patch
105 Patch126: innodb_deadlock_count.patch
106 Patch127: innodb_adaptive_hash_index_partitions.patch
107 Patch128: innodb_buffer_pool_pages_i_s.patch
108 Patch129: innodb_buffer_pool_shm.patch
109 Patch130: innodb_show_status_extend.patch
110 Patch131: slow_extended.patch
111 Patch132: percona_support.patch
112 Patch133: query_cache_enhance.patch
113 Patch134: log_connection_error.patch
114 Patch135: %{name}_syslog.patch
115 Patch136: response_time_distribution.patch
116 Patch137: error_pad.patch
117 Patch138: remove_fcntl_excessive_calls.patch
118 Patch139: sql_no_fcache.patch
119 Patch140: show_slave_status_nolock.patch
120 Patch141: log_warnings_suppress.patch
121 Patch142: userstat.patch
122 Patch143: bug580324.patch
123 Patch144: %{name}_remove_eol_carret.patch
125 URL: http://www.mysql.com/products/community/
127 BuildRequires: cmake >= 2.6
129 %if "%{pld_release}" == "ac"
130 BuildRequires: libstdc++4-devel >= 5:4.0
132 BuildRequires: libstdc++-devel >= 5:4.0
134 BuildRequires: libtool
135 %{?with_tcpd:BuildRequires: libwrap-devel}
136 BuildRequires: ncurses-devel >= 4.2
137 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
138 %{?with_autodeps:BuildRequires: perl-DBI}
139 BuildRequires: perl-devel >= 1:5.6.1
140 BuildRequires: readline-devel >= 4.2
141 BuildRequires: rpm-perlprov >= 4.1-13
142 BuildRequires: rpmbuild(macros) >= 1.597
143 BuildRequires: sed >= 4.0
144 BuildRequires: zlib-devel
145 Requires(post,preun): /sbin/chkconfig
146 Requires(postun): /usr/sbin/groupdel
147 Requires(postun): /usr/sbin/userdel
148 Requires(pre): /bin/id
149 Requires(pre): /usr/bin/getgid
150 Requires(pre): /usr/sbin/groupadd
151 Requires(pre): /usr/sbin/useradd
152 Requires(triggerpostun): sed >= 4.0
153 Requires: %{name}-charsets = %{version}-%{release}
154 Requires: %{name}-libs = %{version}-%{release}
155 Requires: /usr/bin/setsid
156 Requires: rc-scripts >= 0.2.0
157 Suggests: mysql-client
158 %{?with_tcpd:Suggests: tcp_wrappers}
159 Suggests: vim-syntax-mycnf
160 Provides: MySQL-server
161 Provides: group(mysql)
162 Provides: msqlormysql
163 Provides: user(mysql)
165 Obsoletes: mysql-server
166 Conflicts: logrotate < 3.7-4
167 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
169 %define _libexecdir %{_sbindir}
170 %define _localstatedir /var/lib/mysql
171 %define _mysqlhome /home/services/mysql
173 %define _noautoreqdep 'perl(DBD::mysql)'
176 MySQL is a true multi-user, multi-threaded SQL (Structured Query
177 Language) database server. SQL is the most popular database language
178 in the world. MySQL is a client/server implementation that consists of
179 a server daemon mysqld and many different client programs/libraries.
181 The main goals of MySQL are speed, robustness and easy to use. MySQL
182 was originally developed because we at Tcx needed a SQL server that
183 could handle very big databases with magnitude higher speed than what
184 any database vendor could offer to us. We have now been using MySQL
185 since 1996 in a environment with more than 40 databases, 10,000
186 tables, of which more than 500 have more than 7 million rows. This is
187 about 50G of mission critical data.
189 The base upon which MySQL is built is a set of routines that have been
190 used in a highly demanding production environment for many years.
191 While MySQL is still in development, it already offers a rich and
192 highly useful function set.
194 %description -l fr.UTF-8
195 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
196 multi-taches. Le langage SQL est le langage de bases de donnees le
197 plus populaire au monde. MySQL est une implementation client/serveur
198 qui consiste en un serveur (mysqld) et differents
199 programmes/bibliotheques clientes.
201 Les objectifs principaux de MySQL sont: vitesse, robustesse et
202 facilite d'utilisation. MySQL fut originalement developpe parce que
203 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
204 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
205 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
206 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
207 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
208 millions de lignes. Ceci represente environ 50G de donnees critiques.
210 A la base de la conception de MySQL, on retrouve une serie de routines
211 qui ont ete utilisees dans un environnement de production pendant
212 plusieurs annees. Meme si MySQL est encore en developpement, il offre
213 deja une riche et utile serie de fonctions.
215 %description -l pl.UTF-8
216 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
217 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
218 danych. MySQL to implementacja klient/serwer składająca się z demona
219 mysqld i wielu różnych programów i bibliotek klienckich.
221 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
222 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
223 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
224 większą, niż mogli zaoferować inni producenci baz danych. Używają go
225 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
226 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
227 50GB krytycznych danych.
229 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
230 które były używane w bardzo wymagającym środowisku produkcyjnym przez
231 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
232 i użyteczny zbiór funkcji.
234 %description -l de.UTF-8
235 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
236 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
237 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
238 einem Primärschlüssel versehen werden. Es ist aber keine Definition
239 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
240 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
241 Daten verantwortlich. Allein durch die Nutzung externer
242 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
243 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
245 %description -l pt_BR.UTF-8
246 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
247 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
248 dados no mundo. O MySQL é uma implementação cliente/servidor que
249 consiste de um servidor chamado mysqld e diversos
250 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
251 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
252 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
253 pudesse lidar com grandes bases de dados e com uma velocidade muito
254 maior do que a que qualquer vendedor podia nos oferecer. Estamos
255 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
256 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
257 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
258 A base da construção do MySQL é uma série de rotinas que foram usadas
259 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
260 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
261 funções muito ricas e úteis. Veja a documentação para maiores
264 %description -l ru.UTF-8
265 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
266 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
267 дистрибутиве на предмет других участников проекта и прочей информации
270 %description -l uk.UTF-8
271 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
272 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
273 дистрибутиві для інформації про інших учасників проекту та іншої
277 Summary: MySQL - character sets definitions
278 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
279 Group: Applications/Databases
281 %description charsets
282 This package contains character sets definitions needed by both client
285 %description charsets -l pl.UTF-8
286 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
289 %package -n mysqlhotcopy
290 Summary: mysqlhotcopy - A MySQL database backup program
291 Summary(pl.UTF-8): mysqlhotcopy - program do tworzenia kopii zapasowych baz MySQL
292 Group: Applications/Databases
293 Requires: perl-DBD-mysql
295 %description -n mysqlhotcopy
296 mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a
297 database backup quickly. It is the fastest way to make a backup of the
298 database or single tables, but it can be run only on the same machine
299 where the database directories are located. mysqlhotcopy works only
300 for backing up MyISAM and ARCHIVE tables.
302 See innobackup package to backup InnoDB tables.
304 %description -n mysqlhotcopy -l pl.UTF-8
305 mysqlhotcopy wykorzystuje LOCK TABLES, FLUSH TABLES oraz cp i scp do
306 szybkiego tworzenia kopii zapasowych baz danych. Jest to najszybszy
307 sposób wykonania kopii zapasowej bazy danych lub pojedynczych tabel,
308 ale może działać tylko na maszynie, na której znajdują się katalogi z
309 bazą danych. mysqlhotcopy działa tylko dla tabel typu MyISAM i
312 Narzędzie do tworzenia kopii tabel InnoDB znajduje się w pakiecie
316 Summary: MySQL additional utilities
317 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
318 Group: Applications/Databases
319 Requires: %{name}-client = %{version}-%{release}
320 Requires: %{name}-libs = %{version}-%{release}
323 MySQL additional utilities except Perl scripts (they may be found in
324 %{name}-extras-perl package).
326 %description extras -l pl.UTF-8
327 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
328 pakiecie %{name}-extras-perl).
331 Summary: MySQL additional utilities written in Perl
332 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
333 Group: Applications/Databases
334 Requires: %{name}-extras = %{version}-%{release}
335 # this is just for the sake of smooth upgrade, not to break systems
336 Requires: mysqlhotcopy = %{version}-%{release}
337 Requires: perl(DBD::mysql)
339 %description extras-perl
340 MySQL additional utilities written in Perl.
342 %description extras-perl -l pl.UTF-8
343 Dodatkowe narzędzia do MySQL napisane w Perlu.
346 Summary: MySQL - Client
347 Summary(pl.UTF-8): MySQL - Klient
348 Summary(pt.UTF-8): MySQL - Cliente
349 Summary(ru.UTF-8): MySQL клиент
350 Summary(uk.UTF-8): MySQL клієнт
351 Group: Applications/Databases
352 Requires: %{name}-charsets = %{version}-%{release}
353 Requires: %{name}-libs = %{version}-%{release}
354 Obsoletes: MySQL-client
357 This package contains the standard MySQL clients.
359 %description client -l fr.UTF-8
360 Ce package contient les clients MySQL standards.
362 %description client -l pl.UTF-8
363 Standardowe programy klienckie MySQL.
365 %description client -l pt_BR.UTF-8
366 Este pacote contém os clientes padrão para o MySQL.
368 %description client -l ru.UTF-8
369 Этот пакет содержит только клиент MySQL.
371 %description client -l uk.UTF-8
372 Цей пакет містить тільки клієнта MySQL.
375 Summary: Shared libraries for MySQL
376 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
378 Obsoletes: libmysql10
379 Obsoletes: mysql-doc < 4.1.12
382 Shared libraries for MySQL.
384 %description libs -l pl.UTF-8
385 Biblioteki współdzielone MySQL.
388 Summary: MySQL - development header files and other files
389 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
390 Summary(pt.UTF-8): MySQL - Medições de desempenho
391 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
392 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
393 Group: Development/Libraries
394 Requires: %{name}-libs = %{version}-%{release}
395 %{?with_ssl:Requires: openssl-devel}
397 Obsoletes: MySQL-devel
398 Obsoletes: libmysql10-devel
401 This package contains the development header files and other files
402 necessary to develop MySQL client applications.
404 %description devel -l fr.UTF-8
405 Ce package contient les fichiers entetes et les librairies de
406 developpement necessaires pour developper des applications clientes
409 %description devel -l pl.UTF-8
410 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
413 %description devel -l pt_BR.UTF-8
414 Este pacote contém os arquivos de cabeçalho (header files) e
415 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
417 %description devel -l ru.UTF-8
418 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
419 разработки клиентских приложений.
421 %description devel -l uk.UTF-8
422 Цей пакет містить хедери та бібліотеки програміста, необхідні для
423 розробки програм-клієнтів.
426 Summary: MySQL static libraries
427 Summary(pl.UTF-8): Biblioteki statyczne MySQL
428 Summary(ru.UTF-8): MySQL - статические библиотеки
429 Summary(uk.UTF-8): MySQL - статичні бібліотеки
430 Group: Development/Libraries
431 Requires: %{name}-devel = %{version}-%{release}
432 Obsoletes: MySQL-static
435 MySQL static libraries.
437 %description static -l pl.UTF-8
438 Biblioteki statyczne MySQL.
440 %description static -l ru.UTF-8
441 Этот пакет содержит статические библиотеки разработчика, необходимые
442 для разработки клиентских приложений.
444 %description static -l uk.UTF-8
445 Цей пакет містить статичні бібліотеки програміста, необхідні для
446 розробки програм-клієнтів.
449 Summary: MySQL - Benchmarks
450 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
451 Summary(pt.UTF-8): MySQL - Medições de desempenho
452 Summary(ru.UTF-8): MySQL - бенчмарки
453 Summary(uk.UTF-8): MySQL - бенчмарки
454 Group: Applications/Databases
455 Requires: %{name} = %{version}-%{release}
456 Requires: %{name}-client
457 Requires: perl(DBD::mysql)
458 Obsoletes: MySQL-bench
461 This package contains MySQL benchmark scripts and data.
463 %description bench -l pl.UTF-8
464 Programy testujące szybkość serwera MySQL.
466 %description bench -l pt_BR.UTF-8
467 Este pacote contém medições de desempenho de scripts e dados do MySQL.
469 %description bench -l ru.UTF-8
470 Этот пакет содержит скрипты и данные для оценки производительности
473 %description bench -l uk.UTF-8
474 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
477 Summary: MySQL manual
478 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
479 Group: Applications/Databases
482 This package contains manual in HTML format.
484 %description doc -l pl.UTF-8
485 Podręcznik MySQL-a w formacie HTML.
488 Summary: MySQL - NDB Storage Engine Daemon
489 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
490 Group: Applications/Databases
491 Requires: %{name}-libs = %{version}-%{release}
494 This package contains the standard MySQL NDB Storage Engine Daemon.
496 %description ndb -l pl.UTF-8
497 Ten pakiet zawiera standardowego demona silnika przechowywania danych
501 Summary: MySQL - NDB Clients
502 Summary(pl.UTF-8): MySQL - programy klienckie NDB
503 Group: Applications/Databases
504 Requires: %{name}-libs = %{version}-%{release}
506 %description ndb-client
507 This package contains the standard MySQL NDB Clients.
509 %description ndb-client -l pl.UTF-8
510 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
513 Summary: MySQL - NDB Management Daemon
514 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
515 Group: Applications/Databases
516 Requires: %{name}-libs = %{version}-%{release}
519 This package contains the standard MySQL NDB Management Daemon.
521 %description ndb-mgm -l pl.UTF-8
522 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
525 Summary: MySQL - NDB CPC Daemon
526 Summary(pl.UTF-8): MySQL - demon NDB CPC
527 Group: Applications/Databases
528 Requires: %{name}-libs = %{version}-%{release}
531 This package contains the standard MySQL NDB CPC Daemon.
533 %description ndb-cpc -l pl.UTF-8
534 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
537 %setup -q %{?with_sphinx:-a100}
539 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
540 mv sphinx-*/mysqlse storage/sphinx
543 #%patch2 -p1 # NEEDS CHECK, which exact program needs -lc++
546 # this is strange: mysqld functions for UDF modules are not explicitly defined,
547 # so -rdynamic is used; in such case gcc3+ld on alpha doesn't like C++ vtables
548 # in objects compiled without -fPIC
611 # to get these files rebuild
618 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
619 # (it defaults to first cluster but user may change it to whatever
622 %if "%{pld_release}" == "ac"
623 # add suffix, but allow ccache, etc in ~/.rpmmacros
624 %{expand:%%define __cc %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
625 %{expand:%%define __cxx %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
626 %{expand:%%define __cpp %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
629 # upstream has fallen down badly on symbol versioning, do it ourselves
631 cp -a %{SOURCE15} libmysql/libmysql.version
634 -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
635 -DFEATURE_SET="community" \
636 -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
637 -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
638 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
639 %{?debug:-DWITH_DEBUG=ON} \
640 -DWITH_FAST_MUTEXES=ON \
643 -DWITH_READLINE=OFF \
644 %if "%{pld_release}" == "ac"
645 -DWITH_SSL=%{?with_ssl:bundled}%{!?with_ssl:no} \
647 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
650 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
651 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
652 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
653 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
654 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
655 -DINSTALL_LAYOUT=RPM \
656 -DINSTALL_MYSQLTESTDIR_RPM="" \
657 -DINSTALL_SQLBENCHDIR=%{_datadir} \
658 -DINSTALL_SUPPORTFILESDIR=%{_datadir}/%{name}-support \
663 %{?with_tests:%{__make} test}
666 rm -rf $RPM_BUILD_ROOT
667 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
668 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
669 $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
671 %{__make} -C build install \
672 DESTDIR=$RPM_BUILD_ROOT
674 cp -a Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
676 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
677 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
678 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
679 # This is template for configuration file which is created after 'service mysql init'
680 cp -a %{SOURCE4} mysqld.conf
681 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
682 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
684 # remove innodb directives from mysqld.conf if mysqld is configured without
685 %if %{without innodb}
686 cp mysqld.conf mysqld.tmp
687 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
690 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
691 cp mysqld.conf mysqld.tmp
692 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
694 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
695 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
696 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
700 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
701 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
702 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
703 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
704 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
705 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
708 # symlinks point to the .so file, fix it
709 ln -sf libmysqlclient.so.16 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.16
710 ln -sf libmysqlclient.so.16.0.0 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.16.0.0
712 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
713 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
715 # remove known unpackaged files
716 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-support
718 # rename not to be so generic name
719 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
720 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
722 # not useful without -debug build
723 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
724 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
725 # generate symbols file, so one can generate backtrace using it
726 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
727 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
728 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
730 # do not clobber users $PATH
731 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
732 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
733 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
734 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
735 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
736 #mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
737 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
738 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
739 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
741 # delete - functionality in initscript / rpm
742 # note: mysql_install_db (and thus resolveip) are needed by digikam
743 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
744 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
745 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
746 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
747 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
748 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
749 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg-utf8.txt
750 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
751 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
752 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
753 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
754 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
756 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
757 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
758 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
759 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
760 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
761 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
762 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
765 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
768 rm -rf $RPM_BUILD_ROOT
771 %groupadd -g 89 mysql
772 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
775 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
777 /sbin/chkconfig --add mysql
778 %service mysql restart
781 if [ "$1" = "0" ]; then
782 %service -q mysql stop
783 /sbin/chkconfig --del mysql
787 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
790 if [ "$1" = "0" ]; then
796 /sbin/chkconfig --add mysql-ndb
797 %service mysql-ndb restart "mysql NDB engine"
800 if [ "$1" = "0" ]; then
801 %service mysql-ndb stop
802 /sbin/chkconfig --del mysql-ndb
806 /sbin/chkconfig --add mysql-ndb-mgm
807 %service mysql-ndb-mgm restart "mysql NDB management node"
810 if [ "$1" = "0" ]; then
811 %service mysql-ndb-mgm stop
812 /sbin/chkconfig --del mysql-ndb-mgm
816 /sbin/chkconfig --add mysql-ndb-cpc
817 %service mysql-ndb-cpc restart "mysql NDB CPC"
820 if [ "$1" = "0" ]; then
821 %service mysql-ndb-cpc stop
822 /sbin/chkconfig --del mysql-ndb-cpc
825 %post libs -p /sbin/ldconfig
826 %postun libs -p /sbin/ldconfig
828 %triggerpostun -- mysql < 4.0.20-2.4
829 # For clusters in /etc/%{name}/clusters.conf
830 if [ -f /etc/sysconfig/mysql ]; then
831 . /etc/sysconfig/mysql
832 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
833 for i in "$MYSQL_DB_CLUSTERS"; do
834 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
836 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
837 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
838 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
839 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
843 %triggerpostun -- mysql < 4.1.1
844 # For better compatibility with prevoius versions:
845 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
846 if echo "$config" | grep -q '^/'; then
847 config_file="$config"
848 elif [ -f "/etc/%{name}/$config" ]; then
849 config_file=/etc/%{name}/$config
851 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
852 if [ -z "$clusterdir" ]; then
853 echo >&2 "Can't find cluster dir for $config!"
854 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
857 config_file="$clusterdir/mysqld.conf"
860 if [ ! -f "$config_file" ]; then
861 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
864 echo "Adding option old-passwords to config: $config_file"
865 echo "If you want to use new, better passwords - remove it"
867 # sed magic to add 'old-passwords' to [mysqld] section
868 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
870 a; Compatibility options:
876 %banner -e %{name}-4.1.x <<-EOF
877 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
878 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
882 %triggerpostun -- mysql < 5.1.0
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 "ERROR: Can't find real config file for $config! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
903 configs="$configs $config_file"
907 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
908 echo 'Thus, you should invoke:'
909 for config in $configs; do
911 s/set-variable\s*=\s* //
912 # use # as comment in config
916 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
917 echo "# mysql_upgrade --datadir=$datadir"
919 ) | %banner -e %{name}-5.1
921 %triggerpostun -- mysql < 5.5.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/^language *= *polish/lc-messages = pl_PL/i
951 s/set-variable\s*=\s* //
952 s/^skip-locking/skip-external-locking/
953 # this is not valid for server. it is client option
954 s/default-character-set/# client-config: &/
955 # use # as comment in config
959 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
960 echo "# mysql_upgrade --datadir=$datadir"
962 ) | %banner -e %{name}-5.5
965 %defattr(644,root,root,755)
966 %doc build/support-files/*.cnf build/support-files/*.ini
967 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
968 %attr(754,root,root) /etc/rc.d/init.d/%{name}
969 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
970 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
971 %attr(755,root,root) %{_sbindir}/innochecksum
972 %attr(755,root,root) %{_sbindir}/my_print_defaults
973 %attr(755,root,root) %{_sbindir}/myisamchk
974 %attr(755,root,root) %{_sbindir}/myisamlog
975 %attr(755,root,root) %{_sbindir}/myisampack
976 #%attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
977 %attr(755,root,root) %{_sbindir}/mysql_upgrade
978 %attr(755,root,root) %{_sbindir}/mysqlcheck
979 %attr(755,root,root) %{_sbindir}/mysqld
980 %dir %{_libdir}/%{name}
981 %dir %{_libdir}/%{name}/plugin
982 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
983 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
984 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
985 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
986 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_archive.so
987 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_blackhole.so
988 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_federated.so
989 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
990 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
991 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
992 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
993 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
994 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
996 %attr(755,root,root) %{_libdir}/%{name}/plugin/sphinx.so
999 %attr(755,root,root) %{_libdir}/libmysqlservices.so
1000 %{_mandir}/man1/innochecksum.1*
1001 %{_mandir}/man1/my_print_defaults.1*
1002 %{_mandir}/man1/myisamchk.1*
1003 %{_mandir}/man1/myisamlog.1*
1004 %{_mandir}/man1/myisampack.1*
1005 #%{_mandir}/man1/mysql_fix_privilege_tables.1*
1006 %{_mandir}/man1/mysql_upgrade.1*
1007 %{_mandir}/man1/mysqlcheck.1*
1008 %{_mandir}/man8/mysqld.8*
1011 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
1012 %{_datadir}/%{name}/mysqld.sym
1013 %{_mandir}/man1/*resolve_stack_dump.1*
1016 %attr(700,mysql,mysql) %{_mysqlhome}
1017 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
1018 %attr(751,root,root) /var/lib/mysql
1019 %attr(750,mysql,mysql) %dir /var/log/mysql
1020 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
1021 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
1023 %{_infodir}/mysql.info*
1024 # This is template for configuration file which is created after 'service mysql init'
1025 %{_datadir}/%{name}/mysqld.conf
1026 %{_datadir}/%{name}/mysql_system_tables.sql
1027 %{_datadir}/%{name}/mysql_system_tables_data.sql
1028 %{_datadir}/%{name}/mysql_test_data_timezone.sql
1030 %{_datadir}/%{name}/english
1031 %{_datadir}/%{name}/fill_help_tables.sql
1032 #%{_datadir}/%{name}/mysql_fix_privilege_tables.sql
1033 %lang(cs) %{_datadir}/%{name}/czech
1034 %lang(da) %{_datadir}/%{name}/danish
1035 %lang(de) %{_datadir}/%{name}/german
1036 %lang(el) %{_datadir}/%{name}/greek
1037 %lang(es) %{_datadir}/%{name}/spanish
1038 %lang(et) %{_datadir}/%{name}/estonian
1039 %lang(fr) %{_datadir}/%{name}/french
1040 %lang(hu) %{_datadir}/%{name}/hungarian
1041 %lang(it) %{_datadir}/%{name}/italian
1042 %lang(ja) %{_datadir}/%{name}/japanese
1043 %lang(ko) %{_datadir}/%{name}/korean
1044 %lang(nl) %{_datadir}/%{name}/dutch
1045 %lang(nb) %{_datadir}/%{name}/norwegian
1046 %lang(nn) %{_datadir}/%{name}/norwegian-ny
1047 %lang(pl) %{_datadir}/%{name}/polish
1048 %lang(pt) %{_datadir}/%{name}/portuguese
1049 %lang(ro) %{_datadir}/%{name}/romanian
1050 %lang(ru) %{_datadir}/%{name}/russian
1051 %lang(sr) %{_datadir}/%{name}/serbian
1052 %lang(sk) %{_datadir}/%{name}/slovak
1053 %lang(sv) %{_datadir}/%{name}/swedish
1054 %lang(uk) %{_datadir}/%{name}/ukrainian
1057 %defattr(644,root,root,755)
1058 %dir %{_datadir}/mysql
1059 %{_datadir}/%{name}/charsets
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/msql2mysql
1064 %attr(755,root,root) %{_bindir}/myisam_ftdump
1065 %attr(755,root,root) %{_bindir}/mysql_install_db
1066 %attr(755,root,root) %{_bindir}/mysql_secure_installation
1067 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
1068 %attr(755,root,root) %{_bindir}/perror
1069 %attr(755,root,root) %{_bindir}/replace
1070 %attr(755,root,root) %{_bindir}/resolveip
1071 %{_mandir}/man1/msql2mysql.1*
1072 %{_mandir}/man1/myisam_ftdump.1*
1073 %{_mandir}/man1/mysql_install_db.1*
1074 %{_mandir}/man1/mysql_secure_installation.1*
1075 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1076 %{_mandir}/man1/perror.1*
1077 %{_mandir}/man1/replace.1*
1078 %{_mandir}/man1/resolveip.1*
1080 %files -n mysqlhotcopy
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_bindir}/mysqlhotcopy
1083 %{_mandir}/man1/mysqlhotcopy.1*
1086 %defattr(644,root,root,755)
1087 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
1088 %attr(755,root,root) %{_bindir}/mysql_find_rows
1089 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
1090 %attr(755,root,root) %{_bindir}/mysql_setpermission
1091 %attr(755,root,root) %{_bindir}/mysql_zap
1092 %attr(755,root,root) %{_bindir}/mysqlaccess
1093 %attr(755,root,root) %{_bindir}/mysqldumpslow
1094 %{_mandir}/man1/mysql_convert_table_format.1*
1095 %{_mandir}/man1/mysql_find_rows.1*
1096 %{_mandir}/man1/mysql_fix_extensions.1*
1097 %{_mandir}/man1/mysql_setpermission.1*
1098 %{_mandir}/man1/mysql_zap.1*
1099 %{_mandir}/man1/mysqlaccess.1*
1100 %{_mandir}/man1/mysqldumpslow.1*
1103 %defattr(644,root,root,755)
1104 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
1105 %attr(755,root,root) %{_bindir}/mysql
1106 %attr(755,root,root) %{_bindir}/mysqladmin
1107 %attr(755,root,root) %{_bindir}/mysqlbinlog
1108 %attr(755,root,root) %{_bindir}/mysqlbug
1109 %attr(755,root,root) %{_bindir}/mysqldump
1110 %attr(755,root,root) %{_bindir}/mysqlimport
1111 %attr(755,root,root) %{_bindir}/mysqlshow
1112 %{_mandir}/man1/mysql.1*
1113 %{_mandir}/man1/mysqladmin.1*
1114 %{_mandir}/man1/mysqlbinlog.1*
1115 %{_mandir}/man1/mysqlbug.1*
1116 %{_mandir}/man1/mysqldump.1*
1117 %{_mandir}/man1/mysqlimport.1*
1118 %{_mandir}/man1/mysqlshow.1*
1121 %defattr(644,root,root,755)
1122 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1123 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1124 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1125 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.16
1126 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.*
1127 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.16
1129 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1130 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1134 %defattr(644,root,root,755)
1135 %attr(755,root,root) %{_bindir}/mysql_config
1136 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1137 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1139 %attr(755,root,root) %{_libdir}/libndbclient.so
1141 %{_includedir}/mysql
1142 %{_aclocaldir}/mysql.m4
1143 %{_mandir}/man1/mysql_config.1*
1146 %defattr(644,root,root,755)
1147 %{_libdir}/libmysqlclient.a
1148 %{_libdir}/libmysqlclient_r.a
1150 %{_libdir}/libndbclient.a
1154 %defattr(644,root,root,755)
1155 %attr(755,root,root) %{_bindir}/mysqlslap
1156 %attr(755,root,root) %{_bindir}/mysqltest
1157 %dir %{_datadir}/sql-bench
1158 %{_datadir}/sql-bench/[CDRl]*
1159 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1160 %{_mandir}/man1/mysqlslap.1*
1161 %{_mandir}/man1/mysqltest.1*
1162 %{_mandir}/man1/mysqltest_embedded.1*
1165 #%defattr(644,root,root,755)
1166 #%doc Docs/manual.html Docs/manual_toc.html
1170 %defattr(644,root,root,755)
1171 %attr(755,root,root) %{_sbindir}/ndbd
1172 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1173 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1174 %{_mandir}/man1/ndbd_redo_log_reader.1*
1175 %{_mandir}/man8/ndbd.8*
1178 %defattr(644,root,root,755)
1179 %attr(755,root,root) %{_bindir}/ndb_config
1180 %attr(755,root,root) %{_bindir}/ndb_delete_all
1181 %attr(755,root,root) %{_bindir}/ndb_desc
1182 %attr(755,root,root) %{_bindir}/ndb_drop_index
1183 %attr(755,root,root) %{_bindir}/ndb_drop_table
1184 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1185 %attr(755,root,root) %{_bindir}/ndb_mgm
1186 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1187 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1188 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1189 %attr(755,root,root) %{_bindir}/ndb_restore
1190 %attr(755,root,root) %{_bindir}/ndb_select_all
1191 %attr(755,root,root) %{_bindir}/ndb_select_count
1192 %attr(755,root,root) %{_bindir}/ndb_show_tables
1193 %attr(755,root,root) %{_bindir}/ndb_size.pl
1194 %attr(755,root,root) %{_bindir}/ndb_test_platform
1195 %attr(755,root,root) %{_bindir}/ndb_waiter
1196 %{_mandir}/man1/ndb_config.1*
1197 %{_mandir}/man1/ndb_delete_all.1*
1198 %{_mandir}/man1/ndb_desc.1*
1199 %{_mandir}/man1/ndb_drop_index.1*
1200 %{_mandir}/man1/ndb_drop_table.1*
1201 %{_mandir}/man1/ndb_error_reporter.1*
1202 %{_mandir}/man1/ndb_mgm.1*
1203 %{_mandir}/man1/ndb_print_backup_file.1*
1204 %{_mandir}/man1/ndb_print_schema_file.1*
1205 %{_mandir}/man1/ndb_print_sys_file.1*
1206 %{_mandir}/man1/ndb_restore.1*
1207 %{_mandir}/man1/ndb_select_all.1*
1208 %{_mandir}/man1/ndb_select_count.1*
1209 %{_mandir}/man1/ndb_show_tables.1*
1210 %{_mandir}/man1/ndb_size.pl.1*
1211 %{_mandir}/man1/ndb_waiter.1*
1214 %defattr(644,root,root,755)
1215 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1216 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1217 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1218 %{_mandir}/man8/ndb_mgmd.8*
1221 %defattr(644,root,root,755)
1222 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1223 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1224 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1225 %{_mandir}/man1/ndb_cpcd.1*