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