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