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