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