]> git.pld-linux.org Git - packages/mysql.git/blob - mysql.spec
fe73fdcfce8a52e4684901e7806b5ab996493279
[packages/mysql.git] / mysql.spec
1 # TODO:
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)
4 # - unpackaged:
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)
15 #
16 # Conditional build:
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
27
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数据库服务器
37 Name:           mysql
38 Version:        5.5.15
39 Release:        2
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
47 Source1:        %{name}.init
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
59 Source14:       my.cnf
60 # from fedora
61 Source15:       lib%{name}.version
62 Patch2:         %{name}-c++.patch
63 Patch3:         %{name}-info.patch
64 # from fedora
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
75 # from fedora
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
135 # </percona>
136 URL:            http://www.mysql.com/products/community/
137 BuildRequires:  bison
138 BuildRequires:  cmake >= 2.6
139 BuildRequires:  groff
140 %if "%{pld_release}" == "ac"
141 BuildRequires:  libstdc++4-devel >= 5:4.0
142 %else
143 BuildRequires:  libstdc++-devel >= 5:4.0
144 %endif
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)
175 Obsoletes:      MySQL
176 Obsoletes:      mysql-server
177 Conflicts:      logrotate < 3.7-4
178 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
179
180 %define         _libexecdir     %{_sbindir}
181 %define         _localstatedir  /var/lib/mysql
182 %define         _mysqlhome      /home/services/mysql
183
184 %define         _noautoreqdep   'perl(DBD::mysql)'
185
186 %description
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.
191
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.
199
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.
204
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.
211
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.
220
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.
225
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.
231
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.
239
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.
244
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.
255
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
273 informações.
274
275 %description -l ru.UTF-8
276 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
277 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
278 дистрибутиве на предмет других участников проекта и прочей информации
279 о MySQL.
280
281 %description -l uk.UTF-8
282 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
283 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
284 дистрибутиві для інформації про інших учасників проекту та іншої
285 інформації.
286
287 %package charsets
288 Summary:        MySQL - character sets definitions
289 Summary(pl.UTF-8):      MySQL - definicje kodowań znaków
290 Group:          Applications/Databases
291
292 %description charsets
293 This package contains character sets definitions needed by both client
294 and server.
295
296 %description charsets -l pl.UTF-8
297 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
298 klienta.
299
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
305
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.
312
313 See innobackup package to backup InnoDB tables.
314
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
321 ARCHIVE.
322
323 Narzędzie do tworzenia kopii tabel InnoDB znajduje się w pakiecie
324 innobackup.
325
326 %package extras
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}
332
333 %description extras
334 MySQL additional utilities except Perl scripts (they may be found in
335 %{name}-extras-perl package).
336
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).
340
341 %package 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)
349
350 %description extras-perl
351 MySQL additional utilities written in Perl.
352
353 %description extras-perl -l pl.UTF-8
354 Dodatkowe narzędzia do MySQL napisane w Perlu.
355
356 %package client
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
366
367 %description client
368 This package contains the standard MySQL clients.
369
370 %description client -l fr.UTF-8
371 Ce package contient les clients MySQL standards.
372
373 %description client -l pl.UTF-8
374 Standardowe programy klienckie MySQL.
375
376 %description client -l pt_BR.UTF-8
377 Este pacote contém os clientes padrão para o MySQL.
378
379 %description client -l ru.UTF-8
380 Этот пакет содержит только клиент MySQL.
381
382 %description client -l uk.UTF-8
383 Цей пакет містить тільки клієнта MySQL.
384
385 %package libs
386 Summary:        Shared libraries for MySQL
387 Summary(pl.UTF-8):      Biblioteki współdzielone MySQL
388 Group:          Libraries
389 Obsoletes:      libmysql10
390 Obsoletes:      mysql-doc < 4.1.12
391
392 %description libs
393 Shared libraries for MySQL.
394
395 %description libs -l pl.UTF-8
396 Biblioteki współdzielone MySQL.
397
398 %package devel
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}
407 Requires:       zlib-devel
408 Obsoletes:      MySQL-devel
409 Obsoletes:      libmysql10-devel
410
411 %description devel
412 This package contains the development header files and other files
413 necessary to develop MySQL client applications.
414
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
418 MySQL.
419
420 %description devel -l pl.UTF-8
421 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
422 klienckich MySQL.
423
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.
427
428 %description devel -l ru.UTF-8
429 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
430 разработки клиентских приложений.
431
432 %description devel -l uk.UTF-8
433 Цей пакет містить хедери та бібліотеки програміста, необхідні для
434 розробки програм-клієнтів.
435
436 %package static
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
444
445 %description static
446 MySQL static libraries.
447
448 %description static -l pl.UTF-8
449 Biblioteki statyczne MySQL.
450
451 %description static -l ru.UTF-8
452 Этот пакет содержит статические библиотеки разработчика, необходимые
453 для разработки клиентских приложений.
454
455 %description static -l uk.UTF-8
456 Цей пакет містить статичні бібліотеки програміста, необхідні для
457 розробки програм-клієнтів.
458
459 %package bench
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
470
471 %description bench
472 This package contains MySQL benchmark scripts and data.
473
474 %description bench -l pl.UTF-8
475 Programy testujące szybkość serwera MySQL.
476
477 %description bench -l pt_BR.UTF-8
478 Este pacote contém medições de desempenho de scripts e dados do MySQL.
479
480 %description bench -l ru.UTF-8
481 Этот пакет содержит скрипты и данные для оценки производительности
482 MySQL.
483
484 %description bench -l uk.UTF-8
485 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
486
487 %package doc
488 Summary:        MySQL manual
489 Summary(pl.UTF-8):      Podręcznik użytkownika MySQL
490 Group:          Applications/Databases
491
492 %description doc
493 This package contains manual in HTML format.
494
495 %description doc -l pl.UTF-8
496 Podręcznik MySQL-a w formacie HTML.
497
498 %package ndb
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}
503
504 %description ndb
505 This package contains the standard MySQL NDB Storage Engine Daemon.
506
507 %description ndb -l pl.UTF-8
508 Ten pakiet zawiera standardowego demona silnika przechowywania danych
509 NDB.
510
511 %package ndb-client
512 Summary:        MySQL - NDB Clients
513 Summary(pl.UTF-8):      MySQL - programy klienckie NDB
514 Group:          Applications/Databases
515 Requires:       %{name}-libs = %{version}-%{release}
516
517 %description ndb-client
518 This package contains the standard MySQL NDB Clients.
519
520 %description ndb-client -l pl.UTF-8
521 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
522
523 %package ndb-mgm
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}
528
529 %description ndb-mgm
530 This package contains the standard MySQL NDB Management Daemon.
531
532 %description ndb-mgm -l pl.UTF-8
533 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
534
535 %package ndb-cpc
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}
540
541 %description ndb-cpc
542 This package contains the standard MySQL NDB CPC Daemon.
543
544 %description ndb-cpc -l pl.UTF-8
545 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
546
547 %prep
548 %setup -q %{?with_sphinx:-a100}
549 %if %{with sphinx}
550 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
551 mv sphinx-*/mysqlse storage/sphinx
552 %patch18 -p1
553 %endif
554 #%patch2 -p1 # NEEDS CHECK, which exact program needs -lc++
555 %patch3 -p1
556 %patch5 -p1
557 %patch6 -p1
558 %patch7 -p1
559 %patch8 -p1
560 %patch9 -p1
561 %patch11 -p1
562 %patch12 -p1
563 %patch14 -p0
564 %patch19 -p1
565 %patch20 -p1
566 cd storage/sphinx
567 %patch21 -p1
568 cd ../..
569 # <percona %patches>
570 %patch100 -p1
571 %patch101 -p1
572 %patch102 -p1
573 %patch103 -p1
574 %patch104 -p1
575 %patch105 -p1
576 %patch106 -p1
577 %patch107 -p1
578 %patch108 -p1
579 %patch109 -p1
580 %patch110 -p1
581 %patch111 -p1
582 %patch112 -p1
583 %patch113 -p1
584 %patch114 -p1
585 %patch115 -p1
586 %patch116 -p1
587 %patch117 -p1
588 %patch118 -p1
589 %patch119 -p1
590 %patch120 -p1
591 %patch121 -p1
592 %patch122 -p1
593 %patch123 -p1
594 %patch124 -p1
595 %patch125 -p1
596 %patch126 -p1
597 %patch127 -p1
598 %patch128 -p1
599 %patch129 -p1
600 %patch130 -p1
601 %patch131 -p1
602 %patch132 -p1
603 %patch133 -p1
604 %patch134 -p1
605 %patch135 -p1
606 %patch136 -p1
607 %patch137 -p1
608 %patch138 -p1
609 %patch139 -p1
610 %patch140 -p1
611 %patch141 -p1
612 %patch142 -p1
613 %patch143 -p1
614 %patch144 -p1
615 %patch145 -p1
616 %patch146 -p1
617 %patch147 -p1
618 %patch148 -p1
619 %patch149 -p1
620 %patch150 -p1
621 %patch151 -p1
622 %patch152 -p1
623 %patch153 -p1
624 %patch154 -p1
625 # </percona>
626
627 # to get these files rebuild
628 rm sql/sql_yacc.cc
629 rm sql/sql_yacc.h
630
631 %build
632 install -d build
633 cd build
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
636 # cluster it wants)
637
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,')}
643 %endif
644
645 # upstream has fallen down badly on symbol versioning, do it ourselves
646 install -d libmysql
647 cp -a %{SOURCE15} libmysql/libmysql.version
648
649 %cmake \
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 \
657         -DWITH_PIC=ON \
658         -DWITH_LIBEDIT=OFF \
659         -DWITH_READLINE=OFF \
660 %if "%{pld_release}" == "ac"
661         -DWITH_SSL=%{?with_ssl:bundled}%{!?with_ssl:no} \
662 %else
663         -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
664 %endif
665         -DWITH_ZLIB=system \
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 \
675         ..
676
677 %{__make}
678
679 %{?with_tests:%{__make} test}
680
681 %install
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}}
686
687 %{__make} -C build install \
688         DESTDIR=$RPM_BUILD_ROOT
689
690 cp -a Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
691
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
699
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
704 %endif
705
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
709
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
713
714 # NDB
715 %if %{with ndb}
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
722 %endif
723
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
727
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
730
731 # remove known unpackaged files
732 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-support
733
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
737
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}
745
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
756
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*
771
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
779
780 # not needed
781 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
782
783 %clean
784 rm -rf $RPM_BUILD_ROOT
785
786 %pre
787 %groupadd -g 89 mysql
788 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
789
790 %post
791 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
792 /sbin/ldconfig
793 /sbin/chkconfig --add mysql
794 %service mysql restart
795
796 %preun
797 if [ "$1" = "0" ]; then
798         %service -q mysql stop
799         /sbin/chkconfig --del mysql
800 fi
801
802 %postun
803 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
804 /sbin/ldconfig
805
806 if [ "$1" = "0" ]; then
807         %userremove mysql
808         %groupremove mysql
809 fi
810
811 %post ndb
812 /sbin/chkconfig --add mysql-ndb
813 %service mysql-ndb restart "mysql NDB engine"
814
815 %preun ndb
816 if [ "$1" = "0" ]; then
817         %service mysql-ndb stop
818         /sbin/chkconfig --del mysql-ndb
819 fi
820
821 %post ndb-mgm
822 /sbin/chkconfig --add mysql-ndb-mgm
823 %service mysql-ndb-mgm restart "mysql NDB management node"
824
825 %preun ndb-mgm
826 if [ "$1" = "0" ]; then
827         %service mysql-ndb-mgm stop
828         /sbin/chkconfig --del mysql-ndb-mgm
829 fi
830
831 %post ndb-cpc
832 /sbin/chkconfig --add mysql-ndb-cpc
833 %service mysql-ndb-cpc restart "mysql NDB CPC"
834
835 %preun ndb-cpc
836 if [ "$1" = "0" ]; then
837         %service mysql-ndb-cpc stop
838         /sbin/chkconfig --del mysql-ndb-cpc
839 fi
840
841 %post   libs -p /sbin/ldconfig
842 %postun libs -p /sbin/ldconfig
843
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
851                 done
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."
856         fi
857 fi
858
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
866         else
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"
871                         exit 1
872                 fi
873                 config_file="$clusterdir/mysqld.conf"
874         fi
875
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/"
878                         exit 1
879         fi
880         echo "Adding option old-passwords to config: $config_file"
881         echo "If you want to use new, better passwords - remove it"
882
883         # sed magic to add 'old-passwords' to [mysqld] section
884         sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
885                 a
886                 a; Compatibility options:
887                 aold-passwords
888         }
889         ' $config_file
890 done
891
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
895 EOF
896 #'
897
898 %triggerpostun -- mysql < 5.1.0
899 configs=""
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
905         else
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"
910                         exit 1
911                 fi
912                 config_file="$clusterdir/mysqld.conf"
913         fi
914
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/"
917                 continue
918         fi
919         configs="$configs $config_file"
920 done
921
922 (
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
926         sed -i -e '
927                 s/set-variable\s*=\s* //
928                 # use # as comment in config
929                 s/^;/#/
930         ' $config
931
932         datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
933         echo "# mysql_upgrade --datadir=$datadir"
934 done
935 ) | %banner -e %{name}-5.1
936
937 %triggerpostun -- mysql < 5.5.0
938 configs=""
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
944         else
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"
949                         exit 1
950                 fi
951                 config_file="$clusterdir/mysqld.conf"
952         fi
953
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/"
956                 continue
957         fi
958         configs="$configs $config_file"
959 done
960
961 (
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
965         sed -i -e '
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
972                 s/^;/#/
973         ' $config
974
975         datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
976         echo "# mysql_upgrade --datadir=$datadir"
977 done
978 ) | %banner -e %{name}-5.5
979
980 %files
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
1011 %if %{with sphinx}
1012 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
1013 %endif
1014 # for plugins
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*
1025
1026 %if %{?debug:1}0
1027 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
1028 %{_datadir}/%{name}/mysqld.sym
1029 %{_mandir}/man1/*resolve_stack_dump.1*
1030 %endif
1031
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/*
1038
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
1045
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
1071
1072 %files charsets
1073 %defattr(644,root,root,755)
1074 %dir %{_datadir}/mysql
1075 %{_datadir}/%{name}/charsets
1076
1077 %files extras
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*
1095
1096 %files -n mysqlhotcopy
1097 %defattr(644,root,root,755)
1098 %attr(755,root,root) %{_bindir}/mysqlhotcopy
1099 %{_mandir}/man1/mysqlhotcopy.1*
1100
1101 %files extras-perl
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*
1117
1118 %files client
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*
1135
1136 %files libs
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
1144 %if %{with ndb}
1145 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1146 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1147 %endif
1148
1149 %files devel
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
1154 %if %{with ndb}
1155 %attr(755,root,root) %{_libdir}/libndbclient.so
1156 %endif
1157 %{_includedir}/mysql
1158 %{_aclocaldir}/mysql.m4
1159 %{_mandir}/man1/mysql_config.1*
1160
1161 %files static
1162 %defattr(644,root,root,755)
1163 %{_libdir}/libmysqlclient.a
1164 %{_libdir}/libmysqlclient_r.a
1165 %if %{with ndb}
1166 %{_libdir}/libndbclient.a
1167 %endif
1168
1169 %files bench
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*
1179
1180 #%files doc
1181 #%defattr(644,root,root,755)
1182 #%doc Docs/manual.html Docs/manual_toc.html
1183
1184 %if %{with ndb}
1185 %files ndb
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*
1192
1193 %files ndb-client
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*
1228
1229 %files ndb-mgm
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*
1235
1236 %files ndb-cpc
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*
1242 %endif
This page took 0.111484 seconds and 2 git commands to generate.