]> git.pld-linux.org Git - packages/mysql.git/blob - mysql.spec
dirs must be marked with %dir attribute; refs 416b5906
[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_with     autodeps        # BR packages needed only for resolving deps
15 %bcond_without  innodb          # InnoDB storage engine support
16 %bcond_without  big_tables      # Support tables with more than 4G rows even on 32 bit platforms
17 %bcond_without  federated       # Federated storage engine support
18 %bcond_without  raid            # RAID support
19 %bcond_without  ssl             # OpenSSL support
20 %bcond_without  systemtap       # systemtap/dtrace probes
21 %bcond_without  tcpd            # libwrap (tcp_wrappers) support
22 %bcond_without  sphinx          # Sphinx storage engine support
23 # mysql needs boost 1.59.0 and doesn't support newer/older boost versions
24 %bcond_with     system_boost
25 %bcond_with     tests           # FIXME: don't run correctly
26 %bcond_with     ndb             # NDB is now a separate product, this here is broken, so disable it
27
28 %define         rel     0.1
29 %include        /usr/lib/rpm/macros.perl
30 Summary:        MySQL: a very fast and reliable SQL database engine
31 Summary(de.UTF-8):      MySQL: ist eine SQL-Datenbank
32 Summary(fr.UTF-8):      MySQL: un serveur SQL rapide et fiable
33 Summary(pl.UTF-8):      MySQL: bardzo szybka i niezawodna baza danych (SQL)
34 Summary(pt_BR.UTF-8):   MySQL: Um servidor SQL rápido e confiável
35 Summary(ru.UTF-8):      MySQL - быстрый SQL-сервер
36 Summary(uk.UTF-8):      MySQL - швидкий SQL-сервер
37 Summary(zh_CN.UTF-8):   MySQL数据库服务器
38 Name:           mysql
39 Version:        5.7.16
40 Release:        %{rel}
41 License:        GPL + MySQL FLOSS Exception
42 Group:          Applications/Databases
43 Source0:        http://cdn.mysql.com/Downloads/MySQL-5.7/%{name}-%{version}.tar.gz
44 # Source0-md5:  dbd5b1b19c2d285f87258ca446d4a7fe
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/project/boost/boost/1.59.0/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
66 Patch17:        %{name}-5.7-sphinx.patch
67 Patch18:        %{name}-sphinx.patch
68 Patch19:        %{name}-chain-certs.patch
69
70 Patch24:        %{name}-cmake.patch
71
72 Patch26:        mysqldumpslow-clusters.patch
73 URL:            http://www.mysql.com/products/community/
74 BuildRequires:  bison >= 1.875
75 %{?with_system_boost:BuildRequires:     boost-devel >= 1.59.0}
76 BuildRequires:  cmake >= 2.6
77 BuildRequires:  libaio-devel
78 BuildRequires:  readline-devel >= 6.2
79 %if "%{pld_release}" == "ac"
80 BuildRequires:  libstdc++4-devel >= 5:4.0
81 %else
82 BuildRequires:  libstdc++-devel >= 5:4.0
83 %endif
84 BuildRequires:  automake
85 BuildRequires:  libhsclient-devel
86 %{?with_tcpd:BuildRequires:     libwrap-devel}
87 BuildRequires:  ncurses-devel >= 4.2
88 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7d}
89 BuildRequires:  pam-devel
90 %{?with_autodeps:BuildRequires: perl-DBI}
91 BuildRequires:  perl-devel >= 1:5.6.1
92 BuildRequires:  python-modules
93 BuildRequires:  rpm-perlprov >= 4.1-13
94 BuildRequires:  rpmbuild(macros) >= 1.597
95 BuildRequires:  sed >= 4.0
96 %{?with_systemtap:BuildRequires:        systemtap-sdt-devel}
97 BuildRequires:  zlib-devel
98 Requires(post,preun):   /sbin/chkconfig
99 Requires(postun):       /usr/sbin/groupdel
100 Requires(postun):       /usr/sbin/userdel
101 Requires(pre):  /bin/id
102 Requires(pre):  /usr/bin/getgid
103 Requires(pre):  /usr/sbin/groupadd
104 Requires(pre):  /usr/sbin/useradd
105 Requires(triggerpostun):        sed >= 4.0
106 Requires:       %{name}-charsets = %{version}-%{release}
107 Requires:       %{name}-libs = %{version}-%{release}
108 Requires:       /usr/bin/setsid
109 Requires:       rc-scripts >= 0.2.0
110 Suggests:       mysql-client
111 %{?with_tcpd:Suggests:  tcp_wrappers}
112 Suggests:       vim-syntax-mycnf
113 Provides:       MySQL-server
114 Provides:       group(mysql)
115 Provides:       msqlormysql
116 Provides:       user(mysql)
117 Obsoletes:      MySQL
118 Obsoletes:      mysql-server
119 Conflicts:      logrotate < 3.8.0
120 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
121
122 %define         _libexecdir     %{_sbindir}
123 %define         _localstatedir  /var/lib/mysql
124 %define         _mysqlhome      /home/services/mysql
125
126 %description
127 MySQL is a true multi-user, multi-threaded SQL (Structured Query
128 Language) database server. SQL is the most popular database language
129 in the world. MySQL is a client/server implementation that consists of
130 a server daemon mysqld and many different client programs/libraries.
131
132 The main goals of MySQL are speed, robustness and easy to use. MySQL
133 was originally developed because we at Tcx needed a SQL server that
134 could handle very big databases with magnitude higher speed than what
135 any database vendor could offer to us. We have now been using MySQL
136 since 1996 in a environment with more than 40 databases, 10,000
137 tables, of which more than 500 have more than 7 million rows. This is
138 about 50G of mission critical data.
139
140 The base upon which MySQL is built is a set of routines that have been
141 used in a highly demanding production environment for many years.
142 While MySQL is still in development, it already offers a rich and
143 highly useful function set.
144
145 %description -l fr.UTF-8
146 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
147 multi-taches. Le langage SQL est le langage de bases de donnees le
148 plus populaire au monde. MySQL est une implementation client/serveur
149 qui consiste en un serveur (mysqld) et differents
150 programmes/bibliotheques clientes.
151
152 Les objectifs principaux de MySQL sont: vitesse, robustesse et
153 facilite d'utilisation. MySQL fut originalement developpe parce que
154 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
155 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
156 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
157 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
158 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
159 millions de lignes. Ceci represente environ 50G de donnees critiques.
160
161 A la base de la conception de MySQL, on retrouve une serie de routines
162 qui ont ete utilisees dans un environnement de production pendant
163 plusieurs annees. Meme si MySQL est encore en developpement, il offre
164 deja une riche et utile serie de fonctions.
165
166 %description -l pl.UTF-8
167 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
168 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
169 danych. MySQL to implementacja klient/serwer składająca się z demona
170 mysqld i wielu różnych programów i bibliotek klienckich.
171
172 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
173 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
174 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
175 większą, niż mogli zaoferować inni producenci baz danych. Używają go
176 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
177 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
178 50GB krytycznych danych.
179
180 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
181 które były używane w bardzo wymagającym środowisku produkcyjnym przez
182 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
183 i użyteczny zbiór funkcji.
184
185 %description -l de.UTF-8
186 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
187 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
188 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
189 einem Primärschlüssel versehen werden. Es ist aber keine Definition
190 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
191 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
192 Daten verantwortlich. Allein durch die Nutzung externer
193 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
194 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
195
196 %description -l pt_BR.UTF-8
197 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
198 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
199 dados no mundo. O MySQL é uma implementação cliente/servidor que
200 consiste de um servidor chamado mysqld e diversos
201 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
202 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
203 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
204 pudesse lidar com grandes bases de dados e com uma velocidade muito
205 maior do que a que qualquer vendedor podia nos oferecer. Estamos
206 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
207 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
208 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
209 A base da construção do MySQL é uma série de rotinas que foram usadas
210 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
211 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
212 funções muito ricas e úteis. Veja a documentação para maiores
213 informações.
214
215 %description -l ru.UTF-8
216 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
217 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
218 дистрибутиве на предмет других участников проекта и прочей информации
219 о MySQL.
220
221 %description -l uk.UTF-8
222 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
223 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
224 дистрибутиві для інформації про інших учасників проекту та іншої
225 інформації.
226
227 %package charsets
228 Summary:        MySQL - character sets definitions
229 Summary(pl.UTF-8):      MySQL - definicje kodowań znaków
230 Group:          Applications/Databases
231
232 %description charsets
233 This package contains character sets definitions needed by both client
234 and server.
235
236 %description charsets -l pl.UTF-8
237 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
238 klienta.
239
240 %package extras
241 Summary:        MySQL additional utilities
242 Summary(pl.UTF-8):      Dodatkowe narzędzia do MySQL
243 Group:          Applications/Databases
244 Requires:       %{name}-client = %{version}-%{release}
245 Requires:       %{name}-libs = %{version}-%{release}
246
247 %description extras
248 MySQL additional utilities except Perl scripts (they may be found in
249 %{name}-extras-perl package).
250
251 %description extras -l pl.UTF-8
252 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
253 pakiecie %{name}-extras-perl).
254
255 %package extras-perl
256 Summary:        MySQL additional utilities written in Perl
257 Summary(pl.UTF-8):      Dodatkowe narzędzia do MySQL napisane w Perlu
258 Group:          Applications/Databases
259 Requires:       %{name}-extras = %{version}-%{release}
260 # this is just for the sake of smooth upgrade, not to break systems
261 Requires:       mysqlhotcopy = %{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
468 %if %{with sphinx}
469 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
470 mv sphinx-*/mysqlse storage/sphinx
471 %patch17 -p1
472 %patch18 -p1
473 %endif
474
475 # really not fixed? verify
476 %patch19 -p1
477
478 %patch24 -p1
479
480 %patch26 -p1
481
482 # to get these files rebuild
483 [ -f sql/sql_yacc.cc ] && %{__rm} sql/sql_yacc.cc
484 [ -f sql/sql_yacc.h ] && %{__rm} sql/sql_yacc.h
485
486 %build
487 install -d build
488 cd build
489 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
490 # (it defaults to first cluster but user may change it to whatever
491 # cluster it wants)
492
493 %if "%{pld_release}" == "ac"
494 # add suffix, but allow ccache, etc in ~/.rpmmacros
495 %{expand:%%define       __cc    %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
496 %{expand:%%define       __cxx   %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
497 %{expand:%%define       __cpp   %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
498 %endif
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_FAST_MUTEXES=ON \
520         -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
521         -DWITH_PAM=ON \
522         -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
523         -DWITH_PIC=ON \
524 %if "%{pld_release}" == "ac"
525         -DWITH_SSL=%{?with_ssl:bundled}%{!?with_ssl:no} \
526 %else
527         -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
528 %endif
529         -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
530         %{!?with_system_boost:-DWITH_BOOST="$(pwd)/$(ls -1d ../boost_*)"} \
531         -DWITH_ZLIB=system \
532         -DWITH_READLINE=system
533
534 %{__make}
535
536 %{?with_tests:%{__make} test}
537
538 %install
539 rm -rf $RPM_BUILD_ROOT
540 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
541            $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/{mysql,mysql-files}} \
542            $RPM_BUILD_ROOT%{_mysqlhome} \
543            $RPM_BUILD_ROOT%{_libdir}
544
545 %{__make} -C build install \
546         DESTDIR=$RPM_BUILD_ROOT
547
548 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
549 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
550 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
551 # This is template for configuration file which is created after 'service mysql init'
552 cp -a %{SOURCE4} mysqld.conf
553 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
554 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
555
556 # remove innodb directives from mysqld.conf if mysqld is configured without
557 %if %{without innodb}
558         cp mysqld.conf mysqld.tmp
559         awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
560 %endif
561
562 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
563 cp mysqld.conf mysqld.tmp
564 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
565
566 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
567 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
568 ln -s mysql-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/my.cnf
569 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
570
571 # NDB
572 %if %{with ndb}
573 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
574 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
575 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
576 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
577 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
578 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
579 %endif
580
581 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
582 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
583 sed -i -e '/libs/s/-lprobes_mysql//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
584
585 # remove known unpackaged files
586 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}-support
587
588 # rename not to be so generic name
589 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
590 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
591
592 # not useful without -debug build
593 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
594 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
595 # generate symbols file, so one can generate backtrace using it
596 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
597 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
598 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
599
600 # do not clobber users $PATH
601 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_plugin
602 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
603 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
604 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
605 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
606 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
607 #mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
608 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
609 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
610 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
611
612 # delete - functionality in initscript / rpm
613 # note: mysql_install_db (and thus resolveip) are needed by digikam
614 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
615 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
616 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
617 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
618 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
619 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
620 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg-utf8.txt
621 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
622 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
623 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
624
625 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
626 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
627 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
628 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
629 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
630 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
631 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
632 # libmysqld examples
633 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql{_client_test_embedded,_embedded,test_embedded}
634
635 # not needed
636 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
637 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/daemon_example.ini
638
639 # test plugins
640 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libtest*.so
641 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/rewrite_example.so
642 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/test_security_context.so
643
644 %clean
645 rm -rf $RPM_BUILD_ROOT
646
647 %pre
648 %groupadd -g 89 mysql
649 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
650
651 %post
652 /sbin/ldconfig
653 /sbin/chkconfig --add mysql
654 %service mysql restart
655
656 %preun
657 if [ "$1" = "0" ]; then
658         %service -q mysql stop
659         /sbin/chkconfig --del mysql
660 fi
661
662 %postun
663 /sbin/ldconfig
664 if [ "$1" = "0" ]; then
665         %userremove mysql
666         %groupremove mysql
667 fi
668
669 %post ndb
670 /sbin/chkconfig --add mysql-ndb
671 %service mysql-ndb restart "mysql NDB engine"
672
673 %preun ndb
674 if [ "$1" = "0" ]; then
675         %service mysql-ndb stop
676         /sbin/chkconfig --del mysql-ndb
677 fi
678
679 %post ndb-mgm
680 /sbin/chkconfig --add mysql-ndb-mgm
681 %service mysql-ndb-mgm restart "mysql NDB management node"
682
683 %preun ndb-mgm
684 if [ "$1" = "0" ]; then
685         %service mysql-ndb-mgm stop
686         /sbin/chkconfig --del mysql-ndb-mgm
687 fi
688
689 %post ndb-cpc
690 /sbin/chkconfig --add mysql-ndb-cpc
691 %service mysql-ndb-cpc restart "mysql NDB CPC"
692
693 %preun ndb-cpc
694 if [ "$1" = "0" ]; then
695         %service mysql-ndb-cpc stop
696         /sbin/chkconfig --del mysql-ndb-cpc
697 fi
698
699 %post   libs -p /sbin/ldconfig
700 %postun libs -p /sbin/ldconfig
701
702 %triggerpostun -- mysql < 4.0.20-2.4
703 # For clusters in /etc/%{name}/clusters.conf
704 if [ -f /etc/sysconfig/mysql ]; then
705         . /etc/sysconfig/mysql
706         if [ -n "$MYSQL_DB_CLUSTERS" ]; then
707                 for i in "$MYSQL_DB_CLUSTERS"; do
708                         echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
709                 done
710                 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
711                 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
712                 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
713                 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
714         fi
715 fi
716
717 %triggerpostun -- mysql < 4.1.1
718 # For better compatibility with prevoius versions:
719 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
720         if echo "$config" | grep -q '^/'; then
721                 config_file="$config"
722         elif [ -f "/etc/%{name}/$config" ]; then
723                 config_file=/etc/%{name}/$config
724         else
725                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
726                 if [ -z "$clusterdir" ]; then
727                         echo >&2 "Can't find cluster dir for $config!"
728                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
729                         exit 1
730                 fi
731                 config_file="$clusterdir/mysqld.conf"
732         fi
733
734         if [ ! -f "$config_file" ]; then
735                         echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
736                         exit 1
737         fi
738         echo "Adding option old-passwords to config: $config_file"
739         echo "If you want to use new, better passwords - remove it"
740
741         # sed magic to add 'old-passwords' to [mysqld] section
742         sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
743                 a
744                 a; Compatibility options:
745                 aold-passwords
746         }
747         ' $config_file
748 done
749
750 %banner -e %{name}-4.1.x <<-EOF
751         If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
752         mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
753 EOF
754 #'
755
756 %triggerpostun -- mysql < 5.1.0
757 configs=""
758 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
759         if echo "$config" | grep -q '^/'; then
760                 config_file="$config"
761         elif [ -f "/etc/%{name}/$config" ]; then
762                 config_file=/etc/%{name}/$config
763         else
764                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
765                 if [ -z "$clusterdir" ]; then
766                         echo >&2 "Can't find cluster dir for $config!"
767                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
768                         exit 1
769                 fi
770                 config_file="$clusterdir/mysqld.conf"
771         fi
772
773         if [ ! -f "$config_file" ]; then
774                 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/"
775                 continue
776         fi
777         configs="$configs $config_file"
778 done
779
780 (
781 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
782 echo 'Thus, you should invoke:'
783 for config in $configs; do
784         sed -i -e '
785                 s/set-variable\s*=\s* //
786                 # use # as comment in config
787                 s/^;/#/
788         ' $config
789
790         datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
791         echo "# mysql_upgrade --datadir=$datadir"
792 done
793 ) | %banner -e %{name}-5.1
794
795 %triggerpostun -- mysql < 5.5.0
796 configs=""
797 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
798         if echo "$config" | grep -q '^/'; then
799                 config_file="$config"
800         elif [ -f "/etc/%{name}/$config" ]; then
801                 config_file=/etc/%{name}/$config
802         else
803                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
804                 if [ -z "$clusterdir" ]; then
805                         echo >&2 "Can't find cluster dir for $config!"
806                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
807                         exit 1
808                 fi
809                 config_file="$clusterdir/mysqld.conf"
810         fi
811
812         if [ ! -f "$config_file" ]; then
813                 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/"
814                 continue
815         fi
816         configs="$configs $config_file"
817 done
818
819 (
820 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
821 echo 'Thus, you should invoke:'
822 for config in $configs; do
823         sed -i -e '
824                 s/^language *= *polish/lc-messages = pl_PL/i
825                 s/set-variable\s*=\s* //
826                 s/^skip-locking/skip-external-locking/
827                 # this is not valid for server. it is client option
828                 s/^default-character-set/# client-config: &/
829                 # use # as comment in config
830                 s/^;/#/
831         ' $config
832
833         socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
834         echo "# mysql_upgrade ${socket:+--socket=$socket}"
835 done
836 ) | %banner -e %{name}-5.5
837
838 %triggerpostun -- mysql < 5.7.0
839 configs=""
840 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
841         if echo "$config" | grep -q '^/'; then
842                 config_file="$config"
843         elif [ -f "/etc/%{name}/$config" ]; then
844                 config_file=/etc/%{name}/$config
845         else
846                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
847                 if [ -z "$clusterdir" ]; then
848                         echo >&2 "Can't find cluster dir for $config!"
849                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
850                         exit 1
851                 fi
852                 config_file="$clusterdir/mysqld.conf"
853         fi
854
855         if [ ! -f "$config_file" ]; then
856                 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/"
857                 continue
858         fi
859         configs="$configs $config_file"
860 done
861
862 (
863 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
864 echo 'Thus, you should invoke:'
865 for config in $configs; do
866         sed -i -e '
867                 s/^log-warnings *=/log-error-verbosity =/
868                 s/^myisam-recover$/myisam-recover-options/
869                 s/^innodb_mirrored_log_groups.*//
870         ' $config
871
872         socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
873         echo "# mysql_upgrade ${socket:+--socket=$socket}"
874 done
875 ) | %banner -e %{name}-5.7
876
877 %files
878 %defattr(644,root,root,755)
879 %doc build/support-files/*.cnf
880 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
881 %attr(754,root,root) /etc/rc.d/init.d/%{name}
882 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
883 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
884 %attr(755,root,root) %{_sbindir}/innochecksum
885 %attr(755,root,root) %{_sbindir}/my_print_defaults
886 %attr(755,root,root) %{_sbindir}/myisamchk
887 %attr(755,root,root) %{_sbindir}/myisamlog
888 %attr(755,root,root) %{_sbindir}/myisampack
889 %attr(755,root,root) %{_sbindir}/mysql_plugin
890 %attr(755,root,root) %{_sbindir}/mysql_upgrade
891 %attr(755,root,root) %{_sbindir}/mysqlcheck
892 %attr(755,root,root) %{_sbindir}/mysqld
893 %dir %{_libdir}/%{name}
894 %dir %{_libdir}/%{name}/plugin
895 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
896 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
897 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
898 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
899 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_file.so
900 %attr(755,root,root) %{_libdir}/%{name}/plugin/keyring_udf.so
901 %attr(755,root,root) %{_libdir}/%{name}/plugin/locking_service.so
902 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
903 %attr(755,root,root) %{_libdir}/%{name}/plugin/mysql_no_login.so
904 %attr(755,root,root) %{_libdir}/%{name}/plugin/mysqlx.so
905 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
906 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
907 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
908 %attr(755,root,root) %{_libdir}/%{name}/plugin/replication_observers_example_plugin.so
909 %attr(755,root,root) %{_libdir}/%{name}/plugin/rewriter.so
910 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
911 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
912 %attr(755,root,root) %{_libdir}/%{name}/plugin/validate_password.so
913 %attr(755,root,root) %{_libdir}/%{name}/plugin/version_token.so
914 %if %{with sphinx}
915 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
916 %endif
917 %{_mandir}/man1/innochecksum.1*
918 %{_mandir}/man1/my_print_defaults.1*
919 %{_mandir}/man1/myisamchk.1*
920 %{_mandir}/man1/myisamlog.1*
921 %{_mandir}/man1/myisampack.1*
922 %{_mandir}/man1/mysql_plugin.1*
923 %{_mandir}/man1/mysql_upgrade.1*
924 %{_mandir}/man1/mysqlcheck.1*
925 %{_mandir}/man8/mysqld.8*
926
927 %if %{?debug:1}0
928 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
929 %{_datadir}/%{name}/mysqld.sym
930 %{_mandir}/man1/*resolve_stack_dump.1*
931 %endif
932
933 %attr(700,mysql,mysql) %{_mysqlhome}
934 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
935 %attr(751,root,root) /var/lib/mysql
936 # https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_secure-file-priv
937 %attr(770,mysql,mysql) %dir /var/lib/mysql-files
938 %attr(750,mysql,mysql) %dir /var/log/mysql
939 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
940 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
941
942 # This is template for configuration file which is created after 'service mysql init'
943 %{_datadir}/%{name}/mysqld.conf
944 %{_datadir}/%{name}/mysql_security_commands.sql
945 %{_datadir}/%{name}/mysql_sys_schema.sql
946 %{_datadir}/%{name}/mysql_system_tables_data.sql
947 %{_datadir}/%{name}/mysql_system_tables.sql
948 %{_datadir}/%{name}/mysql_test_data_timezone.sql
949
950 %{_datadir}/%{name}/english
951 %{_datadir}/%{name}/dictionary.txt
952 %{_datadir}/%{name}/fill_help_tables.sql
953 %{_datadir}/%{name}/innodb_memcached_config.sql
954 %{_datadir}/%{name}/install_rewriter.sql
955 %{_datadir}/%{name}/uninstall_rewriter.sql
956 # Don't mark these with %%lang. These are used depending
957 # on database client settings.
958 %{_datadir}/%{name}/bulgarian
959 %{_datadir}/%{name}/czech
960 %{_datadir}/%{name}/danish
961 %{_datadir}/%{name}/german
962 %{_datadir}/%{name}/greek
963 %{_datadir}/%{name}/spanish
964 %{_datadir}/%{name}/estonian
965 %{_datadir}/%{name}/french
966 %{_datadir}/%{name}/hungarian
967 %{_datadir}/%{name}/italian
968 %{_datadir}/%{name}/japanese
969 %{_datadir}/%{name}/korean
970 %{_datadir}/%{name}/dutch
971 %{_datadir}/%{name}/norwegian
972 %{_datadir}/%{name}/norwegian-ny
973 %{_datadir}/%{name}/polish
974 %{_datadir}/%{name}/portuguese
975 %{_datadir}/%{name}/romanian
976 %{_datadir}/%{name}/russian
977 %{_datadir}/%{name}/serbian
978 %{_datadir}/%{name}/slovak
979 %{_datadir}/%{name}/swedish
980 %{_datadir}/%{name}/ukrainian
981
982 %files charsets
983 %defattr(644,root,root,755)
984 %dir %{_datadir}/%{name}
985 %{_datadir}/%{name}/charsets
986
987 %files extras
988 %defattr(644,root,root,755)
989 %attr(755,root,root) %{_bindir}/myisam_ftdump
990 %attr(755,root,root) %{_bindir}/mysql_install_db
991 %attr(755,root,root) %{_bindir}/mysql_ssl_rsa_setup
992 %attr(755,root,root) %{_bindir}/mysql_secure_installation
993 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
994 %attr(755,root,root) %{_bindir}/perror
995 %attr(755,root,root) %{_bindir}/replace
996 %attr(755,root,root) %{_bindir}/resolveip
997 %{_mandir}/man1/myisam_ftdump.1*
998 %{_mandir}/man1/mysql_install_db.1*
999 %{_mandir}/man1/mysql_ssl_rsa_setup.1*
1000 %{_mandir}/man1/mysql_secure_installation.1*
1001 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1002 %{_mandir}/man1/perror.1*
1003 %{_mandir}/man1/replace.1*
1004 %{_mandir}/man1/resolveip.1*
1005
1006 %files extras-perl
1007 %defattr(644,root,root,755)
1008 %attr(755,root,root) %{_bindir}/mysqldumpslow
1009 %{_mandir}/man1/mysqldumpslow.1*
1010
1011 %files client
1012 %defattr(644,root,root,755)
1013 %attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/skel/.my.cnf
1014 %attr(755,root,root) %{_bindir}/mysql
1015 %attr(755,root,root) %{_bindir}/mysqladmin
1016 %attr(755,root,root) %{_bindir}/mysqlbinlog
1017 %attr(755,root,root) %{_bindir}/mysql_config_editor
1018 %attr(755,root,root) %{_bindir}/mysqldump
1019 %attr(755,root,root) %{_bindir}/mysqlimport
1020 %attr(755,root,root) %{_bindir}/mysqlpump
1021 %attr(755,root,root) %{_bindir}/mysqlshow
1022 %{_mandir}/man1/mysql.1*
1023 %{_mandir}/man1/mysqladmin.1*
1024 %{_mandir}/man1/mysqlbinlog.1*
1025 %{_mandir}/man1/mysql_config_editor.1*
1026 %{_mandir}/man1/mysqldump.1*
1027 %{_mandir}/man1/mysqlimport.1*
1028 %{_mandir}/man1/mysqlpump.1*
1029 %{_mandir}/man1/mysqlshow.1*
1030
1031 %files libs
1032 %defattr(644,root,root,755)
1033 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1034 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1035 %{_sysconfdir}/%{name}/my.cnf
1036 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1037 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.20
1038 %if %{with ndb}
1039 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1040 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1041 %endif
1042
1043 %files devel
1044 %defattr(644,root,root,755)
1045 %attr(755,root,root) %{_bindir}/mysql_config
1046 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1047 %if %{with ndb}
1048 %attr(755,root,root) %{_libdir}/libndbclient.so
1049 %endif
1050 %{_pkgconfigdir}/mysqlclient.pc
1051 # static-only so far
1052 %{_libdir}/libmysqld.a
1053 %{_includedir}/mysql
1054 %{_aclocaldir}/mysql.m4
1055 %{_mandir}/man1/mysql_config.1*
1056
1057 %files static
1058 %defattr(644,root,root,755)
1059 %{_libdir}/libmysqlclient.a
1060 %if %{with ndb}
1061 %{_libdir}/libndbclient.a
1062 %endif
1063
1064 %files bench
1065 %defattr(644,root,root,755)
1066 %attr(755,root,root) %{_bindir}/mysqlslap
1067 %attr(755,root,root) %{_bindir}/mysqltest
1068 #%dir %{_datadir}/sql-bench
1069 #%{_datadir}/sql-bench/[CDRl]*
1070 #%attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1071 %{_mandir}/man1/mysqlslap.1*
1072 %{_mandir}/man1/mysqltest.1*
1073 %{_mandir}/man1/mysqltest_embedded.1*
1074
1075 #%files doc
1076 #%defattr(644,root,root,755)
1077 #%doc Docs/manual.html Docs/manual_toc.html
1078
1079 %if %{with ndb}
1080 %files ndb
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_sbindir}/ndbd
1083 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1084 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1085 %{_mandir}/man1/ndbd_redo_log_reader.1*
1086 %{_mandir}/man8/ndbd.8*
1087
1088 %files ndb-client
1089 %defattr(644,root,root,755)
1090 %attr(755,root,root) %{_bindir}/ndb_config
1091 %attr(755,root,root) %{_bindir}/ndb_delete_all
1092 %attr(755,root,root) %{_bindir}/ndb_desc
1093 %attr(755,root,root) %{_bindir}/ndb_drop_index
1094 %attr(755,root,root) %{_bindir}/ndb_drop_table
1095 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1096 %attr(755,root,root) %{_bindir}/ndb_mgm
1097 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1098 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1099 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1100 %attr(755,root,root) %{_bindir}/ndb_restore
1101 %attr(755,root,root) %{_bindir}/ndb_select_all
1102 %attr(755,root,root) %{_bindir}/ndb_select_count
1103 %attr(755,root,root) %{_bindir}/ndb_show_tables
1104 %attr(755,root,root) %{_bindir}/ndb_size.pl
1105 %attr(755,root,root) %{_bindir}/ndb_test_platform
1106 %attr(755,root,root) %{_bindir}/ndb_waiter
1107 %{_mandir}/man1/ndb_config.1*
1108 %{_mandir}/man1/ndb_delete_all.1*
1109 %{_mandir}/man1/ndb_desc.1*
1110 %{_mandir}/man1/ndb_drop_index.1*
1111 %{_mandir}/man1/ndb_drop_table.1*
1112 %{_mandir}/man1/ndb_error_reporter.1*
1113 %{_mandir}/man1/ndb_mgm.1*
1114 %{_mandir}/man1/ndb_print_backup_file.1*
1115 %{_mandir}/man1/ndb_print_schema_file.1*
1116 %{_mandir}/man1/ndb_print_sys_file.1*
1117 %{_mandir}/man1/ndb_restore.1*
1118 %{_mandir}/man1/ndb_select_all.1*
1119 %{_mandir}/man1/ndb_select_count.1*
1120 %{_mandir}/man1/ndb_show_tables.1*
1121 %{_mandir}/man1/ndb_size.pl.1*
1122 %{_mandir}/man1/ndb_waiter.1*
1123
1124 %files ndb-mgm
1125 %defattr(644,root,root,755)
1126 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1127 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1128 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1129 %{_mandir}/man8/ndb_mgmd.8*
1130
1131 %files ndb-cpc
1132 %defattr(644,root,root,755)
1133 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1134 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1135 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1136 %{_mandir}/man1/ndb_cpcd.1*
1137 %endif
This page took 2.340292 seconds and 4 git commands to generate.