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