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