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