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