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