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