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