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