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