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