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