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