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