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