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