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