]> git.pld-linux.org Git - packages/mysql.git/blob - mysql.spec
up to 5.1.70, using percona tarball 5.1.70-rel14.8
[packages/mysql.git] / mysql.spec
1 # TODO:
2 # - http://bugs.mysql.com/bug.php?id=16470
3 # - innodb are dynamic (= as plugins) ?
4 # - missing have_archive, have_merge
5 # - is plugin_dir lib64 safe?
6 # - Using NDB Cluster... could not find sci transporter in /{include, lib}
7 # - !!! Makefiles for libmysqld.so !!!
8 # - segfaults on select from non-mysql user (caused by builder environment):
9 #     https://bugs.launchpad.net/pld-linux/+bug/381904
10 #     (profiling disabled temporaily to workaround this)
11 # - add avoid-version for:
12 #        /usr/lib64/mysql/plugin/mypluglib.so
13 #        /usr/lib64/mysql/plugin/mypluglib.so.0
14 #        /usr/lib64/mysql/plugin/mypluglib.so.0.0.0
15 #
16 # Conditional build:
17 %bcond_with     autodeps        # BR packages needed only for resolving deps
18 %bcond_without  innodb          # InnoDB storage engine support
19 %bcond_without  big_tables      # Support tables with more than 4G rows even on 32 bit platforms
20 %bcond_without  federated       # Federated storage engine support
21 %bcond_without  raid            # RAID support
22 %bcond_without  ssl             # OpenSSL support
23 %bcond_without  tcpd            # libwrap (tcp_wrappers) support
24 %bcond_without  sphinx          # Sphinx storage engine support
25 %bcond_with     tests           # FIXME: don't run correctly
26 %bcond_with     ndb             # NDB is now a separate product, this here is broken, so disable it
27
28 %define         rel     1
29 %define         percona_rel     14.8
30 %include        /usr/lib/rpm/macros.perl
31 Summary:        MySQL: a very fast and reliable SQL database engine
32 Summary(de.UTF-8):      MySQL: ist eine SQL-Datenbank
33 Summary(fr.UTF-8):      MySQL: un serveur SQL rapide et fiable
34 Summary(pl.UTF-8):      MySQL: bardzo szybka i niezawodna baza danych (SQL)
35 Summary(pt_BR.UTF-8):   MySQL: Um servidor SQL rápido e confiável
36 Summary(ru.UTF-8):      MySQL - быстрый SQL-сервер
37 Summary(uk.UTF-8):      MySQL - швидкий SQL-сервер
38 Summary(zh_CN.UTF-8):   MySQL数据库服务器
39 Name:           mysql
40 Version:        5.1.70
41 Release:        %{percona_rel}.%{rel}
42 License:        GPL + MySQL FLOSS Exception
43 Group:          Applications/Databases
44 # Source0Download: http://www.percona.com/downloads/Percona-Server-5.1/LATEST/source/
45 Source0:        http://www.percona.com/downloads/Percona-Server-5.1/LATEST/source/Percona-Server-%{version}-rel%{percona_rel}.tar.gz
46 # Source0-md5:  164230ac7b449eb69f0918fc5b8b09f2
47 Source100:      http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
48 # Source100-md5:        7b9b618cb9b378f949bb1b91ddcc4f54
49 Source1:        %{name}.init
50 Source2:        %{name}.sysconfig
51 Source3:        %{name}.logrotate
52 Source4:        %{name}d.conf
53 Source5:        %{name}-clusters.conf
54 Source7:        %{name}-ndb.init
55 Source8:        %{name}-ndb.sysconfig
56 Source9:        %{name}-ndb-mgm.init
57 Source10:       %{name}-ndb-mgm.sysconfig
58 Source11:       %{name}-ndb-cpc.init
59 Source12:       %{name}-ndb-cpc.sysconfig
60 Source13:       %{name}-client.conf
61 Source14:       my.cnf
62 Patch0:         %{name}-libs.patch
63 Patch1:         %{name}-libwrap.patch
64 Patch2:         %{name}-c++.patch
65 Patch4:         %{name}-sql-cxx-pic.patch
66 Patch5:         %{name}-noproc.patch
67 Patch6:         %{name}-system-users.patch
68 Patch8:         %{name}-client-config.patch
69 Patch9:         %{name}-build.patch
70 Patch10:        %{name}-alpha.patch
71 Patch11:        %{name}-upgrade.patch
72 Patch12:        %{name}-config.patch
73 Patch13:        gcc-ice.patch
74 Patch14:        %{name}-bug-43594.patch
75 Patch15:        plugin-avoid-version.patch
76 Patch16:        %{name}-fix-dummy-thread-race-condition.patch
77 Patch18:        %{name}-sphinx.patch
78 URL:            http://www.mysql.com/products/community/
79 BuildRequires:  autoconf
80 BuildRequires:  automake
81 BuildRequires:  bison
82 BuildRequires:  groff
83 %if "%{pld_release}" == "ac"
84 BuildRequires:  libstdc++4-devel >= 5:4.0
85 %else
86 BuildRequires:  libstdc++-devel >= 5:4.0
87 %endif
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.453
97 BuildRequires:  sed >= 4.0
98 BuildRequires:  zlib-devel
99 Requires(post,preun):   /sbin/chkconfig
100 Requires(postun):       /usr/sbin/groupdel
101 Requires(postun):       /usr/sbin/userdel
102 Requires(pre):  /bin/id
103 Requires(pre):  /usr/bin/getgid
104 Requires(pre):  /usr/sbin/groupadd
105 Requires(pre):  /usr/sbin/useradd
106 Requires(triggerpostun):        sed >= 4.0
107 Requires:       %{name}-charsets = %{version}-%{release}
108 Requires:       %{name}-libs = %{version}-%{release}
109 Requires:       /usr/bin/setsid
110 Requires:       rc-scripts >= 0.2.0
111 Suggests:       mysql-client
112 %{?with_tcpd:Suggests:  tcp_wrappers}
113 Suggests:       vim-syntax-mycnf
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:       perl-DBD-mysql
251
252 %description -n mysqlhotcopy
253 mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a
254 database backup quickly. It is the fastest way to make a backup of the
255 database or single tables, but it can be run only on the same machine
256 where the database directories are located. mysqlhotcopy works only
257 for backing up MyISAM and ARCHIVE tables.
258
259 See innobackup package to backup InnoDB tables.
260
261 %description -n mysqlhotcopy -l pl.UTF-8
262 mysqlhotcopy wykorzystuje LOCK TABLES, FLUSH TABLES oraz cp i scp do
263 szybkiego tworzenia kopii zapasowych baz danych. Jest to najszybszy
264 sposób wykonania kopii zapasowej bazy danych lub pojedynczych tabel,
265 ale może działać tylko na maszynie, na której znajdują się katalogi z
266 bazą danych. mysqlhotcopy działa tylko dla tabel typu MyISAM i
267 ARCHIVE.
268
269 Narzędzie do tworzenia kopii tabel InnoDB znajduje się w pakiecie
270 innobackup.
271
272 %package extras
273 Summary:        MySQL additional utilities
274 Summary(pl.UTF-8):      Dodatkowe narzędzia do MySQL
275 Group:          Applications/Databases
276 Requires:       %{name}-libs = %{version}-%{release}
277
278 %description extras
279 MySQL additional utilities except Perl scripts (they may be found in
280 %{name}-extras-perl package).
281
282 %description extras -l pl.UTF-8
283 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
284 pakiecie %{name}-extras-perl).
285
286 %package extras-perl
287 Summary:        MySQL additional utilities written in Perl
288 Summary(pl.UTF-8):      Dodatkowe narzędzia do MySQL napisane w Perlu
289 Group:          Applications/Databases
290 Requires:       %{name}-extras = %{version}-%{release}
291 # this is just for the sake of smooth upgrade, not to break systems
292 Requires:       mysqlhotcopy = %{version}-%{release}
293 Requires:       perl(DBD::mysql)
294
295 %description extras-perl
296 MySQL additional utilities written in Perl.
297
298 %description extras-perl -l pl.UTF-8
299 Dodatkowe narzędzia do MySQL napisane w Perlu.
300
301 %package client
302 Summary:        MySQL - Client
303 Summary(pl.UTF-8):      MySQL - Klient
304 Summary(pt.UTF-8):      MySQL - Cliente
305 Summary(ru.UTF-8):      MySQL клиент
306 Summary(uk.UTF-8):      MySQL клієнт
307 Group:          Applications/Databases
308 Requires:       %{name}-charsets = %{version}-%{release}
309 Requires:       %{name}-libs = %{version}-%{release}
310 Obsoletes:      MySQL-client
311
312 %description client
313 This package contains the standard MySQL clients.
314
315 %description client -l fr.UTF-8
316 Ce package contient les clients MySQL standards.
317
318 %description client -l pl.UTF-8
319 Standardowe programy klienckie MySQL.
320
321 %description client -l pt_BR.UTF-8
322 Este pacote contém os clientes padrão para o MySQL.
323
324 %description client -l ru.UTF-8
325 Этот пакет содержит только клиент MySQL.
326
327 %description client -l uk.UTF-8
328 Цей пакет містить тільки клієнта MySQL.
329
330 %package libs
331 Summary:        Shared libraries for MySQL
332 Summary(pl.UTF-8):      Biblioteki współdzielone MySQL
333 Group:          Libraries
334 Obsoletes:      libmysql10
335 Obsoletes:      mysql-doc < 4.1.12
336
337 %description libs
338 Shared libraries for MySQL.
339
340 %description libs -l pl.UTF-8
341 Biblioteki współdzielone MySQL.
342
343 %package devel
344 Summary:        MySQL - development header files and other files
345 Summary(pl.UTF-8):      MySQL - Pliki nagłówkowe i inne dla programistów
346 Summary(pt.UTF-8):      MySQL - Medições de desempenho
347 Summary(ru.UTF-8):      MySQL - хедеры и библиотеки разработчика
348 Summary(uk.UTF-8):      MySQL - хедери та бібліотеки програміста
349 Group:          Development/Libraries
350 Requires:       %{name}-libs = %{version}-%{release}
351 %{?with_ssl:Requires:   openssl-devel}
352 Requires:       zlib-devel
353 Obsoletes:      MySQL-devel
354 Obsoletes:      libmysql10-devel
355
356 %description devel
357 This package contains the development header files and other files
358 necessary to develop MySQL client applications.
359
360 %description devel -l fr.UTF-8
361 Ce package contient les fichiers entetes et les librairies de
362 developpement necessaires pour developper des applications clientes
363 MySQL.
364
365 %description devel -l pl.UTF-8
366 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
367 klienckich MySQL.
368
369 %description devel -l pt_BR.UTF-8
370 Este pacote contém os arquivos de cabeçalho (header files) e
371 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
372
373 %description devel -l ru.UTF-8
374 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
375 разработки клиентских приложений.
376
377 %description devel -l uk.UTF-8
378 Цей пакет містить хедери та бібліотеки програміста, необхідні для
379 розробки програм-клієнтів.
380
381 %package static
382 Summary:        MySQL static libraries
383 Summary(pl.UTF-8):      Biblioteki statyczne MySQL
384 Summary(ru.UTF-8):      MySQL - статические библиотеки
385 Summary(uk.UTF-8):      MySQL - статичні бібліотеки
386 Group:          Development/Libraries
387 Requires:       %{name}-devel = %{version}-%{release}
388 Obsoletes:      MySQL-static
389
390 %description static
391 MySQL static libraries.
392
393 %description static -l pl.UTF-8
394 Biblioteki statyczne MySQL.
395
396 %description static -l ru.UTF-8
397 Этот пакет содержит статические библиотеки разработчика, необходимые
398 для разработки клиентских приложений.
399
400 %description static -l uk.UTF-8
401 Цей пакет містить статичні бібліотеки програміста, необхідні для
402 розробки програм-клієнтів.
403
404 %package bench
405 Summary:        MySQL - Benchmarks
406 Summary(pl.UTF-8):      MySQL - Programy testujące szybkość działania bazy
407 Summary(pt.UTF-8):      MySQL - Medições de desempenho
408 Summary(ru.UTF-8):      MySQL - бенчмарки
409 Summary(uk.UTF-8):      MySQL - бенчмарки
410 Group:          Applications/Databases
411 Requires:       %{name} = %{version}-%{release}
412 Requires:       %{name}-client
413 Requires:       perl(DBD::mysql)
414 Obsoletes:      MySQL-bench
415
416 %description bench
417 This package contains MySQL benchmark scripts and data.
418
419 %description bench -l pl.UTF-8
420 Programy testujące szybkość serwera MySQL.
421
422 %description bench -l pt_BR.UTF-8
423 Este pacote contém medições de desempenho de scripts e dados do MySQL.
424
425 %description bench -l ru.UTF-8
426 Этот пакет содержит скрипты и данные для оценки производительности
427 MySQL.
428
429 %description bench -l uk.UTF-8
430 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
431
432 %package doc
433 Summary:        MySQL manual
434 Summary(pl.UTF-8):      Podręcznik użytkownika MySQL
435 Group:          Applications/Databases
436
437 %description doc
438 This package contains manual in HTML format.
439
440 %description doc -l pl.UTF-8
441 Podręcznik MySQL-a w formacie HTML.
442
443 %package ndb
444 Summary:        MySQL - NDB Storage Engine Daemon
445 Summary(pl.UTF-8):      MySQL - demon silnika przechowywania danych NDB
446 Group:          Applications/Databases
447 Requires:       %{name}-libs = %{version}-%{release}
448
449 %description ndb
450 This package contains the standard MySQL NDB Storage Engine Daemon.
451
452 %description ndb -l pl.UTF-8
453 Ten pakiet zawiera standardowego demona silnika przechowywania danych
454 NDB.
455
456 %package ndb-client
457 Summary:        MySQL - NDB Clients
458 Summary(pl.UTF-8):      MySQL - programy klienckie NDB
459 Group:          Applications/Databases
460 Requires:       %{name}-libs = %{version}-%{release}
461
462 %description ndb-client
463 This package contains the standard MySQL NDB Clients.
464
465 %description ndb-client -l pl.UTF-8
466 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
467
468 %package ndb-mgm
469 Summary:        MySQL - NDB Management Daemon
470 Summary(pl.UTF-8):      MySQL - demon zarządzający NDB
471 Group:          Applications/Databases
472 Requires:       %{name}-libs = %{version}-%{release}
473
474 %description ndb-mgm
475 This package contains the standard MySQL NDB Management Daemon.
476
477 %description ndb-mgm -l pl.UTF-8
478 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
479
480 %package ndb-cpc
481 Summary:        MySQL - NDB CPC Daemon
482 Summary(pl.UTF-8):      MySQL - demon NDB CPC
483 Group:          Applications/Databases
484 Requires:       %{name}-libs = %{version}-%{release}
485
486 %description ndb-cpc
487 This package contains the standard MySQL NDB CPC Daemon.
488
489 %description ndb-cpc -l pl.UTF-8
490 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
491
492 %prep
493 %setup -q -n Percona-Server-%{version}-rel%{percona_rel} %{?with_sphinx:-a100}
494 %if %{with sphinx}
495 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
496 mv sphinx-*/mysqlse storage/sphinx
497 %patch18 -p1
498 %endif
499 %patch0 -p1
500 #%{?with_tcpd:%patch1 -p1}  # WHATS PURPOSE OF THIS PATCH?
501 #patch2 -p1 # NEEDS CHECK, which exact program needs -lc++
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 %patch8 -p1
513 %patch9 -p1
514 %patch11 -p1
515 %patch12 -p1
516 %if "%{cc_version}" < "3.4"
517 %patch13 -p1
518 %endif
519 %patch14 -p0
520 %patch15 -p1
521 %patch16 -p1
522
523 %build
524 %if "%{pld_release}" == "ac"
525 # add suffix, but allow ccache, etc in ~/.rpmmacros
526 %{expand:%%define       __cc    %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
527 %{expand:%%define       __cxx   %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
528 %{expand:%%define       __cpp   %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
529 %endif
530
531 %{__libtoolize}
532 %{__aclocal} -I config/ac-macros
533 %{__automake}
534 %{__autoconf}
535
536 # The compiler flags are as per their "official" spec ;)
537 CXXFLAGS="%{rpmcxxflags} -fPIC -fno-implicit-templates -fno-rtti -fno-exceptions"
538 CFLAGS="%{rpmcflags} -fPIC"
539 CPPFLAGS="%{rpmcppflags}"
540
541 # NOTE: the PS, FIND_PROC, KILL, CHECK_PID are not used by PLD Linux
542 # and therefore do not add BR on these. These are here just to satisfy
543 # configure.
544
545 %configure \
546         PS='/bin/ps' \
547         FIND_PROC='/bin/ps p $$PID' \
548         KILL='/bin/kill' \
549         CHECK_PID='/bin/kill -0 $$PID' \
550         --enable-assembler \
551         --enable-largefile=yes \
552         --enable-shared \
553         --enable-static \
554         --enable-thread-safe-client \
555         --with%{!?with_ssl:out}-ssl=/usr \
556         --with%{!?with_tcpd:out}-libwrap \
557         %{?with_big_tables:--with-big-tables} \
558         --with-comment="PLD Linux Distribution MySQL RPM" \
559         --with%{!?debug:out}-debug%{?debug:=full} \
560         --with-embedded-server \
561         --with-extra-charsets=all \
562         --with-low-memory \
563         --with-mysqld-user=mysql \
564         --with-named-curses-libs="-lncurses" \
565         --with-named-thread-libs="-lpthread" \
566         --with-unix-socket-path=/var/lib/mysql/mysql.sock \
567         --with-plugins=max \
568         --with-fast-mutexes \
569         --without-readline \
570         --without-libedit \
571 %if %{with ndb}
572         --with%{!?debug:out}-ndb-debug \
573         --with-ndbcluster \
574         --with-ndb-docs \
575 %else
576         --without-plugin-ndbcluster \
577 %endif
578         --with-docs
579
580 #--with-error-inject
581
582 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
583 # (it defaults to first cluster but user may change it to whatever
584 # cluster it wants)
585
586 echo -e "all:\ninstall:\nclean:\nlink_sources:\n" > libmysqld/examples/Makefile
587
588 %{__make} \
589         benchdir=$RPM_BUILD_ROOT%{_datadir}/sql-bench
590
591 %{?with_tests:%{__make} test}
592
593 %install
594 rm -rf $RPM_BUILD_ROOT
595 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
596            $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
597            $RPM_BUILD_ROOT%{_mysqlhome}
598
599 # Make install
600 %{__make} install \
601         DESTDIR=$RPM_BUILD_ROOT \
602         benchdir=%{_datadir}/sql-bench \
603         libsdir=/tmp
604 # libsdir is to avoid installing innodb static libs in $RPM_BUILD_ROOT../libs
605
606 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
607 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
608 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
609 # This is template for configuration file which is created after 'service mysql init'
610 install %{SOURCE4} mysqld.conf
611 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/clusters.conf
612 touch $RPM_BUILD_ROOT/var/log/mysql/{mysqld,query,slow}.log
613
614 # remove innodb directives from mysqld.conf if mysqld is configured without
615 %if %{without innodb}
616         cp mysqld.conf mysqld.tmp
617         awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
618 %endif
619
620 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
621 cp mysqld.conf mysqld.tmp
622 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
623
624 install mysqld.conf $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.conf
625 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/mysql-client.conf
626 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
627
628 # NDB
629 %if %{with ndb}
630 install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
631 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
632 install %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
633 install %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
634 install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
635 install %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
636 %endif
637
638 mv -f $RPM_BUILD_ROOT%{_libdir}/mysql/lib* $RPM_BUILD_ROOT%{_libdir}
639 sed -i -e 's,%{_libdir}/mysql,%{_libdir},' $RPM_BUILD_ROOT{%{_libdir}/libmysqlclient{,_r}.la,%{_bindir}/mysql_config}
640 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
641
642 # remove known unpackaged files
643 rm -rf $RPM_BUILD_ROOT%{_prefix}/mysql-test
644
645 # remove .txt variants for .sys messages
646 rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*/*.txt
647
648 # rename not to be so generic name
649 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
650 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
651
652 # not useful without -debug build
653 %{!?debug:rm -f $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
654 %{!?debug:rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
655 # generate symbols file, so one can generate backtrace using it
656 # mysql_resolve_stack_dump -s %{_datadir}/mysql/mysqld.sym -n mysqld.stack.
657 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
658 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.sym}
659
660 # do not clobber users $PATH
661 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
662 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
663 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
664 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
665 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
666 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
667 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
668 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
669 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
670
671 # delete - functionality in initscript / rpm
672 # mysql_install_db is needed by digikam
673 #rm $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
674 #rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_install_db.1*
675 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
676 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
677 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
678 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
679 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
680 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
681 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg.txt
682 rm $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
683 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
684 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
685 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
686 rm $RPM_BUILD_ROOT%{_bindir}/resolveip
687 rm $RPM_BUILD_ROOT%{_mandir}/man1/resolveip.1*
688 rm $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
689 # not an .info file
690 %{__rm} $RPM_BUILD_ROOT/usr/share/info/mysql.info
691
692
693 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
694 rm $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
695 rm $RPM_BUILD_ROOT%{_datadir}/mysql/mi_test_all
696 rm $RPM_BUILD_ROOT%{_datadir}/mysql/mi_test_all.res
697 rm $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld_multi.server
698 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
699 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
700 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
701 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
702
703 # in %doc
704 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.{ini,cnf}
705
706 # not needed
707 rm -f $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/ha_*.{a,la}
708 rm -f $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/ha_example.*
709 rm -f $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/sphinx.{a,la}
710 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/mypluglib.{a,la}
711 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
712
713 %clean
714 rm -rf $RPM_BUILD_ROOT
715
716 %pre
717 %groupadd -g 89 mysql
718 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
719
720 %post
721 /sbin/chkconfig --add mysql
722 %service mysql restart
723
724 %preun
725 if [ "$1" = "0" ]; then
726         %service -q mysql stop
727         /sbin/chkconfig --del mysql
728 fi
729
730 %postun
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/%{name}/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/%{name}/clusters.conf
776                 done
777                 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
778                 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
779                 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
780                 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/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/%{name}/clusters.conf); do
787         if echo "$config" | grep -q '^/'; then
788                 config_file="$config"
789         elif [ -f "/etc/%{name}/$config" ]; then
790                 config_file=/etc/%{name}/$config
791         else
792                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/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/%{name}/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/%{name}/clusters.conf); do
826         if echo "$config" | grep -q '^/'; then
827                 config_file="$config"
828         elif [ -f "/etc/%{name}/$config" ]; then
829                 config_file=/etc/%{name}/$config
830         else
831                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/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/%{name}/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         sed -i -e '
852                 #set-variable\s*=\s* ##
853         ' $config
854
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
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 %attr(755,root,root) %{_bindir}/mysql_install_db
877 %dir %{_libdir}/mysql
878 %dir %{_libdir}/mysql/plugin
879 %attr(755,root,root) %{_libdir}/mysql/plugin/ha_innodb.so
880 %attr(755,root,root) %{_libdir}/mysql/plugin/mypluglib.*
881 %if %{with sphinx}
882 %attr(755,root,root) %{_libdir}/mysql/plugin/sphinx.so
883 %endif
884 %{_mandir}/man1/innochecksum.1*
885 %{_mandir}/man1/my_print_defaults.1*
886 %{_mandir}/man1/myisamchk.1*
887 %{_mandir}/man1/myisamlog.1*
888 %{_mandir}/man1/myisampack.1*
889 %{_mandir}/man1/mysql_fix_privilege_tables.1*
890 %{_mandir}/man1/mysql_install_db.1*
891 %{_mandir}/man1/mysql_upgrade.1*
892 %{_mandir}/man1/mysqlcheck.1*
893 %{_mandir}/man8/mysqld.8*
894
895 %if %{?debug:1}0
896 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
897 %{_datadir}/mysql/mysqld.sym
898 %{_mandir}/man1/*resolve_stack_dump.1*
899 %endif
900
901 %attr(700,mysql,mysql) %{_mysqlhome}
902 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
903 %attr(751,root,root) /var/lib/mysql
904 %attr(750,mysql,mysql) %dir /var/log/mysql
905 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
906 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
907
908 # This is template for configuration file which is created after 'service mysql init'
909 %{_datadir}/mysql/mysqld.conf
910 %{_datadir}/mysql/mysql_system_tables.sql
911 %{_datadir}/mysql/mysql_system_tables_data.sql
912 %{_datadir}/mysql/mysql_test_data_timezone.sql
913
914 %{_datadir}/mysql/english
915 %{_datadir}/mysql/fill_help_tables.sql
916 %{_datadir}/mysql/mysql_fix_privilege_tables.sql
917 %lang(cs) %{_datadir}/mysql/czech
918 %lang(da) %{_datadir}/mysql/danish
919 %lang(de) %{_datadir}/mysql/german
920 %lang(el) %{_datadir}/mysql/greek
921 %lang(es) %{_datadir}/mysql/spanish
922 %lang(et) %{_datadir}/mysql/estonian
923 %lang(fr) %{_datadir}/mysql/french
924 %lang(hu) %{_datadir}/mysql/hungarian
925 %lang(it) %{_datadir}/mysql/italian
926 %lang(ja) %{_datadir}/mysql/japanese
927 %lang(ko) %{_datadir}/mysql/korean
928 %lang(nl) %{_datadir}/mysql/dutch
929 %lang(nb) %{_datadir}/mysql/norwegian
930 %lang(nn) %{_datadir}/mysql/norwegian-ny
931 %lang(pl) %{_datadir}/mysql/polish
932 %lang(pt) %{_datadir}/mysql/portuguese
933 %lang(ro) %{_datadir}/mysql/romanian
934 %lang(ru) %{_datadir}/mysql/russian
935 %lang(sr) %{_datadir}/mysql/serbian
936 %lang(sk) %{_datadir}/mysql/slovak
937 %lang(sv) %{_datadir}/mysql/swedish
938 %lang(uk) %{_datadir}/mysql/ukrainian
939
940 %files charsets
941 %defattr(644,root,root,755)
942 %dir %{_datadir}/mysql
943 %{_datadir}/mysql/charsets
944
945 %files extras
946 %defattr(644,root,root,755)
947 %attr(755,root,root) %{_bindir}/msql2mysql
948 %attr(755,root,root) %{_bindir}/myisam_ftdump
949 %attr(755,root,root) %{_bindir}/mysql_secure_installation
950 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
951 %attr(755,root,root) %{_bindir}/perror
952 %attr(755,root,root) %{_bindir}/replace
953 %{_mandir}/man1/msql2mysql.1*
954 %{_mandir}/man1/myisam_ftdump.1*
955 %{_mandir}/man1/mysql_secure_installation.1*
956 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
957 %{_mandir}/man1/perror.1*
958 %{_mandir}/man1/replace.1*
959
960 %files -n mysqlhotcopy
961 %defattr(644,root,root,755)
962 %attr(755,root,root) %{_bindir}/mysqlhotcopy
963 %{_mandir}/man1/mysqlhotcopy.1*
964
965 %files extras-perl
966 %defattr(644,root,root,755)
967 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
968 %attr(755,root,root) %{_bindir}/mysql_find_rows
969 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
970 %attr(755,root,root) %{_bindir}/mysql_setpermission
971 %attr(755,root,root) %{_bindir}/mysql_zap
972 %attr(755,root,root) %{_bindir}/mysqlaccess
973 %attr(755,root,root) %{_bindir}/mysqldumpslow
974 %{_mandir}/man1/mysql_convert_table_format.1*
975 %{_mandir}/man1/mysql_find_rows.1*
976 %{_mandir}/man1/mysql_fix_extensions.1*
977 %{_mandir}/man1/mysql_setpermission.1*
978 %{_mandir}/man1/mysql_zap.1*
979 %{_mandir}/man1/mysqlaccess.1*
980 %{_mandir}/man1/mysqldumpslow.1*
981
982 %files client
983 %defattr(644,root,root,755)
984 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
985 %attr(755,root,root) %{_bindir}/mysql
986 %attr(755,root,root) %{_bindir}/mysqladmin
987 %attr(755,root,root) %{_bindir}/mysqlbinlog
988 %attr(755,root,root) %{_bindir}/mysqlbug
989 %attr(755,root,root) %{_bindir}/mysqldump
990 %attr(755,root,root) %{_bindir}/mysqlimport
991 %attr(755,root,root) %{_bindir}/mysqlshow
992 %attr(755,root,root) %{_sbindir}/mysqlmanager
993 %{_mandir}/man1/mysql.1*
994 %{_mandir}/man1/mysqladmin.1*
995 %{_mandir}/man1/mysqlbinlog.1*
996 %{_mandir}/man1/mysqlbug.1*
997 %{_mandir}/man1/mysqldump.1*
998 %{_mandir}/man1/mysqlimport.1*
999 %{_mandir}/man1/mysqlshow.1*
1000 %{_mandir}/man8/mysqlmanager.8*
1001
1002 %files libs
1003 %defattr(644,root,root,755)
1004 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1005 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/mysql-client.conf
1006 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1007 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.16
1008 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.*
1009 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.16
1010 %if %{with ndb}
1011 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1012 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1013 %endif
1014
1015 %files devel
1016 %defattr(644,root,root,755)
1017 %attr(755,root,root) %{_bindir}/mysql_config
1018 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1019 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1020 %if %{with ndb}
1021 %attr(755,root,root) %{_libdir}/libndbclient.so
1022 %{_libdir}/libndbclient.la
1023 %endif
1024 %{_libdir}/libmysqlclient.la
1025 %{_libdir}/libmysqlclient_r.la
1026 # static-only
1027 %{_libdir}/libdbug.a
1028 %{_libdir}/libheap.a
1029 %{_libdir}/libmyisam.a
1030 %{_libdir}/libmyisammrg.a
1031 %{_libdir}/libmysqld.a
1032 %{_libdir}/libmystrings.a
1033 %{_libdir}/libmysys.a
1034 %{_libdir}/libvio.a
1035 %{_includedir}/mysql
1036 %{_aclocaldir}/mysql.m4
1037 %{_mandir}/man1/mysql_config.1*
1038
1039 %files static
1040 %defattr(644,root,root,755)
1041 %{_libdir}/libmysqlclient.a
1042 %{_libdir}/libmysqlclient_r.a
1043 %if %{with ndb}
1044 %{_libdir}/libndbclient.a
1045 %endif
1046
1047 %files bench
1048 %defattr(644,root,root,755)
1049 %attr(755,root,root) %{_bindir}/mysqlslap
1050 %attr(755,root,root) %{_bindir}/mysqltest
1051 %dir %{_datadir}/sql-bench
1052 %{_datadir}/sql-bench/[CDRl]*
1053 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1054 %{_mandir}/man1/mysqlslap.1*
1055 %{_mandir}/man1/mysqltest.1*
1056 %{_mandir}/man1/mysqltest_embedded.1*
1057
1058 #%files doc
1059 #%defattr(644,root,root,755)
1060 #%doc Docs/manual.html Docs/manual_toc.html
1061
1062 %if %{with ndb}
1063 %files ndb
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_sbindir}/ndbd
1066 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1067 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1068 %{_mandir}/man1/ndbd_redo_log_reader.1*
1069 %{_mandir}/man8/ndbd.8*
1070
1071 %files ndb-client
1072 %defattr(644,root,root,755)
1073 %attr(755,root,root) %{_bindir}/ndb_config
1074 %attr(755,root,root) %{_bindir}/ndb_delete_all
1075 %attr(755,root,root) %{_bindir}/ndb_desc
1076 %attr(755,root,root) %{_bindir}/ndb_drop_index
1077 %attr(755,root,root) %{_bindir}/ndb_drop_table
1078 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1079 %attr(755,root,root) %{_bindir}/ndb_mgm
1080 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1081 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1082 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1083 %attr(755,root,root) %{_bindir}/ndb_restore
1084 %attr(755,root,root) %{_bindir}/ndb_select_all
1085 %attr(755,root,root) %{_bindir}/ndb_select_count
1086 %attr(755,root,root) %{_bindir}/ndb_show_tables
1087 %attr(755,root,root) %{_bindir}/ndb_size.pl
1088 %attr(755,root,root) %{_bindir}/ndb_test_platform
1089 %attr(755,root,root) %{_bindir}/ndb_waiter
1090 %{_mandir}/man1/ndb_config.1*
1091 %{_mandir}/man1/ndb_delete_all.1*
1092 %{_mandir}/man1/ndb_desc.1*
1093 %{_mandir}/man1/ndb_drop_index.1*
1094 %{_mandir}/man1/ndb_drop_table.1*
1095 %{_mandir}/man1/ndb_error_reporter.1*
1096 %{_mandir}/man1/ndb_mgm.1*
1097 %{_mandir}/man1/ndb_print_backup_file.1*
1098 %{_mandir}/man1/ndb_print_schema_file.1*
1099 %{_mandir}/man1/ndb_print_sys_file.1*
1100 %{_mandir}/man1/ndb_restore.1*
1101 %{_mandir}/man1/ndb_select_all.1*
1102 %{_mandir}/man1/ndb_select_count.1*
1103 %{_mandir}/man1/ndb_show_tables.1*
1104 %{_mandir}/man1/ndb_size.pl.1*
1105 %{_mandir}/man1/ndb_waiter.1*
1106
1107 %files ndb-mgm
1108 %defattr(644,root,root,755)
1109 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1110 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1111 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1112 %{_mandir}/man8/ndb_mgmd.8*
1113
1114 %files ndb-cpc
1115 %defattr(644,root,root,755)
1116 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1117 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1118 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1119 %{_mandir}/man1/ndb_cpcd.1*
1120 %endif
This page took 0.151706 seconds and 3 git commands to generate.