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