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