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