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