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