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