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