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