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