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