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