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