]> git.pld-linux.org Git - packages/mysql.git/blame - mysql.spec
Use variant with dot in case of 2 digit major numbers (qboosh)
[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数据库服务器
d9b8a60e 38%define majorver 8.1
616994db
AM
39Name: mysql%{majorver}
40Version: 8.1.0
41Release: 0.1
792fb8bd 42License: GPL v2 + MySQL FOSS License Exception
7803433d 43Group: Applications/Databases
616994db
AM
44#Source0Download: https://dev.mysql.com/downloads/mysql/8.1.html#downloads
45Source0: http://cdn.mysql.com/Downloads/MySQL-8.1/mysql-%{version}.tar.gz
46# Source0-md5: 13fe8f9f463b2f462763cd21459590a0
416b5906
AM
47Source100: http://www.sphinxsearch.com/files/sphinx-2.2.11-release.tar.gz
48# Source100-md5: 5cac34f3d78a9d612ca4301abfcbd666
7eab437c 49%if %{without system_boost}
26c0bd50
JB
50Source101: http://downloads.sourceforge.net/boost/boost_1_77_0.tar.bz2
51# Source101-md5: 09dc857466718f27237144c6f2432d86
7eab437c 52%endif
616994db
AM
53Source1: mysql.init
54Source2: mysql.sysconfig
55Source3: mysql.logrotate
56Source4: mysqld.conf
57Source5: mysql-clusters.conf
58Source7: mysql-ndb.init
59Source8: mysql-ndb.sysconfig
60Source9: mysql-ndb-mgm.init
61Source10: mysql-ndb-mgm.sysconfig
62Source11: mysql-ndb-cpc.init
63Source12: mysql-ndb-cpc.sysconfig
64Source13: mysql-client.conf
978cdac2 65Source14: my.cnf
616994db
AM
66Patch0: mysql-opt.patch
67Patch1: mysql-system-xxhash.patch
68Patch2: notests-workaround.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
ceb5ca86
AM
337
338%description devel
21dbb6ad 339This package contains the development header files and other files
ceb5ca86
AM
340necessary to develop MySQL client applications.
341
a82d818e 342%description devel -l fr.UTF-8
bf60a170 343Ce package contient les fichiers entetes et les librairies de
344developpement necessaires pour developper des applications clientes
345MySQL.
346
a82d818e 347%description devel -l pl.UTF-8
21dbb6ad 348Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
ceb5ca86 349klienckich MySQL.
b24ee098 350
a82d818e
JR
351%description devel -l pt_BR.UTF-8
352Este pacote contém os arquivos de cabeçalho (header files) e
353bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
b24ee098 354
a82d818e
JR
355%description devel -l ru.UTF-8
356Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
357разработки клиентских приложений.
bf60a170 358
a82d818e
JR
359%description devel -l uk.UTF-8
360Цей пакет містить хедери та бібліотеки програміста, необхідні для
361розробки програм-клієнтів.
3fe2f194 362
363%package static
01875e6d 364Summary: MySQL static libraries
fe56cb4d
ER
365Summary(pl.UTF-8): Biblioteki statyczne MySQL
366Summary(ru.UTF-8): MySQL - статические библиотеки
367Summary(uk.UTF-8): MySQL - статичні бібліотеки
3fe2f194 368Group: Development/Libraries
3103a6d7 369Requires: %{name}-devel = %{version}-%{release}
0dd38d17 370Obsoletes: MySQL-static < 3.22.27
3fe2f194 371
372%description static
73d155ac 373MySQL static libraries.
3fe2f194 374
a82d818e 375%description static -l pl.UTF-8
3fe2f194 376Biblioteki statyczne MySQL.
377
a82d818e
JR
378%description static -l ru.UTF-8
379Этот пакет содержит статические библиотеки разработчика, необходимые
380для разработки клиентских приложений.
bf60a170 381
a82d818e
JR
382%description static -l uk.UTF-8
383Цей пакет містить статичні бібліотеки програміста, необхідні для
384розробки програм-клієнтів.
bf60a170 385
d1e91a2d
AM
386%package bench
387Summary: MySQL - Benchmarks
fe56cb4d
ER
388Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy
389Summary(pt.UTF-8): MySQL - Medições de desempenho
390Summary(ru.UTF-8): MySQL - бенчмарки
391Summary(uk.UTF-8): MySQL - бенчмарки
d1e91a2d
AM
392Group: Applications/Databases
393Requires: %{name} = %{version}-%{release}
394Requires: %{name}-client
19538fde 395Requires: perl-DBD-mysql
0dd38d17 396Obsoletes: MySQL-bench < 3.22.27
d1e91a2d
AM
397
398%description bench
399This package contains MySQL benchmark scripts and data.
400
a82d818e
JR
401%description bench -l pl.UTF-8
402Programy testujące szybkość serwera MySQL.
d1e91a2d 403
a82d818e
JR
404%description bench -l pt_BR.UTF-8
405Este pacote contém medições de desempenho de scripts e dados do MySQL.
d1e91a2d 406
a82d818e
JR
407%description bench -l ru.UTF-8
408Этот пакет содержит скрипты и данные для оценки производительности
d1e91a2d
AM
409MySQL.
410
a82d818e
JR
411%description bench -l uk.UTF-8
412Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
d1e91a2d
AM
413
414%package doc
415Summary: MySQL manual
fe56cb4d 416Summary(pl.UTF-8): Podręcznik użytkownika MySQL
d1e91a2d
AM
417Group: Applications/Databases
418
419%description doc
420This package contains manual in HTML format.
421
a82d818e
JR
422%description doc -l pl.UTF-8
423Podręcznik MySQL-a w formacie HTML.
d1e91a2d 424
d72472ee
AM
425%package ndb
426Summary: MySQL - NDB Storage Engine Daemon
fe56cb4d 427Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB
d72472ee
AM
428Group: Applications/Databases
429Requires: %{name}-libs = %{version}-%{release}
430
431%description ndb
432This package contains the standard MySQL NDB Storage Engine Daemon.
433
a82d818e 434%description ndb -l pl.UTF-8
8cdaa5ca
ER
435Ten pakiet zawiera standardowego demona silnika przechowywania danych
436NDB.
a4fd19f2 437
d72472ee
AM
438%package ndb-client
439Summary: MySQL - NDB Clients
fe56cb4d 440Summary(pl.UTF-8): MySQL - programy klienckie NDB
d72472ee
AM
441Group: Applications/Databases
442Requires: %{name}-libs = %{version}-%{release}
443
444%description ndb-client
445This package contains the standard MySQL NDB Clients.
446
a82d818e 447%description ndb-client -l pl.UTF-8
a4fd19f2
JB
448Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
449
d72472ee
AM
450%package ndb-mgm
451Summary: MySQL - NDB Management Daemon
fe56cb4d 452Summary(pl.UTF-8): MySQL - demon zarządzający NDB
d72472ee
AM
453Group: Applications/Databases
454Requires: %{name}-libs = %{version}-%{release}
455
456%description ndb-mgm
457This package contains the standard MySQL NDB Management Daemon.
458
a82d818e
JR
459%description ndb-mgm -l pl.UTF-8
460Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
a4fd19f2 461
d72472ee
AM
462%package ndb-cpc
463Summary: MySQL - NDB CPC Daemon
fe56cb4d 464Summary(pl.UTF-8): MySQL - demon NDB CPC
d72472ee
AM
465Group: Applications/Databases
466Requires: %{name}-libs = %{version}-%{release}
467
468%description ndb-cpc
469This package contains the standard MySQL NDB CPC Daemon.
470
a82d818e 471%description ndb-cpc -l pl.UTF-8
a4fd19f2
JB
472Ten pakiet zawiera standardowego demona MySQL NDB CPC.
473
a09e0285 474%prep
616994db 475%setup -q %{?with_sphinx:-a100} %{!?with_system_boost:-a101} -n mysql-%{version}
2e1318f3 476
4e0fffb4 477#%patch0 -p1
616994db
AM
478# FIXME
479#%patch1 -p1
480
481# when tests are not built there is no cstrbuf-t target
482%{!?with_tests:%patch2 -p1}
abe20e21 483
e6696823 484%if %{with sphinx}
fa51fc20 485# http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
792fb8bd 486%{__mv} sphinx-*/mysqlse storage/sphinx
416b5906 487%patch17 -p1
fa51fc20 488%patch18 -p1
e6696823 489%endif
6f2c1189 490
96b6cbc2 491%patch24 -p1
bd62a2c5 492%patch25 -p1
1e4b76dd 493
4e0fffb4 494#%patch26 -p1
fc032bd9 495
b4e1fa2c 496# to get these files rebuild
3d33ff78
JB
497[ -f sql/sql_yacc.cc ] && %{__rm} sql/sql_yacc.cc
498[ -f sql/sql_yacc.h ] && %{__rm} sql/sql_yacc.h
b24ee098 499
a820fdeb
ER
500# ensure sytstem lib
501# need to keep xxhash.[ch]
616994db
AM
502# FIXME
503#%{__rm} -rv extra/lz4/lz4**
a820fdeb 504
a09e0285 505%build
8ad2cc9f
AM
506install -d build
507cd build
92992b51
ER
508# NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
509# (it defaults to first cluster but user may change it to whatever
510# cluster it wants)
234eba13 511
abe20e21 512CPPFLAGS="%{rpmcppflags}" \
3d33ff78 513%cmake .. \
616994db 514 -DCMAKE_EXECUTABLE_SUFFIX=string:%{majorver} \
96962fb9 515 -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
abe20e21
JB
516 -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
517 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
f42f4b0d
JB
518 -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
519 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
d65cccc9 520 %{?with_systemtap:-DENABLE_DTRACE=ON} \
f42f4b0d
JB
521 -DFEATURE_SET="community" \
522 -DINSTALL_LAYOUT=RPM \
523 -DINSTALL_LIBDIR=%{_lib} \
616994db 524 -DINSTALL_PRIV_LIBDIR=%{_libdir}/%{name}/private \
f42f4b0d 525 -DINSTALL_MYSQLTESTDIR_RPM="" \
e4d6dd78 526 -DINSTALL_PLUGINDIR=%{_lib}/%{name}/plugin \
f42f4b0d 527 -DINSTALL_SQLBENCHDIR=%{_datadir} \
6f2c1189
AM
528 -DINSTALL_SUPPORTFILESDIR=share/%{name}-support \
529 -DINSTALL_MYSQLSHAREDIR=share/%{name} \
616994db
AM
530 -DROUTER_INSTALL_LIBDIR=%{_libdir}/%{name}router/private \
531 -DROUTER_INSTALL_PLUGINDIR=%{_libdir}/%{name}router \
532 -DMYSQL_UNIX_ADDR=/var/lib/%{name}/mysql.sock \
8ad2cc9f 533 %{?debug:-DWITH_DEBUG=ON} \
f42f4b0d 534 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
26c0bd50 535 %{!?with_ldap:-DWITH_AUTHENTICATION_LDAP=OFF} \
f42f4b0d 536 -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
f42f4b0d
JB
537 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
538 -DWITH_PIC=ON \
26c0bd50
JB
539 %{?with_ldap:-DWITH_LDAP=system} \
540 -DWITH_KERBEROS=system \
a485888a 541 -DWITH_LIBEVENT=system \
26c0bd50 542 -DWITH_LZ4=system \
a485888a 543 -DWITH_PROTOBUF=system \
26c0bd50 544 -DWITH_SASL=system \
616994db 545 -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
5d4c4d6c 546 -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
7eab437c 547 %{!?with_system_boost:-DWITH_BOOST="$(pwd)/$(ls -1d ../boost_*)"} \
375e1de2 548 -DWITH_ZLIB=system \
bd62a2c5 549 -DWITH_EDITLINE=system \
0d382892 550 -DWITH_MECAB=system \
75ddfe54 551 -DTMPDIR=/var/tmp
8ad2cc9f
AM
552
553%{__make}
b24ee098 554
7fbcff7e
AM
555%{?with_tests:%{__make} test}
556
ceb5ca86 557%install
3fe2f194 558rm -rf $RPM_BUILD_ROOT
616994db
AM
559install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,%{name},skel} \
560 $RPM_BUILD_ROOT/var/{log/{archive,}/%{name},lib/{mysql,%{name}-files}} \
59ef9fff 561 $RPM_BUILD_ROOT%{_mysqlhome} \
a4f004ee 562 $RPM_BUILD_ROOT%{_libdir}
b24ee098 563
8ad2cc9f
AM
564%{__make} -C build install \
565 DESTDIR=$RPM_BUILD_ROOT
d451850c 566
616994db
AM
567install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
568cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
569cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
dbf4eb6a 570# This is template for configuration file which is created after 'service mysql init'
92992b51
ER
571cp -a %{SOURCE4} mysqld.conf
572cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
573touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
b24ee098 574
616994db
AM
575mv $RPM_BUILD_ROOT/etc/logrotate.d/{mysqlrouter,%{name}router}
576
2e5f696d 577# remove innodb directives from mysqld.conf if mysqld is configured without
9cc19375 578%if %{without innodb}
2e5f696d
ER
579 cp mysqld.conf mysqld.tmp
580 awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
581%endif
582
583# remove berkeley-db directives from mysqld.conf if mysqld is configured without
9cc19375
AM
584cp mysqld.conf mysqld.tmp
585awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
2e5f696d 586
6f2c1189 587cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
92992b51 588cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
49e27b83 589ln -s mysql-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/my.cnf
978cdac2 590cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
2e5f696d 591
d72472ee 592# NDB
f7fb94f7 593%if %{with ndb}
616994db
AM
594install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-ndb
595cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-ndb
596install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-ndb-mgm
597cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-ndb-mgm
598install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-ndb-cpc
599cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-ndb-cpc
f7fb94f7 600%endif
17dc26d2 601
14996ad7 602sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
04497307 603sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
c01a1c0f 604sed -i -e '/libs/s/-lprobes_mysql//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
b24ee098 605
17dc26d2 606# remove known unpackaged files
6f2c1189 607%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}-support
9cc19375 608
8b2cbaf3 609# rename not to be so generic name
17dc26d2 610
c0326166 611# not useful without -debug build
c0326166 612# generate symbols file, so one can generate backtrace using it
6f2c1189 613# mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
c0326166 614# http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
6f2c1189 615%{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
c0326166 616
dabd8964 617# do not clobber users $PATH
d582d06a
JB
618%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
619%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
620%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
621%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
622%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
623#%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
d582d06a 624%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
d582d06a 625%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
dabd8964 626
3b961fb0 627# delete - functionality in initscript / rpm
21dbb6ad
JB
628# note: mysql_install_db (and thus resolveip) are needed by digikam
629%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
630%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
631%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
d582d06a
JB
632#%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
633#%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
634#%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
21dbb6ad
JB
635%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
636%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
637%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
9cc19375
AM
638
639# we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
1612089c 640%{__rm} $RPM_BUILD_ROOT%{_bindir}/{mysql_client_test,mysqlxtest}
616994db
AM
641%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/test_udf_services.so
642%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/component_test_udf_services.so
21dbb6ad 643%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
17dc26d2 644
be74eb6e 645# not needed
15319871
ER
646%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
647%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/daemon_example.ini
9cc19375 648
19538fde
AM
649# test plugins
650%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libtest*.so
651%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/rewrite_example.so
652%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/test_security_context.so
59ef9fff 653
616994db
AM
654# fix names for parallel coinstallation
655for f in $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/* ; do
656 fb=$(basename "$f")
657 mv "${f}" "${f}%{majorver}"
658 for m in $RPM_BUILD_ROOT%{_mandir}/man*; do
659 mnr=$(echo -n $m | tail -c 1)
660 if [ -f "${m}/${fb}.${mnr}" ]; then
661 mv "${m}/${fb}.${mnr}" "$m/${fb}%{majorver}.${mnr}"
662 fi
663 done
664done
665
f624a76e 666%clean
1d171524 667rm -rf $RPM_BUILD_ROOT
f624a76e 668
fd32e090 669%pre
ff5f125f 670%groupadd -g 89 mysql
616994db 671%useradd -u 89 -d %{_mysqlhome} -s /bin/false -g mysql -c "%{name} Server" mysql
fd32e090 672
ceb5ca86 673%post
0f4ca10a 674/sbin/ldconfig
616994db
AM
675/sbin/chkconfig --add %{name}
676%service %{name} restart
dd6934b4 677
d5e8c713 678%preun
054c91be 679if [ "$1" = "0" ]; then
616994db
AM
680 %service -q %{name} stop
681 /sbin/chkconfig --del %{name}
054c91be 682fi
c44d1e10 683
ec56ce82 684%postun
0f4ca10a 685/sbin/ldconfig
fd32e090 686if [ "$1" = "0" ]; then
c354982f 687 %userremove mysql
688 %groupremove mysql
fd32e090 689fi
b24ee098 690
d72472ee 691%post ndb
616994db
AM
692/sbin/chkconfig --add %{name}-ndb
693%service %{name}-ndb restart "%{name} NDB engine"
d72472ee
AM
694
695%preun ndb
696if [ "$1" = "0" ]; then
616994db
AM
697 %service %{name}-ndb stop
698 /sbin/chkconfig --del %{name}-ndb
d72472ee
AM
699fi
700
701%post ndb-mgm
616994db
AM
702/sbin/chkconfig --add %{name}-ndb-mgm
703%service %{name}-ndb-mgm restart "%{name} NDB management node"
d72472ee
AM
704
705%preun ndb-mgm
706if [ "$1" = "0" ]; then
616994db
AM
707 %service %{name}-ndb-mgm stop
708 /sbin/chkconfig --del %{name}-ndb-mgm
d72472ee
AM
709fi
710
711%post ndb-cpc
616994db
AM
712/sbin/chkconfig --add %{name}-ndb-cpc
713%service %{name}-ndb-cpc restart "%{name} NDB CPC"
d72472ee
AM
714
715%preun ndb-cpc
716if [ "$1" = "0" ]; then
616994db
AM
717 %service %{name}-ndb-cpc stop
718 /sbin/chkconfig --del %{name}-ndb-cpc
d72472ee
AM
719fi
720
0dd38d17
JB
721%post libs -p /sbin/ldconfig
722%postun libs -p /sbin/ldconfig
b24ee098 723
ceb5ca86 724%files
a09e0285 725%defattr(644,root,root,755)
616994db
AM
726%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
727%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}router
92992b51
ER
728%attr(754,root,root) /etc/rc.d/init.d/%{name}
729%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
730%attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
616994db
AM
731%attr(755,root,root) %{_bindir}/ibd2sdi%{majorver}
732%attr(755,root,root) %{_bindir}/mysql_migrate_keyring%{majorver}
733%attr(755,root,root) %{_bindir}/mysqlrouter%{majorver}
734%attr(755,root,root) %{_bindir}/mysqlrouter_keyring%{majorver}
735%attr(755,root,root) %{_bindir}/mysqlrouter_passwd%{majorver}
736%attr(755,root,root) %{_bindir}/mysqlrouter_plugin_info%{majorver}
737%attr(755,root,root) %{_sbindir}/innochecksum%{majorver}
738%attr(755,root,root) %{_sbindir}/my_print_defaults%{majorver}
739%attr(755,root,root) %{_sbindir}/myisamchk%{majorver}
740%attr(755,root,root) %{_sbindir}/myisamlog%{majorver}
741%attr(755,root,root) %{_sbindir}/myisampack%{majorver}
742%attr(755,root,root) %{_sbindir}/mysql_upgrade%{majorver}
743%attr(755,root,root) %{_sbindir}/mysqlcheck%{majorver}
744%attr(755,root,root) %{_sbindir}/mysqld%{majorver}
6c573014 745
92992b51
ER
746%dir %{_libdir}/%{name}
747%dir %{_libdir}/%{name}/plugin
748%attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
749%attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
750%attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
751%attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
26c0bd50 752#%attr(755,root,root) %{_libdir}/%{name}/plugin/authentication_fido_client.so
616994db
AM
753#%{?with_ldap:%attr(755,root,root) %{_libdir}/%{name}/plugin/authentication_ldap_sasl_client.so}
754#%attr(755,root,root) %{_libdir}/%{name}/plugin/authentication_oci_client.so
26c0bd50
JB
755%attr(755,root,root) %{_libdir}/%{name}/plugin/component_audit_api_message_emit.so
756%attr(755,root,root) %{_libdir}/%{name}/plugin/component_keyring_file.so
757%attr(755,root,root) %{_libdir}/%{name}/plugin/component_log_filter_dragnet.so
758%attr(755,root,root) %{_libdir}/%{name}/plugin/component_log_sink_json.so
759%attr(755,root,root) %{_libdir}/%{name}/plugin/component_log_sink_syseventlog.so
760%attr(755,root,root) %{_libdir}/%{name}/plugin/component_mysqlbackup.so
761%attr(755,root,root) %{_libdir}/%{name}/plugin/component_mysqlx_global_reset.so
762%attr(755,root,root) %{_libdir}/%{name}/plugin/component_pfs_example.so
763%attr(755,root,root) %{_libdir}/%{name}/plugin/component_pfs_example_component_population.so
764%attr(755,root,root) %{_libdir}/%{name}/plugin/component_query_attributes.so
765%attr(755,root,root) %{_libdir}/%{name}/plugin/component_reference_cache.so
766%attr(755,root,root) %{_libdir}/%{name}/plugin/component_udf_*_func.so
767%attr(755,root,root) %{_libdir}/%{name}/plugin/component_validate_password.so
768%attr(755,root,root) %{_libdir}/%{name}/plugin/conflicting_variables.so
1612089c 769%attr(755,root,root) %{_libdir}/%{name}/plugin/connection_control.so
26c0bd50 770%attr(755,root,root) %{_libdir}/%{name}/plugin/ddl_rewriter.so
1612089c 771%attr(755,root,root) %{_libdir}/%{name}/plugin/group_replication.so
26c0bd50 772%attr(755,root,root) %{_libdir}/%{name}/plugin/ha_mock.so
416b5906
AM
773%attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_file.so
774%attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_udf.so
1612089c 775%attr(755,root,root) %{_libdir}/%{name}/plugin/libpluginmecab.so
19538fde 776%attr(755,root,root) %{_libdir}/%{name}/plugin/locking_service.so
92992b51 777%attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
26c0bd50 778%attr(755,root,root) %{_libdir}/%{name}/plugin/mysql_clone.so
abe20e21 779%attr(755,root,root) %{_libdir}/%{name}/plugin/mysql_no_login.so
92992b51
ER
780%attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
781%attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
782%attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
19538fde
AM
783%attr(755,root,root) %{_libdir}/%{name}/plugin/replication_observers_example_plugin.so
784%attr(755,root,root) %{_libdir}/%{name}/plugin/rewriter.so
92992b51 785%attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
26c0bd50 786%attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_replica.so
92992b51 787%attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
26c0bd50 788%attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_source.so
f2308fd1 789%attr(755,root,root) %{_libdir}/%{name}/plugin/validate_password.so
19538fde 790%attr(755,root,root) %{_libdir}/%{name}/plugin/version_token.so
fa51fc20 791%if %{with sphinx}
bfb02390 792%attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
fa51fc20 793%endif
26c0bd50 794%dir %{_libdir}/%{name}/private
616994db
AM
795%{_libdir}/%{name}/private/icudt*l
796%dir %{_libdir}/%{name}router
797%attr(755,root,root) %{_libdir}/%{name}router/connection_pool.so
798%attr(755,root,root) %{_libdir}/%{name}router/destination_status.so
799%attr(755,root,root) %{_libdir}/%{name}router/http_auth_backend.so
800%attr(755,root,root) %{_libdir}/%{name}router/http_auth_realm.so
801%attr(755,root,root) %{_libdir}/%{name}router/http_server.so
802%attr(755,root,root) %{_libdir}/%{name}router/io.so
803%attr(755,root,root) %{_libdir}/%{name}router/keepalive.so
804%attr(755,root,root) %{_libdir}/%{name}router/metadata_cache.so
805%attr(755,root,root) %{_libdir}/%{name}router/rest_api.so
806%attr(755,root,root) %{_libdir}/%{name}router/rest_connection_pool.so
807%attr(755,root,root) %{_libdir}/%{name}router/rest_metadata_cache.so
808%attr(755,root,root) %{_libdir}/%{name}router/rest_router.so
809%attr(755,root,root) %{_libdir}/%{name}router/rest_routing.so
810%attr(755,root,root) %{_libdir}/%{name}router/router_openssl.so
811%attr(755,root,root) %{_libdir}/%{name}router/router_protobuf.so
812%attr(755,root,root) %{_libdir}/%{name}router/routing.so
813%dir %{_libdir}/%{name}router/private
814%attr(755,root,root) %{_libdir}/%{name}router/private/libmysqlharness*.so*
815%attr(755,root,root) %{_libdir}/%{name}router/private/libmysqlrouter*.so*
816%{_mandir}/man1/ibd2sdi%{majorver}.1*
817%{_mandir}/man1/innochecksum%{majorver}.1*
818%{_mandir}/man1/my_print_defaults%{majorver}.1*
819%{_mandir}/man1/myisamchk%{majorver}.1*
820%{_mandir}/man1/myisamlog%{majorver}.1*
821%{_mandir}/man1/myisampack%{majorver}.1*
822%{_mandir}/man1/mysql_upgrade%{majorver}.1*
823%{_mandir}/man1/mysqlcheck%{majorver}.1*
824%{_mandir}/man1/mysqlrouter%{majorver}.1*
825%{_mandir}/man1/mysqlrouter_passwd%{majorver}.1*
826%{_mandir}/man1/mysqlrouter_plugin_info%{majorver}.1*
827%{_mandir}/man8/mysqld%{majorver}.8*
c486a119 828
c27588d8
ER
829%if %{?debug:1}0
830%attr(755,root,root) %{_bindir}/*resolve_stack_dump
6f2c1189 831%{_datadir}/%{name}/mysqld.sym
c27588d8
ER
832%{_mandir}/man1/*resolve_stack_dump.1*
833%endif
834
ea2c1c6a 835%attr(700,mysql,mysql) %{_mysqlhome}
68e8a131 836# root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
179f04ff 837%attr(751,root,root) /var/lib/mysql
616994db
AM
838%attr(750,mysql,mysql) %dir /var/log/%{name}
839%attr(750,mysql,mysql) %dir /var/log/archive/%{name}
840%attr(640,mysql,mysql) %ghost /var/log/%{name}/*
431c9391 841
dbf4eb6a 842# This is template for configuration file which is created after 'service mysql init'
6f2c1189 843%{_datadir}/%{name}/mysqld.conf
6f2c1189
AM
844
845%{_datadir}/%{name}/english
846%{_datadir}/%{name}/dictionary.txt
26c0bd50
JB
847%{_datadir}/%{name}/messages_to_clients.txt
848%{_datadir}/%{name}/messages_to_error_log.txt
19538fde
AM
849%{_datadir}/%{name}/install_rewriter.sql
850%{_datadir}/%{name}/uninstall_rewriter.sql
1968f823
AM
851# Don't mark these with %%lang. These are used depending
852# on database client settings.
853%{_datadir}/%{name}/bulgarian
854%{_datadir}/%{name}/czech
855%{_datadir}/%{name}/danish
856%{_datadir}/%{name}/german
857%{_datadir}/%{name}/greek
858%{_datadir}/%{name}/spanish
859%{_datadir}/%{name}/estonian
860%{_datadir}/%{name}/french
861%{_datadir}/%{name}/hungarian
862%{_datadir}/%{name}/italian
863%{_datadir}/%{name}/japanese
864%{_datadir}/%{name}/korean
865%{_datadir}/%{name}/dutch
866%{_datadir}/%{name}/norwegian
867%{_datadir}/%{name}/norwegian-ny
868%{_datadir}/%{name}/polish
869%{_datadir}/%{name}/portuguese
870%{_datadir}/%{name}/romanian
871%{_datadir}/%{name}/russian
872%{_datadir}/%{name}/serbian
873%{_datadir}/%{name}/slovak
874%{_datadir}/%{name}/swedish
875%{_datadir}/%{name}/ukrainian
b24ee098 876
ad0a7267
JR
877%files charsets
878%defattr(644,root,root,755)
6f2c1189
AM
879%dir %{_datadir}/%{name}
880%{_datadir}/%{name}/charsets
ad0a7267 881
8de1b4ed 882%files extras
883%defattr(644,root,root,755)
616994db
AM
884%attr(755,root,root) %{_bindir}/myisam_ftdump%{majorver}
885%attr(755,root,root) %{_bindir}/mysql_secure_installation%{majorver}
886%attr(755,root,root) %{_bindir}/mysql_ssl_rsa_setup%{majorver}
887%attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql%{majorver}
888%attr(755,root,root) %{_bindir}/perror%{majorver}
889%{_mandir}/man1/myisam_ftdump%{majorver}.1*
890%{_mandir}/man1/mysql_ssl_rsa_setup%{majorver}.1*
891%{_mandir}/man1/mysql_secure_installation%{majorver}.1*
892%{_mandir}/man1/mysql_tzinfo_to_sql%{majorver}.1*
893%{_mandir}/man1/perror%{majorver}.1*
8de1b4ed 894
8afdedd4 895%files extras-perl
896%defattr(644,root,root,755)
616994db
AM
897%attr(755,root,root) %{_bindir}/mysqldumpslow%{majorver}
898%{_mandir}/man1/mysqldumpslow%{majorver}.1*
8afdedd4 899
ceb5ca86 900%files client
75eb20a9 901%defattr(644,root,root,755)
04e76bf1 902%attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/skel/.my.cnf
616994db
AM
903%attr(755,root,root) %{_bindir}/mysql%{majorver}
904%attr(755,root,root) %{_bindir}/mysqladmin%{majorver}
905%attr(755,root,root) %{_bindir}/mysqlbinlog%{majorver}
906%attr(755,root,root) %{_bindir}/mysql_config_editor%{majorver}
907%attr(755,root,root) %{_bindir}/mysqldump%{majorver}
908%attr(755,root,root) %{_bindir}/mysqlimport%{majorver}
909%attr(755,root,root) %{_bindir}/mysqlpump%{majorver}
910%attr(755,root,root) %{_bindir}/mysqlshow%{majorver}
911%{_mandir}/man1/mysql%{majorver}.1*
912%{_mandir}/man1/mysqladmin%{majorver}.1*
913%{_mandir}/man1/mysqlbinlog%{majorver}.1*
914%{_mandir}/man1/mysql_config_editor%{majorver}.1*
915%{_mandir}/man1/mysqldump%{majorver}.1*
916%{_mandir}/man1/mysqlimport%{majorver}.1*
917%{_mandir}/man1/mysqlpump%{majorver}.1*
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.*.*.*
616994db 926%attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.22
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)
616994db 934%attr(755,root,root) %{_bindir}/mysql_config%{majorver}
3b9f87c2 935%attr(755,root,root) %{_libdir}/libmysqlclient.so
08472466 936%if %{with ndb}
3b9f87c2 937%attr(755,root,root) %{_libdir}/libndbclient.so
08472466 938%endif
19538fde 939%{_pkgconfigdir}/mysqlclient.pc
1612089c 940%{_libdir}/libmysqlservices.a
3fe2f194 941%{_includedir}/mysql
68e8a131 942%{_aclocaldir}/mysql.m4
616994db 943%{_mandir}/man1/mysql_config%{majorver}.1*
3fe2f194 944
945%files static
75eb20a9 946%defattr(644,root,root,755)
3b9f87c2 947%{_libdir}/libmysqlclient.a
08472466 948%if %{with ndb}
3b9f87c2 949%{_libdir}/libndbclient.a
08472466 950%endif
ceb5ca86 951
26c0bd50 952# rename to test or split?
d1e91a2d
AM
953%files bench
954%defattr(644,root,root,755)
616994db
AM
955%attr(755,root,root) %{_bindir}/comp_err%{majorver}
956%attr(755,root,root) %{_bindir}/mysql_keyring_encryption_test%{majorver}
957%attr(755,root,root) %{_bindir}/mysqlslap%{majorver}
958%attr(755,root,root) %{_bindir}/mysqltest%{majorver}
959%attr(755,root,root) %{_bindir}/mysqltest_safe_process%{majorver}
960%attr(755,root,root) %{_bindir}/zlib_decompress%{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]*
26c0bd50 997%{_mandir}/man1/lz4_decompress.1*
616994db
AM
998%{_mandir}/man1/mysqlslap%{majorver}.1*
999%{_mandir}/man1/zlib_decompress%{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.41451 seconds and 4 git commands to generate.