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