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