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