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