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