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