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