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