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