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