]> git.pld-linux.org Git - packages/mysql.git/blame - mysql.spec
- new
[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
68e8a131
ER
28Version: 5.1.17
29Release: 0.1
5a944cb3 30License: GPL + MySQL FLOSS Exception
7803433d 31Group: Applications/Databases
1cc1856e
ER
32#Source0: http://mysql.dataphone.se/Downloads/MySQL-5.1/%{name}-%{version}-beta.tar.gz
33Source0: http://mysql.mirrors.cybercity.dk/Downloads/MySQL-5.1/%{name}-%{version}-beta.tar.gz
68e8a131 34# Source0-md5: 9b4db997883f5d9e1c1d4efbe6f112d2
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
68e8a131 62
85a4dc0b 63Patch14: %{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
68e8a131 466
85a4dc0b 467%patch14 -p1
b24ee098 468
a09e0285 469%build
0df00dd3 470%{__libtoolize}
4295660b 471%{__aclocal}
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}
b24ee098 576
17dc26d2 577# remove known unpackaged files
d4f3faae
AM
578rm -rf $RPM_BUILD_ROOT%{_prefix}/mysql-test
579
9cc19375
AM
580# remove .txt variants for .sys messages
581rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*/*.txt
582
8b2cbaf3 583# rename not to be so generic name
8b2cbaf3 584mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
68e8a131 585mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
17dc26d2 586
c0326166
ER
587# not useful without -debug build
588%{!?debug:rm -f $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
68e8a131 589%{!?debug:rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
c0326166 590# generate symbols file, so one can generate backtrace using it
77cbc8ff 591# mysql_resolve_stack_dump -s %{_datadir}/mysql/mysqld.sym -n mysqld.stack.
c0326166
ER
592# http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
593%{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.sym}
594
dabd8964 595# do not clobber users $PATH
dabd8964
ER
596mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
597mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
598mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
599mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
600mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
601mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
602mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
603mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
604
17dc26d2 605# functionality in initscript / rpm
17dc26d2 606rm $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
caa49c83 607rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_install_db.1*
17dc26d2
ER
608rm $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
609rm $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
610rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
17dc26d2
ER
611rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
612rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
7b9c5252 613rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
a44a043c 614rm $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg.txt
17dc26d2 615rm $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
68e8a131 616rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
a62ea18e 617rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
a44a043c 618rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
9cc19375 619rm $RPM_BUILD_ROOT%{_bindir}/resolveip
68e8a131
ER
620rm $RPM_BUILD_ROOT%{_mandir}/man1/resolveip.1*
621rm $RPM_BUILD_ROOT%{_mandir}/man1/make_win_bin_dist.1*
622rm $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
9cc19375
AM
623
624# we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
625rm $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
626rm $RPM_BUILD_ROOT%{_datadir}/mysql/mi_test_all
627rm $RPM_BUILD_ROOT%{_datadir}/mysql/mi_test_all.res
68e8a131
ER
628rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
629rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
630rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
631rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
17dc26d2 632
17dc26d2 633# in %doc
8b2cbaf3 634rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.{ini,cnf}
17dc26d2 635
9cc19375
AM
636# afaik not needed
637rm $RPM_BUILD_ROOT%{_libdir}/mysql/ha_{example,blackhole,federated}.{a,la}
638
f624a76e 639%clean
1d171524 640rm -rf $RPM_BUILD_ROOT
f624a76e 641
fd32e090 642%pre
ff5f125f
ER
643%groupadd -g 89 mysql
644%useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
fd32e090 645
ceb5ca86 646%post
054c91be 647[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
9cc19375 648/sbin/ldconfig
054c91be 649/sbin/chkconfig --add mysql
4ebde491 650%service mysql restart
dd6934b4 651
d5e8c713 652%preun
054c91be 653if [ "$1" = "0" ]; then
579146e7 654 %service -q mysql stop
054c91be 655 /sbin/chkconfig --del mysql
656fi
c44d1e10 657
658%postun
054c91be 659[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
9cc19375
AM
660/sbin/ldconfig
661
fd32e090 662if [ "$1" = "0" ]; then
c354982f 663 %userremove mysql
664 %groupremove mysql
fd32e090 665fi
b24ee098 666
d72472ee
AM
667%post ndb
668/sbin/chkconfig --add mysql-ndb
1101e5b7 669%service mysql-ndb restart "mysql NDB engine"
d72472ee
AM
670
671%preun ndb
672if [ "$1" = "0" ]; then
1101e5b7
ER
673 %service mysql-ndb stop
674 /sbin/chkconfig --del mysql-ndb
d72472ee
AM
675fi
676
677%post ndb-mgm
678/sbin/chkconfig --add mysql-ndb-mgm
1101e5b7 679%service mysql-ndb-mgm restart "mysql NDB management node"
d72472ee
AM
680
681%preun ndb-mgm
682if [ "$1" = "0" ]; then
1101e5b7
ER
683 %service mysql-ndb-mgm stop
684 /sbin/chkconfig --del mysql-ndb-mgm
d72472ee
AM
685fi
686
687%post ndb-cpc
688/sbin/chkconfig --add mysql-ndb-cpc
1101e5b7 689%service mysql-ndb-cpc restart "mysql NDB CPC"
d72472ee
AM
690
691%preun ndb-cpc
692if [ "$1" = "0" ]; then
1101e5b7
ER
693 %service mysql-ndb-cpc stop
694 /sbin/chkconfig --del mysql-ndb-cpc
d72472ee
AM
695fi
696
3fe2f194 697%post libs -p /sbin/ldconfig
698%postun libs -p /sbin/ldconfig
b24ee098 699
99e0d1a2 700%triggerpostun -- mysql <= 4.0.20-2
6564e2d6 701# For clusters in /etc/mysql/clusters.conf
99e0d1a2
PG
702if [ -f "/etc/sysconfig/mysql" ]; then
703 . /etc/sysconfig/mysql
4c7c0ef7 704 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
99e0d1a2
PG
705 for i in "$MYSQL_DB_CLUSTERS"; do
706 echo "$i/mysqld.conf=$i" >> /etc/mysql/clusters.conf
707 done
b545a308
PG
708 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
709 echo "# USE /etc/mysql/clusters.conf instead" >> /etc/sysconfig/mysql
4c7c0ef7 710 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/mysql/clusters.conf."
453fbc6e 711 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/mysql/clusters.conf."
99e0d1a2
PG
712 fi
713fi
714
7f18dfce
PG
715%triggerpostun -- mysql <= 4.1.1
716# For better compatibility with prevoius versions:
0e6ae684 717for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/mysql/clusters.conf); do
7f18dfce
PG
718 if echo "$config" | grep -q '^/'; then
719 config_file="$config"
720 elif [ -f "/etc/mysql/$config" ]; then
721 config_file=/etc/mysql/$config
722 else
6e6b75c9 723 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/mysql/clusters.conf)
dd25dce8
ER
724 if [ -z "$clusterdir" ]; then
725 echo >&2 "Can't find cluster dir for $config!"
726 echo >&2 "Please remove extra (leading) spaces from /etc/mysql/clusters.conf"
727 exit 1
728 fi
7f18dfce
PG
729 config_file="$clusterdir/mysqld.conf"
730 fi
0e6ae684
ER
731
732 if [ ! -f "$config_file" ]; then
733 echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
734 exit 1
735 fi
7f18dfce
PG
736 echo "Adding option old-passwords to config: $config_file"
737 echo "If you want to use new, better passwords - remove it"
6e6b75c9
ER
738
739 # sed magic to add 'old-passwords' to [mysqld] section
740 sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
741 a
742 a; Compatibility options:
743 aold-passwords
744 }
745 ' $config_file
7f18dfce
PG
746done
747
a2d3f15b 748%banner -e %{name}-4.1.x <<-EOF
f1180631
ER
749 If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
750 mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
a2d3f15b
ER
751EOF
752#'
753
9cc19375
AM
754%triggerpostun -- mysql < 5.1
755configs=""
756for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/mysql/clusters.conf); do
757 if echo "$config" | grep -q '^/'; then
758 config_file="$config"
759 elif [ -f "/etc/mysql/$config" ]; then
760 config_file=/etc/mysql/$config
761 else
762 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/mysql/clusters.conf)
763 if [ -z "$clusterdir" ]; then
764 echo >&2 "Can't find cluster dir for $config!"
765 echo >&2 "Please remove extra (leading) spaces from /etc/mysql/clusters.conf"
766 exit 1
767 fi
768 config_file="$clusterdir/mysqld.conf"
769 fi
770
771 if [ ! -f "$config_file" ]; then
772 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/"
773 continue
774 fi
775 configs="$configs $config_file"
776done
777
778(
779echo 'You should run MySQL upgrade scripts for all MySQL clusters.'
780echo 'Thus, you should invoke:'
781for config in $configs; do
782 datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config)
783 echo "# mysql_upgrade --datadir=$datadir"
784done
785) | %banner -e %{name}-5.1
786
ceb5ca86 787%files
a09e0285 788%defattr(644,root,root,755)
f1180631 789%doc support-files/*.cnf support-files/*.ini
8cdaa5ca 790%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/mysql
8de1b4ed 791%attr(754,root,root) /etc/rc.d/init.d/mysql
8cdaa5ca 792%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql
1c06b825 793%attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/clusters.conf
dabd8964
ER
794%attr(755,root,root) %{_sbindir}/innochecksum
795%attr(755,root,root) %{_sbindir}/myisamchk
796%attr(755,root,root) %{_sbindir}/myisamlog
797%attr(755,root,root) %{_sbindir}/myisampack
798%attr(755,root,root) %{_sbindir}/my_print_defaults
799%attr(755,root,root) %{_sbindir}/mysqlcheck
da28df48 800%attr(755,root,root) %{_sbindir}/mysqld
dabd8964
ER
801%attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
802%attr(755,root,root) %{_sbindir}/mysql_upgrade
9cc19375
AM
803%dir %{_libdir}/mysql
804%attr(755,root,root) %{_libdir}/mysql/ha_blackhole.so.*.*.*
805%attr(755,root,root) %{_libdir}/mysql/ha_example.so.*.*.*
806%attr(755,root,root) %{_libdir}/mysql/ha_federated.so.*.*.*
68e8a131 807%{_mandir}/man1/innochecksum.1*
84628b90
AM
808%{_mandir}/man1/myisamchk.1*
809%{_mandir}/man1/myisamlog.1*
810%{_mandir}/man1/myisampack.1*
68e8a131
ER
811%{_mandir}/man1/my_print_defaults.1*
812%{_mandir}/man1/mysqlcheck.1*
77cbc8ff 813%{_mandir}/man1/mysql_fix_privilege_tables.1*
d0fe1bc5 814%{_mandir}/man1/mysql_upgrade.1*
c3389a2d 815%{_mandir}/man8/mysqld.8*
c486a119 816
ea2c1c6a 817%attr(700,mysql,mysql) %{_mysqlhome}
68e8a131 818# root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
179f04ff 819%attr(751,root,root) /var/lib/mysql
8594196c 820%attr(750,mysql,mysql) %dir /var/log/mysql
ced65266 821%attr(750,mysql,mysql) %dir /var/log/archive/mysql
13924afb 822%attr(640,mysql,mysql) %ghost /var/log/mysql/*
431c9391 823
8de1b4ed 824%{_infodir}/mysql.info*
dbf4eb6a
AM
825# This is template for configuration file which is created after 'service mysql init'
826%{_datadir}/mysql/mysqld.conf
68e8a131
ER
827%{_datadir}/mysql/mysql_system_tables.sql
828%{_datadir}/mysql/mysql_system_tables_data.sql
829%{_datadir}/mysql/mysql_test_data_timezone.sql
830
c486a119 831%{_datadir}/mysql/english
f1180631 832%{_datadir}/mysql/fill_help_tables.sql
8c9ee0ea 833%{_datadir}/mysql/mysql_fix_privilege_tables.sql
c486a119
AF
834%lang(cs) %{_datadir}/mysql/czech
835%lang(da) %{_datadir}/mysql/danish
c486a119
AF
836%lang(de) %{_datadir}/mysql/german
837%lang(el) %{_datadir}/mysql/greek
e474e322 838%lang(es) %{_datadir}/mysql/spanish
839%lang(et) %{_datadir}/mysql/estonian
840%lang(fr) %{_datadir}/mysql/french
c486a119
AF
841%lang(hu) %{_datadir}/mysql/hungarian
842%lang(it) %{_datadir}/mysql/italian
843%lang(ja) %{_datadir}/mysql/japanese
844%lang(ko) %{_datadir}/mysql/korean
e474e322 845%lang(nl) %{_datadir}/mysql/dutch
adff109d 846%lang(nb) %{_datadir}/mysql/norwegian
e9ea375f 847%lang(nn) %{_datadir}/mysql/norwegian-ny
c486a119
AF
848%lang(pl) %{_datadir}/mysql/polish
849%lang(pt) %{_datadir}/mysql/portuguese
102d5f72 850%lang(ro) %{_datadir}/mysql/romanian
c486a119 851%lang(ru) %{_datadir}/mysql/russian
fa02fbab 852%lang(sr) %{_datadir}/mysql/serbian
c486a119 853%lang(sk) %{_datadir}/mysql/slovak
c486a119 854%lang(sv) %{_datadir}/mysql/swedish
e474e322 855%lang(uk) %{_datadir}/mysql/ukrainian
b24ee098 856
ad0a7267
JR
857%files charsets
858%defattr(644,root,root,755)
2539bd3a 859%dir %{_datadir}/mysql
ad0a7267
JR
860%{_datadir}/mysql/charsets
861
8de1b4ed 862%files extras
863%defattr(644,root,root,755)
f261d032 864%attr(755,root,root) %{_bindir}/msql2mysql
8b2cbaf3
ER
865%attr(755,root,root) %{_bindir}/myisam_ftdump
866%attr(755,root,root) %{_bindir}/mysql_secure_installation
867%attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
b94ecc67
JB
868%attr(755,root,root) %{_bindir}/perror
869%attr(755,root,root) %{_bindir}/replace
b94ecc67 870%{_mandir}/man1/msql2mysql.1*
9787b388 871%{_mandir}/man1/myisam_ftdump.1*
68e8a131 872%{_mandir}/man1/mysql_secure_installation.1*
77cbc8ff 873%{_mandir}/man1/mysql_tzinfo_to_sql.1*
e474e322 874%{_mandir}/man1/perror.1*
875%{_mandir}/man1/replace.1*
8de1b4ed 876
8afdedd4 877%files extras-perl
878%defattr(644,root,root,755)
68e8a131 879%attr(755,root,root) %{_bindir}/mysqlaccess
8594196c 880%attr(755,root,root) %{_bindir}/mysql_convert_table_format
68e8a131 881%attr(755,root,root) %{_bindir}/mysqldumpslow
8afdedd4 882%attr(755,root,root) %{_bindir}/mysql_find_rows
8b2cbaf3 883%attr(755,root,root) %{_bindir}/mysql_fix_extensions
68e8a131 884%attr(755,root,root) %{_bindir}/mysqlhotcopy
b894e3d4 885%attr(755,root,root) %{_bindir}/mysql_setpermission
b894e3d4 886%attr(755,root,root) %{_bindir}/mysql_zap
e474e322 887%{_mandir}/man1/mysqlaccess.1*
68e8a131
ER
888%{_mandir}/man1/mysql_convert_table_format.1*
889%{_mandir}/man1/mysql_fix_extensions.1*
84628b90 890%{_mandir}/man1/mysqlhotcopy.1*
68e8a131
ER
891%{_mandir}/man1/mysql_setpermission.1*
892%{_mandir}/man1/mysql_zap.1*
8afdedd4 893
ceb5ca86 894%files client
75eb20a9 895%defattr(644,root,root,755)
01dea3d5 896%attr(755,root,root) %{_bindir}/mysql
9cc19375
AM
897%attr(755,root,root) %{_bindir}/mysqladmin
898%attr(755,root,root) %{_bindir}/mysqlbinlog
065b78b5 899%attr(755,root,root) %{_bindir}/mysqlbug
01dea3d5 900%attr(755,root,root) %{_bindir}/mysqldump
901%attr(755,root,root) %{_bindir}/mysqlimport
902%attr(755,root,root) %{_bindir}/mysqlshow
9cc19375 903%attr(755,root,root) %{_bindir}/mysqlslap
9cc19375 904%attr(755,root,root) %{_sbindir}/mysqlmanager*
75eb20a9 905%{_mandir}/man1/mysql.1*
e474e322 906%{_mandir}/man1/mysqladmin.1*
84628b90 907%{_mandir}/man1/mysqlbinlog.1*
9cc19375 908%{_mandir}/man1/mysqldump.1*
84628b90 909%{_mandir}/man1/mysqlimport.1*
9cc19375
AM
910%{_mandir}/man1/mysqlshow.1*
911%{_mandir}/man1/mysqlslap.1*
c3389a2d 912%{_mandir}/man8/mysqlmanager.8*
b24ee098 913
3fe2f194 914%files libs
75eb20a9 915%defattr(644,root,root,755)
5a944cb3 916%doc EXCEPTIONS-CLIENT
3fe2f194 917%attr(755,root,root) %{_libdir}/lib*.so.*.*
7df2d935 918%attr(751,root,root) %dir %{_sysconfdir}/mysql
2539bd3a 919%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/mysql-client.conf
b24ee098 920
ceb5ca86 921%files devel
3fe2f194 922%defattr(644,root,root,755)
bbc0ff50 923%attr(755,root,root) %{_bindir}/mysql_config
3fe2f194 924%attr(755,root,root) %{_libdir}/lib*.so
a4aa4be3 925%{?debug:%attr(755,root,root) %{_bindir}/*resolve_stack_dump}
68e8a131 926%{?debug:%{_mandir}/man1/*resolve_stack_dump.1*}
c0326166 927%{?debug:%{_datadir}/mysql/mysqld.sym}
bbc0ff50
JB
928%{_libdir}/lib*.la
929%{_libdir}/lib*[!tr].a
3fe2f194 930%{_includedir}/mysql
68e8a131 931%{_aclocaldir}/mysql.m4
84628b90 932%{_mandir}/man1/mysql_config.1*
3fe2f194 933
934%files static
75eb20a9 935%defattr(644,root,root,755)
83eea30f 936%{_libdir}/lib*[tr].a
ceb5ca86 937
d1e91a2d
AM
938%files bench
939%defattr(644,root,root,755)
940%attr(755,root,root) %{_bindir}/mysqltest
68e8a131
ER
941%{_mandir}/man1/mysqltest.1*
942%{_mandir}/man1/mysqltest_embedded.1*
d1e91a2d
AM
943%dir %{_datadir}/sql-bench
944%{_datadir}/sql-bench/[CDRl]*
945%attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
946
be07ff22
AM
947#%files doc
948#%defattr(644,root,root,755)
949#%doc Docs/manual.html Docs/manual_toc.html
d1e91a2d 950
d72472ee
AM
951%files ndb
952%defattr(644,root,root,755)
953%attr(755,root,root) %{_sbindir}/ndbd
954%attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
8cdaa5ca 955%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
68e8a131 956%{_mandir}/man1/ndbd.1*
d72472ee
AM
957
958%files ndb-client
959%defattr(644,root,root,755)
e56168f2
ER
960%attr(755,root,root) %{_bindir}/ndb_config
961%attr(755,root,root) %{_bindir}/ndb_delete_all
962%attr(755,root,root) %{_bindir}/ndb_desc
963%attr(755,root,root) %{_bindir}/ndb_drop_index
964%attr(755,root,root) %{_bindir}/ndb_drop_table
965%attr(755,root,root) %{_bindir}/ndb_error_reporter
966%attr(755,root,root) %{_bindir}/ndb_mgm
967%attr(755,root,root) %{_bindir}/ndb_print_backup_file
968%attr(755,root,root) %{_bindir}/ndb_print_schema_file
969%attr(755,root,root) %{_bindir}/ndb_print_sys_file
970%attr(755,root,root) %{_bindir}/ndb_restore
971%attr(755,root,root) %{_bindir}/ndb_select_all
972%attr(755,root,root) %{_bindir}/ndb_select_count
973%attr(755,root,root) %{_bindir}/ndb_show_tables
974%attr(755,root,root) %{_bindir}/ndb_size.pl
975%attr(755,root,root) %{_bindir}/ndb_test_platform
976%attr(755,root,root) %{_bindir}/ndb_waiter
d5717fff 977%attr(755,root,root) %{_datadir}/mysql/ndb_size.tmpl
e56168f2
ER
978%{_mandir}/man1/ndb_config.1*
979%{_mandir}/man1/ndb_delete_all.1*
980%{_mandir}/man1/ndb_desc.1*
68e8a131
ER
981%{_mandir}/man1/ndb_drop_index.1*
982%{_mandir}/man1/ndb_drop_table.1*
983%{_mandir}/man1/ndb_error_reporter.1*
984%{_mandir}/man1/ndb_mgm.1*
985%{_mandir}/man1/ndb_print_backup_file.1*
986%{_mandir}/man1/ndb_print_schema_file.1*
987%{_mandir}/man1/ndb_print_sys_file.1*
988%{_mandir}/man1/ndb_restore.1*
989%{_mandir}/man1/ndb_select_all.1*
990%{_mandir}/man1/ndb_select_count.1*
991%{_mandir}/man1/ndb_show_tables.1*
e56168f2 992%{_mandir}/man1/ndb_size.pl.1*
68e8a131 993%{_mandir}/man1/ndb_waiter.1*
d72472ee
AM
994
995%files ndb-mgm
996%defattr(644,root,root,755)
997%attr(755,root,root) %{_sbindir}/ndb_mgmd
998%attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
8cdaa5ca 999%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
68e8a131 1000%{_mandir}/man1/ndb_mgmd.1*
d72472ee 1001
d72472ee
AM
1002%files ndb-cpc
1003%defattr(644,root,root,755)
1004%attr(755,root,root) %{_sbindir}/ndb_cpcd
1005%attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
8cdaa5ca 1006%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
68e8a131 1007%{_mandir}/man1/ndb_cpcd.1*
This page took 0.286856 seconds and 4 git commands to generate.