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