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