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