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