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