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