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