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