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_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: 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: response_time_distribution.patch
117 Patch137: error_pad.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
136 URL: http://www.mysql.com/products/community/
138 BuildRequires: cmake >= 2.6
140 %if "%{pld_release}" == "ac"
141 BuildRequires: libstdc++4-devel >= 5:4.0
143 BuildRequires: libstdc++-devel >= 5:4.0
145 BuildRequires: libtool
146 %{?with_tcpd:BuildRequires: libwrap-devel}
147 BuildRequires: ncurses-devel >= 4.2
148 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
149 %{?with_autodeps:BuildRequires: perl-DBI}
150 BuildRequires: perl-devel >= 1:5.6.1
151 BuildRequires: readline-devel >= 4.2
152 BuildRequires: rpm-perlprov >= 4.1-13
153 BuildRequires: rpmbuild(macros) >= 1.597
154 BuildRequires: sed >= 4.0
155 BuildRequires: zlib-devel
156 Requires(post,preun): /sbin/chkconfig
157 Requires(postun): /usr/sbin/groupdel
158 Requires(postun): /usr/sbin/userdel
159 Requires(pre): /bin/id
160 Requires(pre): /usr/bin/getgid
161 Requires(pre): /usr/sbin/groupadd
162 Requires(pre): /usr/sbin/useradd
163 Requires(triggerpostun): sed >= 4.0
164 Requires: %{name}-charsets = %{version}-%{release}
165 Requires: %{name}-libs = %{version}-%{release}
166 Requires: /usr/bin/setsid
167 Requires: rc-scripts >= 0.2.0
168 Suggests: mysql-client
169 %{?with_tcpd:Suggests: tcp_wrappers}
170 Suggests: vim-syntax-mycnf
171 Provides: MySQL-server
172 Provides: group(mysql)
173 Provides: msqlormysql
174 Provides: user(mysql)
176 Obsoletes: mysql-server
177 Conflicts: logrotate < 3.7-4
178 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
180 %define _libexecdir %{_sbindir}
181 %define _localstatedir /var/lib/mysql
182 %define _mysqlhome /home/services/mysql
184 %define _noautoreqdep 'perl(DBD::mysql)'
187 MySQL is a true multi-user, multi-threaded SQL (Structured Query
188 Language) database server. SQL is the most popular database language
189 in the world. MySQL is a client/server implementation that consists of
190 a server daemon mysqld and many different client programs/libraries.
192 The main goals of MySQL are speed, robustness and easy to use. MySQL
193 was originally developed because we at Tcx needed a SQL server that
194 could handle very big databases with magnitude higher speed than what
195 any database vendor could offer to us. We have now been using MySQL
196 since 1996 in a environment with more than 40 databases, 10,000
197 tables, of which more than 500 have more than 7 million rows. This is
198 about 50G of mission critical data.
200 The base upon which MySQL is built is a set of routines that have been
201 used in a highly demanding production environment for many years.
202 While MySQL is still in development, it already offers a rich and
203 highly useful function set.
205 %description -l fr.UTF-8
206 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
207 multi-taches. Le langage SQL est le langage de bases de donnees le
208 plus populaire au monde. MySQL est une implementation client/serveur
209 qui consiste en un serveur (mysqld) et differents
210 programmes/bibliotheques clientes.
212 Les objectifs principaux de MySQL sont: vitesse, robustesse et
213 facilite d'utilisation. MySQL fut originalement developpe parce que
214 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
215 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
216 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
217 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
218 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
219 millions de lignes. Ceci represente environ 50G de donnees critiques.
221 A la base de la conception de MySQL, on retrouve une serie de routines
222 qui ont ete utilisees dans un environnement de production pendant
223 plusieurs annees. Meme si MySQL est encore en developpement, il offre
224 deja une riche et utile serie de fonctions.
226 %description -l pl.UTF-8
227 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
228 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
229 danych. MySQL to implementacja klient/serwer składająca się z demona
230 mysqld i wielu różnych programów i bibliotek klienckich.
232 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
233 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
234 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
235 większą, niż mogli zaoferować inni producenci baz danych. Używają go
236 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
237 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
238 50GB krytycznych danych.
240 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
241 które były używane w bardzo wymagającym środowisku produkcyjnym przez
242 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
243 i użyteczny zbiór funkcji.
245 %description -l de.UTF-8
246 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
247 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
248 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
249 einem Primärschlüssel versehen werden. Es ist aber keine Definition
250 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
251 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
252 Daten verantwortlich. Allein durch die Nutzung externer
253 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
254 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
256 %description -l pt_BR.UTF-8
257 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
258 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
259 dados no mundo. O MySQL é uma implementação cliente/servidor que
260 consiste de um servidor chamado mysqld e diversos
261 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
262 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
263 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
264 pudesse lidar com grandes bases de dados e com uma velocidade muito
265 maior do que a que qualquer vendedor podia nos oferecer. Estamos
266 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
267 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
268 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
269 A base da construção do MySQL é uma série de rotinas que foram usadas
270 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
271 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
272 funções muito ricas e úteis. Veja a documentação para maiores
275 %description -l ru.UTF-8
276 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
277 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
278 дистрибутиве на предмет других участников проекта и прочей информации
281 %description -l uk.UTF-8
282 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
283 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
284 дистрибутиві для інформації про інших учасників проекту та іншої
288 Summary: MySQL - character sets definitions
289 Summary(pl.UTF-8): MySQL - definicje kodowań znaków
290 Group: Applications/Databases
292 %description charsets
293 This package contains character sets definitions needed by both client
296 %description charsets -l pl.UTF-8
297 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
300 %package -n mysqlhotcopy
301 Summary: mysqlhotcopy - A MySQL database backup program
302 Summary(pl.UTF-8): mysqlhotcopy - program do tworzenia kopii zapasowych baz MySQL
303 Group: Applications/Databases
304 Requires: perl-DBD-mysql
306 %description -n mysqlhotcopy
307 mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a
308 database backup quickly. It is the fastest way to make a backup of the
309 database or single tables, but it can be run only on the same machine
310 where the database directories are located. mysqlhotcopy works only
311 for backing up MyISAM and ARCHIVE tables.
313 See innobackup package to backup InnoDB tables.
315 %description -n mysqlhotcopy -l pl.UTF-8
316 mysqlhotcopy wykorzystuje LOCK TABLES, FLUSH TABLES oraz cp i scp do
317 szybkiego tworzenia kopii zapasowych baz danych. Jest to najszybszy
318 sposób wykonania kopii zapasowej bazy danych lub pojedynczych tabel,
319 ale może działać tylko na maszynie, na której znajdują się katalogi z
320 bazą danych. mysqlhotcopy działa tylko dla tabel typu MyISAM i
323 Narzędzie do tworzenia kopii tabel InnoDB znajduje się w pakiecie
327 Summary: MySQL additional utilities
328 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL
329 Group: Applications/Databases
330 Requires: %{name}-client = %{version}-%{release}
331 Requires: %{name}-libs = %{version}-%{release}
334 MySQL additional utilities except Perl scripts (they may be found in
335 %{name}-extras-perl package).
337 %description extras -l pl.UTF-8
338 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
339 pakiecie %{name}-extras-perl).
342 Summary: MySQL additional utilities written in Perl
343 Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu
344 Group: Applications/Databases
345 Requires: %{name}-extras = %{version}-%{release}
346 # this is just for the sake of smooth upgrade, not to break systems
347 Requires: mysqlhotcopy = %{version}-%{release}
348 Requires: perl(DBD::mysql)
350 %description extras-perl
351 MySQL additional utilities written in Perl.
353 %description extras-perl -l pl.UTF-8
354 Dodatkowe narzędzia do MySQL napisane w Perlu.
357 Summary: MySQL - Client
358 Summary(pl.UTF-8): MySQL - Klient
359 Summary(pt.UTF-8): MySQL - Cliente
360 Summary(ru.UTF-8): MySQL клиент
361 Summary(uk.UTF-8): MySQL клієнт
362 Group: Applications/Databases
363 Requires: %{name}-charsets = %{version}-%{release}
364 Requires: %{name}-libs = %{version}-%{release}
365 Obsoletes: MySQL-client
368 This package contains the standard MySQL clients.
370 %description client -l fr.UTF-8
371 Ce package contient les clients MySQL standards.
373 %description client -l pl.UTF-8
374 Standardowe programy klienckie MySQL.
376 %description client -l pt_BR.UTF-8
377 Este pacote contém os clientes padrão para o MySQL.
379 %description client -l ru.UTF-8
380 Этот пакет содержит только клиент MySQL.
382 %description client -l uk.UTF-8
383 Цей пакет містить тільки клієнта MySQL.
386 Summary: Shared libraries for MySQL
387 Summary(pl.UTF-8): Biblioteki współdzielone MySQL
389 Obsoletes: libmysql10
390 Obsoletes: mysql-doc < 4.1.12
393 Shared libraries for MySQL.
395 %description libs -l pl.UTF-8
396 Biblioteki współdzielone MySQL.
399 Summary: MySQL - development header files and other files
400 Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i inne dla programistów
401 Summary(pt.UTF-8): MySQL - Medições de desempenho
402 Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика
403 Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста
404 Group: Development/Libraries
405 Requires: %{name}-libs = %{version}-%{release}
406 %{?with_ssl:Requires: openssl-devel}
408 Obsoletes: MySQL-devel
409 Obsoletes: libmysql10-devel
412 This package contains the development header files and other files
413 necessary to develop MySQL client applications.
415 %description devel -l fr.UTF-8
416 Ce package contient les fichiers entetes et les librairies de
417 developpement necessaires pour developper des applications clientes
420 %description devel -l pl.UTF-8
421 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
424 %description devel -l pt_BR.UTF-8
425 Este pacote contém os arquivos de cabeçalho (header files) e
426 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
428 %description devel -l ru.UTF-8
429 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
430 разработки клиентских приложений.
432 %description devel -l uk.UTF-8
433 Цей пакет містить хедери та бібліотеки програміста, необхідні для
434 розробки програм-клієнтів.
437 Summary: MySQL static libraries
438 Summary(pl.UTF-8): Biblioteki statyczne MySQL
439 Summary(ru.UTF-8): MySQL - статические библиотеки
440 Summary(uk.UTF-8): MySQL - статичні бібліотеки
441 Group: Development/Libraries
442 Requires: %{name}-devel = %{version}-%{release}
443 Obsoletes: MySQL-static
446 MySQL static libraries.
448 %description static -l pl.UTF-8
449 Biblioteki statyczne MySQL.
451 %description static -l ru.UTF-8
452 Этот пакет содержит статические библиотеки разработчика, необходимые
453 для разработки клиентских приложений.
455 %description static -l uk.UTF-8
456 Цей пакет містить статичні бібліотеки програміста, необхідні для
457 розробки програм-клієнтів.
460 Summary: MySQL - Benchmarks
461 Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
462 Summary(pt.UTF-8): MySQL - Medições de desempenho
463 Summary(ru.UTF-8): MySQL - бенчмарки
464 Summary(uk.UTF-8): MySQL - бенчмарки
465 Group: Applications/Databases
466 Requires: %{name} = %{version}-%{release}
467 Requires: %{name}-client
468 Requires: perl(DBD::mysql)
469 Obsoletes: MySQL-bench
472 This package contains MySQL benchmark scripts and data.
474 %description bench -l pl.UTF-8
475 Programy testujące szybkość serwera MySQL.
477 %description bench -l pt_BR.UTF-8
478 Este pacote contém medições de desempenho de scripts e dados do MySQL.
480 %description bench -l ru.UTF-8
481 Этот пакет содержит скрипты и данные для оценки производительности
484 %description bench -l uk.UTF-8
485 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
488 Summary: MySQL manual
489 Summary(pl.UTF-8): Podręcznik użytkownika MySQL
490 Group: Applications/Databases
493 This package contains manual in HTML format.
495 %description doc -l pl.UTF-8
496 Podręcznik MySQL-a w formacie HTML.
499 Summary: MySQL - NDB Storage Engine Daemon
500 Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
501 Group: Applications/Databases
502 Requires: %{name}-libs = %{version}-%{release}
505 This package contains the standard MySQL NDB Storage Engine Daemon.
507 %description ndb -l pl.UTF-8
508 Ten pakiet zawiera standardowego demona silnika przechowywania danych
512 Summary: MySQL - NDB Clients
513 Summary(pl.UTF-8): MySQL - programy klienckie NDB
514 Group: Applications/Databases
515 Requires: %{name}-libs = %{version}-%{release}
517 %description ndb-client
518 This package contains the standard MySQL NDB Clients.
520 %description ndb-client -l pl.UTF-8
521 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
524 Summary: MySQL - NDB Management Daemon
525 Summary(pl.UTF-8): MySQL - demon zarządzający NDB
526 Group: Applications/Databases
527 Requires: %{name}-libs = %{version}-%{release}
530 This package contains the standard MySQL NDB Management Daemon.
532 %description ndb-mgm -l pl.UTF-8
533 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
536 Summary: MySQL - NDB CPC Daemon
537 Summary(pl.UTF-8): MySQL - demon NDB CPC
538 Group: Applications/Databases
539 Requires: %{name}-libs = %{version}-%{release}
542 This package contains the standard MySQL NDB CPC Daemon.
544 %description ndb-cpc -l pl.UTF-8
545 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
548 %setup -q %{?with_sphinx:-a100}
550 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
551 mv sphinx-*/mysqlse storage/sphinx
554 #%patch2 -p1 # NEEDS CHECK, which exact program needs -lc++
627 # to get these files rebuild
634 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
635 # (it defaults to first cluster but user may change it to whatever
638 %if "%{pld_release}" == "ac"
639 # add suffix, but allow ccache, etc in ~/.rpmmacros
640 %{expand:%%define __cc %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
641 %{expand:%%define __cxx %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
642 %{expand:%%define __cpp %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
645 # upstream has fallen down badly on symbol versioning, do it ourselves
647 cp -a %{SOURCE15} libmysql/libmysql.version
650 -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
651 -DFEATURE_SET="community" \
652 -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
653 -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
654 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
655 %{?debug:-DWITH_DEBUG=ON} \
656 -DWITH_FAST_MUTEXES=ON \
659 -DWITH_READLINE=OFF \
660 %if "%{pld_release}" == "ac"
661 -DWITH_SSL=%{?with_ssl:bundled}%{!?with_ssl:no} \
663 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
666 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
667 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
668 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
669 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
670 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
671 -DINSTALL_LAYOUT=RPM \
672 -DINSTALL_MYSQLTESTDIR_RPM="" \
673 -DINSTALL_SQLBENCHDIR=%{_datadir} \
674 -DINSTALL_SUPPORTFILESDIR=%{_datadir}/%{name}-support \
679 %{?with_tests:%{__make} test}
682 rm -rf $RPM_BUILD_ROOT
683 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
684 $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
685 $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
687 %{__make} -C build install \
688 DESTDIR=$RPM_BUILD_ROOT
690 cp -a Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
692 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
693 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
694 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
695 # This is template for configuration file which is created after 'service mysql init'
696 cp -a %{SOURCE4} mysqld.conf
697 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
698 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
700 # remove innodb directives from mysqld.conf if mysqld is configured without
701 %if %{without innodb}
702 cp mysqld.conf mysqld.tmp
703 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
706 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
707 cp mysqld.conf mysqld.tmp
708 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
710 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
711 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
712 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
716 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
717 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
718 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
719 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
720 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
721 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
724 # symlinks point to the .so file, fix it
725 ln -sf libmysqlclient.so.18 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.18
726 ln -sf libmysqlclient.so.18.0.0 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.18.0.0
728 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
729 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
731 # remove known unpackaged files
732 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-support
734 # rename not to be so generic name
735 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
736 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
738 # not useful without -debug build
739 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
740 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
741 # generate symbols file, so one can generate backtrace using it
742 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
743 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
744 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
746 # do not clobber users $PATH
747 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
748 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
749 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
750 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
751 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
752 #mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
753 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
754 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
755 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
757 # delete - functionality in initscript / rpm
758 # note: mysql_install_db (and thus resolveip) are needed by digikam
759 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
760 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
761 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
762 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
763 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
764 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
765 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg-utf8.txt
766 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
767 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
768 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
769 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
770 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
772 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
773 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
774 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
775 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
776 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
777 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
778 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
781 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
784 rm -rf $RPM_BUILD_ROOT
787 %groupadd -g 89 mysql
788 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
791 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
793 /sbin/chkconfig --add mysql
794 %service mysql restart
797 if [ "$1" = "0" ]; then
798 %service -q mysql stop
799 /sbin/chkconfig --del mysql
803 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
806 if [ "$1" = "0" ]; then
812 /sbin/chkconfig --add mysql-ndb
813 %service mysql-ndb restart "mysql NDB engine"
816 if [ "$1" = "0" ]; then
817 %service mysql-ndb stop
818 /sbin/chkconfig --del mysql-ndb
822 /sbin/chkconfig --add mysql-ndb-mgm
823 %service mysql-ndb-mgm restart "mysql NDB management node"
826 if [ "$1" = "0" ]; then
827 %service mysql-ndb-mgm stop
828 /sbin/chkconfig --del mysql-ndb-mgm
832 /sbin/chkconfig --add mysql-ndb-cpc
833 %service mysql-ndb-cpc restart "mysql NDB CPC"
836 if [ "$1" = "0" ]; then
837 %service mysql-ndb-cpc stop
838 /sbin/chkconfig --del mysql-ndb-cpc
841 %post libs -p /sbin/ldconfig
842 %postun libs -p /sbin/ldconfig
844 %triggerpostun -- mysql < 4.0.20-2.4
845 # For clusters in /etc/%{name}/clusters.conf
846 if [ -f /etc/sysconfig/mysql ]; then
847 . /etc/sysconfig/mysql
848 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
849 for i in "$MYSQL_DB_CLUSTERS"; do
850 echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
852 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
853 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
854 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
855 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
859 %triggerpostun -- mysql < 4.1.1
860 # For better compatibility with prevoius versions:
861 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
862 if echo "$config" | grep -q '^/'; then
863 config_file="$config"
864 elif [ -f "/etc/%{name}/$config" ]; then
865 config_file=/etc/%{name}/$config
867 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
868 if [ -z "$clusterdir" ]; then
869 echo >&2 "Can't find cluster dir for $config!"
870 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
873 config_file="$clusterdir/mysqld.conf"
876 if [ ! -f "$config_file" ]; then
877 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
880 echo "Adding option old-passwords to config: $config_file"
881 echo "If you want to use new, better passwords - remove it"
883 # sed magic to add 'old-passwords' to [mysqld] section
884 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
886 a; Compatibility options:
892 %banner -e %{name}-4.1.x <<-EOF
893 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
894 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
898 %triggerpostun -- mysql < 5.1.0
900 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
901 if echo "$config" | grep -q '^/'; then
902 config_file="$config"
903 elif [ -f "/etc/%{name}/$config" ]; then
904 config_file=/etc/%{name}/$config
906 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
907 if [ -z "$clusterdir" ]; then
908 echo >&2 "Can't find cluster dir for $config!"
909 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
912 config_file="$clusterdir/mysqld.conf"
915 if [ ! -f "$config_file" ]; then
916 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/"
919 configs="$configs $config_file"
923 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
924 echo 'Thus, you should invoke:'
925 for config in $configs; do
927 s/set-variable\s*=\s* //
928 # use # as comment in config
932 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
933 echo "# mysql_upgrade --datadir=$datadir"
935 ) | %banner -e %{name}-5.1
937 %triggerpostun -- mysql < 5.5.0
939 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
940 if echo "$config" | grep -q '^/'; then
941 config_file="$config"
942 elif [ -f "/etc/%{name}/$config" ]; then
943 config_file=/etc/%{name}/$config
945 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
946 if [ -z "$clusterdir" ]; then
947 echo >&2 "Can't find cluster dir for $config!"
948 echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
951 config_file="$clusterdir/mysqld.conf"
954 if [ ! -f "$config_file" ]; then
955 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/"
958 configs="$configs $config_file"
962 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
963 echo 'Thus, you should invoke:'
964 for config in $configs; do
966 s/^language *= *polish/lc-messages = pl_PL/i
967 s/set-variable\s*=\s* //
968 s/^skip-locking/skip-external-locking/
969 # this is not valid for server. it is client option
970 s/default-character-set/# client-config: &/
971 # use # as comment in config
975 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
976 echo "# mysql_upgrade --datadir=$datadir"
978 ) | %banner -e %{name}-5.5
981 %defattr(644,root,root,755)
982 %doc build/support-files/*.cnf build/support-files/*.ini
983 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
984 %attr(754,root,root) /etc/rc.d/init.d/%{name}
985 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
986 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
987 %attr(755,root,root) %{_sbindir}/innochecksum
988 %attr(755,root,root) %{_sbindir}/my_print_defaults
989 %attr(755,root,root) %{_sbindir}/myisamchk
990 %attr(755,root,root) %{_sbindir}/myisamlog
991 %attr(755,root,root) %{_sbindir}/myisampack
992 #%attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
993 %attr(755,root,root) %{_sbindir}/mysql_upgrade
994 %attr(755,root,root) %{_sbindir}/mysqlcheck
995 %attr(755,root,root) %{_sbindir}/mysqld
996 %dir %{_libdir}/%{name}
997 %dir %{_libdir}/%{name}/plugin
998 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
999 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
1000 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
1001 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
1002 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_archive.so
1003 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_blackhole.so
1004 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_federated.so
1005 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
1006 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
1007 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
1008 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
1009 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
1010 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
1012 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
1015 %attr(755,root,root) %{_libdir}/libmysqlservices.so
1016 %{_mandir}/man1/innochecksum.1*
1017 %{_mandir}/man1/my_print_defaults.1*
1018 %{_mandir}/man1/myisamchk.1*
1019 %{_mandir}/man1/myisamlog.1*
1020 %{_mandir}/man1/myisampack.1*
1021 #%{_mandir}/man1/mysql_fix_privilege_tables.1*
1022 %{_mandir}/man1/mysql_upgrade.1*
1023 %{_mandir}/man1/mysqlcheck.1*
1024 %{_mandir}/man8/mysqld.8*
1027 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
1028 %{_datadir}/%{name}/mysqld.sym
1029 %{_mandir}/man1/*resolve_stack_dump.1*
1032 %attr(700,mysql,mysql) %{_mysqlhome}
1033 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
1034 %attr(751,root,root) /var/lib/mysql
1035 %attr(750,mysql,mysql) %dir /var/log/mysql
1036 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
1037 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
1039 %{_infodir}/mysql.info*
1040 # This is template for configuration file which is created after 'service mysql init'
1041 %{_datadir}/%{name}/mysqld.conf
1042 %{_datadir}/%{name}/mysql_system_tables.sql
1043 %{_datadir}/%{name}/mysql_system_tables_data.sql
1044 %{_datadir}/%{name}/mysql_test_data_timezone.sql
1046 %{_datadir}/%{name}/english
1047 %{_datadir}/%{name}/fill_help_tables.sql
1048 #%{_datadir}/%{name}/mysql_fix_privilege_tables.sql
1049 %lang(cs) %{_datadir}/%{name}/czech
1050 %lang(da) %{_datadir}/%{name}/danish
1051 %lang(de) %{_datadir}/%{name}/german
1052 %lang(el) %{_datadir}/%{name}/greek
1053 %lang(es) %{_datadir}/%{name}/spanish
1054 %lang(et) %{_datadir}/%{name}/estonian
1055 %lang(fr) %{_datadir}/%{name}/french
1056 %lang(hu) %{_datadir}/%{name}/hungarian
1057 %lang(it) %{_datadir}/%{name}/italian
1058 %lang(ja) %{_datadir}/%{name}/japanese
1059 %lang(ko) %{_datadir}/%{name}/korean
1060 %lang(nl) %{_datadir}/%{name}/dutch
1061 %lang(nb) %{_datadir}/%{name}/norwegian
1062 %lang(nn) %{_datadir}/%{name}/norwegian-ny
1063 %lang(pl) %{_datadir}/%{name}/polish
1064 %lang(pt) %{_datadir}/%{name}/portuguese
1065 %lang(ro) %{_datadir}/%{name}/romanian
1066 %lang(ru) %{_datadir}/%{name}/russian
1067 %lang(sr) %{_datadir}/%{name}/serbian
1068 %lang(sk) %{_datadir}/%{name}/slovak
1069 %lang(sv) %{_datadir}/%{name}/swedish
1070 %lang(uk) %{_datadir}/%{name}/ukrainian
1073 %defattr(644,root,root,755)
1074 %dir %{_datadir}/mysql
1075 %{_datadir}/%{name}/charsets
1078 %defattr(644,root,root,755)
1079 %attr(755,root,root) %{_bindir}/msql2mysql
1080 %attr(755,root,root) %{_bindir}/myisam_ftdump
1081 %attr(755,root,root) %{_bindir}/mysql_install_db
1082 %attr(755,root,root) %{_bindir}/mysql_secure_installation
1083 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
1084 %attr(755,root,root) %{_bindir}/perror
1085 %attr(755,root,root) %{_bindir}/replace
1086 %attr(755,root,root) %{_bindir}/resolveip
1087 %{_mandir}/man1/msql2mysql.1*
1088 %{_mandir}/man1/myisam_ftdump.1*
1089 %{_mandir}/man1/mysql_install_db.1*
1090 %{_mandir}/man1/mysql_secure_installation.1*
1091 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1092 %{_mandir}/man1/perror.1*
1093 %{_mandir}/man1/replace.1*
1094 %{_mandir}/man1/resolveip.1*
1096 %files -n mysqlhotcopy
1097 %defattr(644,root,root,755)
1098 %attr(755,root,root) %{_bindir}/mysqlhotcopy
1099 %{_mandir}/man1/mysqlhotcopy.1*
1102 %defattr(644,root,root,755)
1103 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
1104 %attr(755,root,root) %{_bindir}/mysql_find_rows
1105 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
1106 %attr(755,root,root) %{_bindir}/mysql_setpermission
1107 %attr(755,root,root) %{_bindir}/mysql_zap
1108 %attr(755,root,root) %{_bindir}/mysqlaccess
1109 %attr(755,root,root) %{_bindir}/mysqldumpslow
1110 %{_mandir}/man1/mysql_convert_table_format.1*
1111 %{_mandir}/man1/mysql_find_rows.1*
1112 %{_mandir}/man1/mysql_fix_extensions.1*
1113 %{_mandir}/man1/mysql_setpermission.1*
1114 %{_mandir}/man1/mysql_zap.1*
1115 %{_mandir}/man1/mysqlaccess.1*
1116 %{_mandir}/man1/mysqldumpslow.1*
1119 %defattr(644,root,root,755)
1120 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
1121 %attr(755,root,root) %{_bindir}/mysql
1122 %attr(755,root,root) %{_bindir}/mysqladmin
1123 %attr(755,root,root) %{_bindir}/mysqlbinlog
1124 %attr(755,root,root) %{_bindir}/mysqlbug
1125 %attr(755,root,root) %{_bindir}/mysqldump
1126 %attr(755,root,root) %{_bindir}/mysqlimport
1127 %attr(755,root,root) %{_bindir}/mysqlshow
1128 %{_mandir}/man1/mysql.1*
1129 %{_mandir}/man1/mysqladmin.1*
1130 %{_mandir}/man1/mysqlbinlog.1*
1131 %{_mandir}/man1/mysqlbug.1*
1132 %{_mandir}/man1/mysqldump.1*
1133 %{_mandir}/man1/mysqlimport.1*
1134 %{_mandir}/man1/mysqlshow.1*
1137 %defattr(644,root,root,755)
1138 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1139 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1140 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1141 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.18
1142 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.*
1143 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.18
1145 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1146 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1150 %defattr(644,root,root,755)
1151 %attr(755,root,root) %{_bindir}/mysql_config
1152 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1153 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1155 %attr(755,root,root) %{_libdir}/libndbclient.so
1157 %{_includedir}/mysql
1158 %{_aclocaldir}/mysql.m4
1159 %{_mandir}/man1/mysql_config.1*
1162 %defattr(644,root,root,755)
1163 %{_libdir}/libmysqlclient.a
1164 %{_libdir}/libmysqlclient_r.a
1166 %{_libdir}/libndbclient.a
1170 %defattr(644,root,root,755)
1171 %attr(755,root,root) %{_bindir}/mysqlslap
1172 %attr(755,root,root) %{_bindir}/mysqltest
1173 %dir %{_datadir}/sql-bench
1174 %{_datadir}/sql-bench/[CDRl]*
1175 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1176 %{_mandir}/man1/mysqlslap.1*
1177 %{_mandir}/man1/mysqltest.1*
1178 %{_mandir}/man1/mysqltest_embedded.1*
1181 #%defattr(644,root,root,755)
1182 #%doc Docs/manual.html Docs/manual_toc.html
1186 %defattr(644,root,root,755)
1187 %attr(755,root,root) %{_sbindir}/ndbd
1188 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1189 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1190 %{_mandir}/man1/ndbd_redo_log_reader.1*
1191 %{_mandir}/man8/ndbd.8*
1194 %defattr(644,root,root,755)
1195 %attr(755,root,root) %{_bindir}/ndb_config
1196 %attr(755,root,root) %{_bindir}/ndb_delete_all
1197 %attr(755,root,root) %{_bindir}/ndb_desc
1198 %attr(755,root,root) %{_bindir}/ndb_drop_index
1199 %attr(755,root,root) %{_bindir}/ndb_drop_table
1200 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1201 %attr(755,root,root) %{_bindir}/ndb_mgm
1202 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1203 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1204 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1205 %attr(755,root,root) %{_bindir}/ndb_restore
1206 %attr(755,root,root) %{_bindir}/ndb_select_all
1207 %attr(755,root,root) %{_bindir}/ndb_select_count
1208 %attr(755,root,root) %{_bindir}/ndb_show_tables
1209 %attr(755,root,root) %{_bindir}/ndb_size.pl
1210 %attr(755,root,root) %{_bindir}/ndb_test_platform
1211 %attr(755,root,root) %{_bindir}/ndb_waiter
1212 %{_mandir}/man1/ndb_config.1*
1213 %{_mandir}/man1/ndb_delete_all.1*
1214 %{_mandir}/man1/ndb_desc.1*
1215 %{_mandir}/man1/ndb_drop_index.1*
1216 %{_mandir}/man1/ndb_drop_table.1*
1217 %{_mandir}/man1/ndb_error_reporter.1*
1218 %{_mandir}/man1/ndb_mgm.1*
1219 %{_mandir}/man1/ndb_print_backup_file.1*
1220 %{_mandir}/man1/ndb_print_schema_file.1*
1221 %{_mandir}/man1/ndb_print_sys_file.1*
1222 %{_mandir}/man1/ndb_restore.1*
1223 %{_mandir}/man1/ndb_select_all.1*
1224 %{_mandir}/man1/ndb_select_count.1*
1225 %{_mandir}/man1/ndb_show_tables.1*
1226 %{_mandir}/man1/ndb_size.pl.1*
1227 %{_mandir}/man1/ndb_waiter.1*
1230 %defattr(644,root,root,755)
1231 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1232 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1233 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1234 %{_mandir}/man8/ndb_mgmd.8*
1237 %defattr(644,root,root,755)
1238 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1239 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1240 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1241 %{_mandir}/man1/ndb_cpcd.1*