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