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