]> git.pld-linux.org Git - packages/mysql.git/blob - mysql.spec
- proper undefine, doh
[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     2
33 %define         percona_rel     76.1
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.28
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:  f779df3d75a4a019fe9f17e0a2e0e176
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 %patch26 -p1
539 %patch27 -p1
540
541 # to get these files rebuild
542 [ -f sql/sql_yacc.cc ] && %{__rm} sql/sql_yacc.cc
543 [ -f sql/sql_yacc.h ] && %{__rm} sql/sql_yacc.h
544
545 # map has more sane versioning that default "global everything" in ver.in
546 cp -p libmysql/libmysql.map libmysql/libmysql.ver.in
547
548 %build
549 install -d build
550 cd build
551 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
552 # (it defaults to first cluster but user may change it to whatever
553 # cluster it wants)
554
555 %if "%{pld_release}" == "ac"
556 # add suffix, but allow ccache, etc in ~/.rpmmacros
557 %{expand:%%define       __cc    %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
558 %{expand:%%define       __cxx   %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
559 %{expand:%%define       __cpp   %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
560 %endif
561
562 CPPFLAGS="%{rpmcppflags}" \
563 %cmake .. \
564         -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
565         -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
566         -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
567         -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
568         -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
569         %{?with_systemtap:-DENABLE_DTRACE=ON} \
570         -DFEATURE_SET="community" \
571         -DINSTALL_LAYOUT=RPM \
572         -DINSTALL_LIBDIR=%{_lib} \
573         -DINSTALL_MYSQLTESTDIR_RPM="" \
574         -DINSTALL_PLUGINDIR=%{_lib}/%{name}/plugin \
575         -DINSTALL_SQLBENCHDIR=%{_datadir} \
576         -DINSTALL_SUPPORTFILESDIR=share/%{_orgname}-support \
577         -DINSTALL_MYSQLSHAREDIR=share/%{_orgname} \
578         -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
579         %{?debug:-DWITH_DEBUG=ON} \
580         -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
581         -DWITH_FAST_MUTEXES=ON \
582         -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
583         -DWITH_PAM=ON \
584         -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
585         -DWITH_PIC=ON \
586 %if "%{pld_release}" == "ac"
587         -DWITH_SSL=%{?with_ssl:bundled}%{!?with_ssl:no} \
588 %else
589         -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
590 %endif
591         -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
592         -DWITH_ZLIB=system \
593         -DWITH_READLINE=system
594
595 %{__make}
596
597 %{?with_tests:%{__make} test}
598
599 %install
600 rm -rf $RPM_BUILD_ROOT
601 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
602            $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
603            $RPM_BUILD_ROOT%{_mysqlhome} \
604            $RPM_BUILD_ROOT%{_libdir}
605
606 %{__make} -C build install \
607         DESTDIR=$RPM_BUILD_ROOT
608
609 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
610 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
611 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
612 # This is template for configuration file which is created after 'service mysql init'
613 cp -a %{SOURCE4} mysqld.conf
614 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
615 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
616
617 # remove innodb directives from mysqld.conf if mysqld is configured without
618 %if %{without innodb}
619         cp mysqld.conf mysqld.tmp
620         awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
621 %endif
622
623 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
624 cp mysqld.conf mysqld.tmp
625 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
626
627 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{_orgname}/mysqld.conf
628 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
629 ln -s mysql-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/my.cnf
630 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
631
632 # NDB
633 %if %{with ndb}
634 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
635 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
636 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
637 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
638 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
639 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
640 %endif
641
642 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
643 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
644 sed -i -e '/libs/s/-lprobes_mysql//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
645
646 # remove known unpackaged files
647 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{_orgname}-support
648
649 # rename not to be so generic name
650 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
651 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
652
653 # move to _sysconfdir
654 mv $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}}/mysqlaccess.conf
655
656 # not useful without -debug build
657 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
658 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
659 # generate symbols file, so one can generate backtrace using it
660 # mysql_resolve_stack_dump -s %{_datadir}/%{_orgname}/mysqld.sym -n mysqld.stack.
661 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
662 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{_orgname}/mysqld.sym}
663
664 # do not clobber users $PATH
665 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_plugin
666 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
667 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
668 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
669 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
670 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
671 #mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
672 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
673 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
674 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
675
676 # delete - functionality in initscript / rpm
677 # note: mysql_install_db (and thus resolveip) are needed by digikam
678 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
679 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
680 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
681 #rm $RPM_BUILD_ROOT%{_datadir}/%{_orgname}/mysql-log-rotate
682 #rm $RPM_BUILD_ROOT%{_datadir}/%{_orgname}/mysql.server
683 #rm $RPM_BUILD_ROOT%{_datadir}/%{_orgname}/binary-configure
684 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{_orgname}/errmsg-utf8.txt
685 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
686 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
687 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
688 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
689 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
690
691 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
692 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
693 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
694 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
695 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
696 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
697 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
698 # libmysqld examples
699 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql{_client_test_embedded,_embedded,test_embedded}
700
701 # not needed
702 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
703 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/daemon_example.ini
704
705 # not an .info file
706 %{__rm} $RPM_BUILD_ROOT%{_infodir}/mysql.info
707
708 %clean
709 rm -rf $RPM_BUILD_ROOT
710
711 %pre
712 %groupadd -g 89 mysql
713 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
714
715 %post
716 /sbin/ldconfig
717 /sbin/chkconfig --add mysql
718 %service mysql restart
719
720 %preun
721 if [ "$1" = "0" ]; then
722         %service -q mysql stop
723         /sbin/chkconfig --del mysql
724 fi
725
726 %postun
727 /sbin/ldconfig
728 if [ "$1" = "0" ]; then
729         %userremove mysql
730         %groupremove mysql
731 fi
732
733 %post ndb
734 /sbin/chkconfig --add mysql-ndb
735 %service mysql-ndb restart "mysql NDB engine"
736
737 %preun ndb
738 if [ "$1" = "0" ]; then
739         %service mysql-ndb stop
740         /sbin/chkconfig --del mysql-ndb
741 fi
742
743 %post ndb-mgm
744 /sbin/chkconfig --add mysql-ndb-mgm
745 %service mysql-ndb-mgm restart "mysql NDB management node"
746
747 %preun ndb-mgm
748 if [ "$1" = "0" ]; then
749         %service mysql-ndb-mgm stop
750         /sbin/chkconfig --del mysql-ndb-mgm
751 fi
752
753 %post ndb-cpc
754 /sbin/chkconfig --add mysql-ndb-cpc
755 %service mysql-ndb-cpc restart "mysql NDB CPC"
756
757 %preun ndb-cpc
758 if [ "$1" = "0" ]; then
759         %service mysql-ndb-cpc stop
760         /sbin/chkconfig --del mysql-ndb-cpc
761 fi
762
763 %post   libs -p /sbin/ldconfig
764 %postun libs -p /sbin/ldconfig
765
766 %triggerpostun -- mysql < 4.0.20-2.4
767 # For clusters in /etc/%{name}/clusters.conf
768 if [ -f /etc/sysconfig/mysql ]; then
769         . /etc/sysconfig/mysql
770         if [ -n "$MYSQL_DB_CLUSTERS" ]; then
771                 for i in "$MYSQL_DB_CLUSTERS"; do
772                         echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
773                 done
774                 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
775                 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
776                 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
777                 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
778         fi
779 fi
780
781 %triggerpostun -- mysql < 4.1.1
782 # For better compatibility with prevoius versions:
783 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
784         if echo "$config" | grep -q '^/'; then
785                 config_file="$config"
786         elif [ -f "/etc/%{name}/$config" ]; then
787                 config_file=/etc/%{name}/$config
788         else
789                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
790                 if [ -z "$clusterdir" ]; then
791                         echo >&2 "Can't find cluster dir for $config!"
792                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
793                         exit 1
794                 fi
795                 config_file="$clusterdir/mysqld.conf"
796         fi
797
798         if [ ! -f "$config_file" ]; then
799                         echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
800                         exit 1
801         fi
802         echo "Adding option old-passwords to config: $config_file"
803         echo "If you want to use new, better passwords - remove it"
804
805         # sed magic to add 'old-passwords' to [mysqld] section
806         sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
807                 a
808                 a; Compatibility options:
809                 aold-passwords
810         }
811         ' $config_file
812 done
813
814 %banner -e %{name}-4.1.x <<-EOF
815         If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
816         mysql -u mysql mysql < %{_datadir}/%{_orgname}/fill_help_tables.sql
817 EOF
818 #'
819
820 %triggerpostun -- mysql < 5.1.0
821 configs=""
822 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
823         if echo "$config" | grep -q '^/'; then
824                 config_file="$config"
825         elif [ -f "/etc/%{name}/$config" ]; then
826                 config_file=/etc/%{name}/$config
827         else
828                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
829                 if [ -z "$clusterdir" ]; then
830                         echo >&2 "Can't find cluster dir for $config!"
831                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
832                         exit 1
833                 fi
834                 config_file="$clusterdir/mysqld.conf"
835         fi
836
837         if [ ! -f "$config_file" ]; then
838                 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/"
839                 continue
840         fi
841         configs="$configs $config_file"
842 done
843
844 (
845 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
846 echo 'Thus, you should invoke:'
847 for config in $configs; do
848         sed -i -e '
849                 s/set-variable\s*=\s* //
850                 # use # as comment in config
851                 s/^;/#/
852         ' $config
853
854         datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
855         echo "# mysql_upgrade --datadir=$datadir"
856 done
857 ) | %banner -e %{name}-5.1
858
859 %triggerpostun -- mysql < 5.5.0
860 configs=""
861 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
862         if echo "$config" | grep -q '^/'; then
863                 config_file="$config"
864         elif [ -f "/etc/%{name}/$config" ]; then
865                 config_file=/etc/%{name}/$config
866         else
867                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
868                 if [ -z "$clusterdir" ]; then
869                         echo >&2 "Can't find cluster dir for $config!"
870                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
871                         exit 1
872                 fi
873                 config_file="$clusterdir/mysqld.conf"
874         fi
875
876         if [ ! -f "$config_file" ]; then
877                 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/"
878                 continue
879         fi
880         configs="$configs $config_file"
881 done
882
883 (
884 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
885 echo 'Thus, you should invoke:'
886 for config in $configs; do
887         sed -i -e '
888                 s/^language *= *polish/lc-messages = pl_PL/i
889                 s/set-variable\s*=\s* //
890                 s/^skip-locking/skip-external-locking/
891                 # this is not valid for server. it is client option
892                 s/^default-character-set/# client-config: &/
893                 # use # as comment in config
894                 s/^;/#/
895         ' $config
896
897         socket=$(awk -F= '!/^#/ && $1 ~ /socket/{print $2}' $config | xargs)
898         echo "# mysql_upgrade ${socket:+--socket=$socket}"
899 done
900 ) | %banner -e %{name}-5.5
901
902 %files
903 %defattr(644,root,root,755)
904 %doc build/support-files/*.cnf
905 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
906 %attr(754,root,root) /etc/rc.d/init.d/%{name}
907 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
908 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
909 %attr(755,root,root) %{_bindir}/ps_tokudb_admin
910 %attr(755,root,root) %{_sbindir}/innochecksum
911 %attr(755,root,root) %{_sbindir}/my_print_defaults
912 %attr(755,root,root) %{_sbindir}/myisamchk
913 %attr(755,root,root) %{_sbindir}/myisamlog
914 %attr(755,root,root) %{_sbindir}/myisampack
915 #%attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
916 %attr(755,root,root) %{_sbindir}/mysql_plugin
917 %attr(755,root,root) %{_sbindir}/mysql_upgrade
918 %attr(755,root,root) %{_sbindir}/mysqlcheck
919 %attr(755,root,root) %{_sbindir}/mysqld
920 %dir %{_libdir}/%{name}
921 %dir %{_libdir}/%{name}/plugin
922 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
923 %attr(755,root,root) %{_libdir}/%{name}/plugin/audit_log.so
924 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
925 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_pam.so
926 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_pam_compat.so
927 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
928 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
929 %attr(755,root,root) %{_libdir}/%{name}/plugin/dialog.so
930 #%attr(755,root,root) %{_libdir}/%{name}/plugin/ha_archive.so
931 #%attr(755,root,root) %{_libdir}/%{name}/plugin/ha_blackhole.so
932 #%attr(755,root,root) %{_libdir}/%{name}/plugin/ha_federated.so
933 %attr(755,root,root) %{_libdir}/%{name}/plugin/handlersocket.so
934 %attr(755,root,root) %{_libdir}/%{name}/plugin/libfnv1a_udf.so
935 %attr(755,root,root) %{_libdir}/%{name}/plugin/libfnv_udf.so
936 %attr(755,root,root) %{_libdir}/%{name}/plugin/libmurmur_udf.so
937 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
938 %attr(755,root,root) %{_libdir}/%{name}/plugin/mysql_no_login.so
939 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
940 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
941 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
942 %attr(755,root,root) %{_libdir}/%{name}/plugin/query_response_time.so
943 %attr(755,root,root) %{_libdir}/%{name}/plugin/scalability_metrics.so
944 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
945 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
946 %attr(755,root,root) %{_libdir}/%{name}/plugin/validate_password.so
947 %if %{with sphinx}
948 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_sphinx.so
949 %endif
950 %if %{with tokudb}
951 %attr(755,root,root) %{_bindir}/tokuft_logprint
952 %attr(755,root,root) %{_bindir}/tokuftdump
953 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_tokudb.so
954 %attr(755,root,root) %{_libdir}/%{name}/plugin/tokudb_backup.so
955 %endif
956 %attr(755,root,root) %{_libdir}/libHotBackup.so
957 # for plugins
958 %attr(755,root,root) %{_libdir}/libmysqlservices.so
959 %{_mandir}/man1/innochecksum.1*
960 %{_mandir}/man1/my_print_defaults.1*
961 %{_mandir}/man1/myisamchk.1*
962 %{_mandir}/man1/myisamlog.1*
963 %{_mandir}/man1/myisampack.1*
964 #%{_mandir}/man1/mysql_fix_privilege_tables.1*
965 %{_mandir}/man1/mysql_plugin.1*
966 %{_mandir}/man1/mysql_upgrade.1*
967 %{_mandir}/man1/mysqlcheck.1*
968 %{_mandir}/man8/mysqld.8*
969
970 %if %{?debug:1}0
971 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
972 %{_datadir}/%{_orgname}/mysqld.sym
973 %{_mandir}/man1/*resolve_stack_dump.1*
974 %endif
975
976 %attr(700,mysql,mysql) %{_mysqlhome}
977 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
978 %attr(751,root,root) /var/lib/mysql
979 %attr(750,mysql,mysql) %dir /var/log/mysql
980 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
981 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
982
983 # This is template for configuration file which is created after 'service mysql init'
984 %{_datadir}/%{_orgname}/mysqld.conf
985 %{_datadir}/%{_orgname}/mysql_security_commands.sql
986 %{_datadir}/%{_orgname}/mysql_system_tables_data.sql
987 %{_datadir}/%{_orgname}/mysql_system_tables.sql
988 %{_datadir}/%{_orgname}/mysql_test_data_timezone.sql
989
990 %{_datadir}/%{_orgname}/english
991 %{_datadir}/%{_orgname}/dictionary.txt
992 %{_datadir}/%{_orgname}/fill_help_tables.sql
993 %{_datadir}/%{_orgname}/innodb_memcached_config.sql
994 #%{_datadir}/%{_orgname}/mysql_fix_privilege_tables.sql
995 %lang(bg) %{_datadir}/%{_orgname}/bulgarian
996 %lang(cs) %{_datadir}/%{_orgname}/czech
997 %lang(da) %{_datadir}/%{_orgname}/danish
998 %lang(de) %{_datadir}/%{_orgname}/german
999 %lang(el) %{_datadir}/%{_orgname}/greek
1000 %lang(es) %{_datadir}/%{_orgname}/spanish
1001 %lang(et) %{_datadir}/%{_orgname}/estonian
1002 %lang(fr) %{_datadir}/%{_orgname}/french
1003 %lang(hu) %{_datadir}/%{_orgname}/hungarian
1004 %lang(it) %{_datadir}/%{_orgname}/italian
1005 %lang(ja) %{_datadir}/%{_orgname}/japanese
1006 %lang(ko) %{_datadir}/%{_orgname}/korean
1007 %lang(nl) %{_datadir}/%{_orgname}/dutch
1008 %lang(nb) %{_datadir}/%{_orgname}/norwegian
1009 %lang(nn) %{_datadir}/%{_orgname}/norwegian-ny
1010 %lang(pl) %{_datadir}/%{_orgname}/polish
1011 %lang(pt) %{_datadir}/%{_orgname}/portuguese
1012 %lang(ro) %{_datadir}/%{_orgname}/romanian
1013 %lang(ru) %{_datadir}/%{_orgname}/russian
1014 %lang(sr) %{_datadir}/%{_orgname}/serbian
1015 %lang(sk) %{_datadir}/%{_orgname}/slovak
1016 %lang(sv) %{_datadir}/%{_orgname}/swedish
1017 %lang(uk) %{_datadir}/%{_orgname}/ukrainian
1018
1019 %files charsets
1020 %defattr(644,root,root,755)
1021 %dir %{_datadir}/%{_orgname}
1022 %{_datadir}/%{_orgname}/charsets
1023
1024 %files extras
1025 %defattr(644,root,root,755)
1026 %attr(755,root,root) %{_bindir}/msql2mysql
1027 %attr(755,root,root) %{_bindir}/myisam_ftdump
1028 %attr(755,root,root) %{_bindir}/mysql_install_db
1029 %attr(755,root,root) %{_bindir}/mysql_secure_installation
1030 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
1031 %attr(755,root,root) %{_bindir}/perror
1032 %attr(755,root,root) %{_bindir}/replace
1033 %attr(755,root,root) %{_bindir}/resolveip
1034 %{_mandir}/man1/msql2mysql.1*
1035 %{_mandir}/man1/myisam_ftdump.1*
1036 %{_mandir}/man1/mysql_install_db.1*
1037 %{_mandir}/man1/mysql_secure_installation.1*
1038 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1039 %{_mandir}/man1/perror.1*
1040 %{_mandir}/man1/replace.1*
1041 %{_mandir}/man1/resolveip.1*
1042
1043 %files -n mysqlhotcopy
1044 %defattr(644,root,root,755)
1045 %attr(755,root,root) %{_bindir}/mysqlhotcopy
1046 %{_mandir}/man1/mysqlhotcopy.1*
1047
1048 %files extras-perl
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
1051 %attr(755,root,root) %{_bindir}/mysql_find_rows
1052 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
1053 %attr(755,root,root) %{_bindir}/mysql_setpermission
1054 %attr(755,root,root) %{_bindir}/mysql_zap
1055 %attr(755,root,root) %{_bindir}/mysqlaccess
1056 %attr(755,root,root) %{_bindir}/mysqldumpslow
1057 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysqlaccess.conf
1058 %{_mandir}/man1/mysql_convert_table_format.1*
1059 %{_mandir}/man1/mysql_find_rows.1*
1060 %{_mandir}/man1/mysql_fix_extensions.1*
1061 %{_mandir}/man1/mysql_setpermission.1*
1062 %{_mandir}/man1/mysql_zap.1*
1063 %{_mandir}/man1/mysqlaccess.1*
1064 %{_mandir}/man1/mysqldumpslow.1*
1065
1066 %files client
1067 %defattr(644,root,root,755)
1068 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
1069 %attr(755,root,root) %{_bindir}/mysql
1070 %attr(755,root,root) %{_bindir}/mysqladmin
1071 %attr(755,root,root) %{_bindir}/mysqlbinlog
1072 %attr(755,root,root) %{_bindir}/mysqlbug
1073 %attr(755,root,root) %{_bindir}/mysql_config_editor
1074 %attr(755,root,root) %{_bindir}/mysqldump
1075 %attr(755,root,root) %{_bindir}/mysqlimport
1076 %attr(755,root,root) %{_bindir}/mysqlshow
1077 %{_mandir}/man1/mysql.1*
1078 %{_mandir}/man1/mysqladmin.1*
1079 %{_mandir}/man1/mysqlbinlog.1*
1080 %{_mandir}/man1/mysqlbug.1*
1081 %{_mandir}/man1/mysql_config_editor.1*
1082 %{_mandir}/man1/mysqldump.1*
1083 %{_mandir}/man1/mysqlimport.1*
1084 %{_mandir}/man1/mysqlshow.1*
1085
1086 %files libs
1087 %defattr(644,root,root,755)
1088 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1089 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1090 %{_sysconfdir}/%{name}/my.cnf
1091 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1092 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.18
1093 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.*
1094 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.18
1095 %if %{with ndb}
1096 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1097 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1098 %endif
1099
1100 %files devel
1101 %defattr(644,root,root,755)
1102 %attr(755,root,root) %{_bindir}/mysql_config
1103 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1104 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1105 %if %{with ndb}
1106 %attr(755,root,root) %{_libdir}/libndbclient.so
1107 %endif
1108 # static-only so far
1109 %{_libdir}/libmysqld.a
1110 %{_includedir}/mysql
1111 %{_aclocaldir}/mysql.m4
1112 %{_mandir}/man1/mysql_config.1*
1113
1114 %files static
1115 %defattr(644,root,root,755)
1116 %{_libdir}/libmysqlclient.a
1117 %{_libdir}/libmysqlclient_r.a
1118 %if %{with ndb}
1119 %{_libdir}/libndbclient.a
1120 %endif
1121
1122 %files bench
1123 %defattr(644,root,root,755)
1124 %attr(755,root,root) %{_bindir}/mysqlslap
1125 %attr(755,root,root) %{_bindir}/mysqltest
1126 %dir %{_datadir}/sql-bench
1127 %{_datadir}/sql-bench/[CDRl]*
1128 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1129 %{_mandir}/man1/mysqlslap.1*
1130 %{_mandir}/man1/mysqltest.1*
1131 %{_mandir}/man1/mysqltest_embedded.1*
1132
1133 #%files doc
1134 #%defattr(644,root,root,755)
1135 #%doc Docs/manual.html Docs/manual_toc.html
1136
1137 %if %{with ndb}
1138 %files ndb
1139 %defattr(644,root,root,755)
1140 %attr(755,root,root) %{_sbindir}/ndbd
1141 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1142 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1143 %{_mandir}/man1/ndbd_redo_log_reader.1*
1144 %{_mandir}/man8/ndbd.8*
1145
1146 %files ndb-client
1147 %defattr(644,root,root,755)
1148 %attr(755,root,root) %{_bindir}/ndb_config
1149 %attr(755,root,root) %{_bindir}/ndb_delete_all
1150 %attr(755,root,root) %{_bindir}/ndb_desc
1151 %attr(755,root,root) %{_bindir}/ndb_drop_index
1152 %attr(755,root,root) %{_bindir}/ndb_drop_table
1153 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1154 %attr(755,root,root) %{_bindir}/ndb_mgm
1155 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1156 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1157 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1158 %attr(755,root,root) %{_bindir}/ndb_restore
1159 %attr(755,root,root) %{_bindir}/ndb_select_all
1160 %attr(755,root,root) %{_bindir}/ndb_select_count
1161 %attr(755,root,root) %{_bindir}/ndb_show_tables
1162 %attr(755,root,root) %{_bindir}/ndb_size.pl
1163 %attr(755,root,root) %{_bindir}/ndb_test_platform
1164 %attr(755,root,root) %{_bindir}/ndb_waiter
1165 %{_mandir}/man1/ndb_config.1*
1166 %{_mandir}/man1/ndb_delete_all.1*
1167 %{_mandir}/man1/ndb_desc.1*
1168 %{_mandir}/man1/ndb_drop_index.1*
1169 %{_mandir}/man1/ndb_drop_table.1*
1170 %{_mandir}/man1/ndb_error_reporter.1*
1171 %{_mandir}/man1/ndb_mgm.1*
1172 %{_mandir}/man1/ndb_print_backup_file.1*
1173 %{_mandir}/man1/ndb_print_schema_file.1*
1174 %{_mandir}/man1/ndb_print_sys_file.1*
1175 %{_mandir}/man1/ndb_restore.1*
1176 %{_mandir}/man1/ndb_select_all.1*
1177 %{_mandir}/man1/ndb_select_count.1*
1178 %{_mandir}/man1/ndb_show_tables.1*
1179 %{_mandir}/man1/ndb_size.pl.1*
1180 %{_mandir}/man1/ndb_waiter.1*
1181
1182 %files ndb-mgm
1183 %defattr(644,root,root,755)
1184 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1185 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1186 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1187 %{_mandir}/man8/ndb_mgmd.8*
1188
1189 %files ndb-cpc
1190 %defattr(644,root,root,755)
1191 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1192 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1193 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1194 %{_mandir}/man1/ndb_cpcd.1*
1195 %endif
This page took 0.11804 seconds and 3 git commands to generate.