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