]>
Commit | Line | Data |
---|---|---|
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 | |
18 | Summary: MySQL: a very fast and reliable SQL database engine | |
89316dd1 ER |
19 | Summary(de.UTF-8): MySQL: ist eine SQL-Datenbank |
20 | Summary(fr.UTF-8): MySQL: un serveur SQL rapide et fiable | |
21 | Summary(pl.UTF-8): MySQL: bardzo szybka i niezawodna baza danych (SQL) | |
22 | Summary(pt_BR.UTF-8): MySQL: Um servidor SQL rápido e confiável | |
23 | Summary(ru.UTF-8): MySQL - быстрый SQL-сервер | |
24 | Summary(uk.UTF-8): MySQL - швидкий SQL-сервер | |
25 | Summary(zh_CN.UTF-8): MySQL数据库服务器 | |
13ce82d8 | 26 | Name: mysql |
2644efb8 | 27 | Version: 5.0.75 |
b0329f90 | 28 | Release: 2 |
13ce82d8 | 29 | License: GPL + MySQL FLOSS Exception |
30 | Group: Applications/Databases | |
7628f771 | 31 | #Source0: ftp://ftp.mysql.com/pub/mysql/src/%{name}-%{version}.tar.gz |
2644efb8 ER |
32 | Source0: 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 |
36 | Source100: http://www.sphinxsearch.com/downloads/sphinx-0.9.9-rc1.tar.gz | |
37 | # Source100-md5: d1506c8f85c045bb682393de0aed30e8 | |
13ce82d8 | 38 | Source1: %{name}.init |
39 | Source2: %{name}.sysconfig | |
40 | Source3: %{name}.logrotate | |
41 | Source4: %{name}d.conf | |
42 | Source5: %{name}-clusters.conf | |
43 | Source7: %{name}-ndb.init | |
44 | Source8: %{name}-ndb.sysconfig | |
45 | Source9: %{name}-ndb-mgm.init | |
46 | Source10: %{name}-ndb-mgm.sysconfig | |
47 | Source11: %{name}-ndb-cpc.init | |
48 | Source12: %{name}-ndb-cpc.sysconfig | |
49 | Source13: %{name}-client.conf | |
50 | Patch0: %{name}-libs.patch | |
a78a22c1 | 51 | Patch1: %{name}-sphinx.patch |
13ce82d8 | 52 | Patch2: %{name}-c++.patch |
53 | Patch3: %{name}-info.patch | |
54 | Patch4: %{name}-sql-cxx-pic.patch | |
55 | Patch5: %{name}-noproc.patch | |
56 | Patch6: %{name}-fix_privilege_tables.patch | |
57 | Patch7: %{name}-align.patch | |
58 | Patch8: %{name}-client-config.patch | |
59 | Patch9: %{name}-build.patch | |
60 | Patch10: %{name}-alpha.patch | |
61 | Patch11: %{name}-ndb-ldflags.patch | |
62 | Patch12: %{name}-bug-20153.patch | |
8ecd9b33 ER |
63 | Patch13: %{name}-bug-34192.patch |
64 | Patch14: %{name}-bug-16470.patch | |
65 | Patch15: %{name}-system-users.patch | |
a660043b | 66 | # <percona patches, http://www.percona.com/percona-lab.html> |
2644efb8 ER |
67 | Patch16: %{name}-microslow_innodb.patch |
68 | Patch17: %{name}-userstatv2.patch | |
69 | Patch18: %{name}-innodb_io_patches.patch | |
70 | Patch19: %{name}-microsec_process.patch | |
71 | Patch20: %{name}-innodb_show_bp.patch | |
72 | Patch21: %{name}-innodb_locks_held.patch | |
73 | Patch22: %{name}-innodb_io_pattern.patch | |
74 | Patch23: %{name}-innodb_show_hashed_memory.patch | |
75 | Patch24: %{name}-innodb_rw_lock.patch | |
76 | Patch25: %{name}-innodb_fsync_source.patch | |
77 | Patch26: %{name}-show_patches.patch | |
78 | Patch27: %{name}-split_buf_pool_mutex_fixed_optimistic_safe.patch | |
79 | Patch28: %{name}-innodb_check_fragmentation.patch | |
a660043b | 80 | # </percona> |
2644efb8 ER |
81 | |
82 | Patch29: %{name}-errorlog-no-rename.patch | |
83 | Patch30: %{name}-alpha-stack.patch | |
13ce82d8 | 84 | URL: http://www.mysql.com/products/database/mysql/community_edition.html |
85 | BuildRequires: autoconf | |
86 | BuildRequires: automake | |
a203d680 | 87 | BuildRequires: bison |
13ce82d8 | 88 | %{?with_bdb:BuildRequires: db3-devel} |
a203d680 | 89 | BuildRequires: flex |
13ce82d8 | 90 | BuildRequires: libstdc++-devel >= 5:3.0 |
91 | BuildRequires: libtool | |
92 | %{?with_tcpd:BuildRequires: libwrap-devel} | |
93 | BuildRequires: ncurses-devel >= 4.2 | |
94 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} | |
420c5d74 | 95 | %{?with_autodeps:BuildRequires: perl-DBI} |
13ce82d8 | 96 | BuildRequires: perl-devel >= 1:5.6.1 |
97 | BuildRequires: readline-devel >= 4.2 | |
98 | BuildRequires: rpm-perlprov >= 4.1-13 | |
420c5d74 | 99 | BuildRequires: rpmbuild(macros) >= 1.414 |
13ce82d8 | 100 | BuildRequires: sed >= 4.0 |
101 | BuildRequires: texinfo | |
102 | BuildRequires: zlib-devel | |
103 | Requires(post,preun): /sbin/chkconfig | |
104 | Requires(postun): /usr/sbin/groupdel | |
105 | Requires(postun): /usr/sbin/userdel | |
106 | Requires(pre): /bin/id | |
107 | Requires(pre): /usr/bin/getgid | |
108 | Requires(pre): /usr/sbin/groupadd | |
109 | Requires(pre): /usr/sbin/useradd | |
110 | Requires(triggerpostun): sed >= 4.0 | |
111 | Requires: %{name}-charsets = %{version}-%{release} | |
420c5d74 | 112 | Requires: %{name}-libs = %{version}-%{release} |
13ce82d8 | 113 | Requires: /usr/bin/setsid |
37400e9a | 114 | Requires: logrotate >= 3.7-4 |
13ce82d8 | 115 | Requires: rc-scripts >= 0.2.0 |
37400e9a ER |
116 | Suggests: mysql-client |
117 | %{?with_tcpd:Suggests: tcp_wrappers} | |
13ce82d8 | 118 | Provides: MySQL-server |
119 | Provides: group(mysql) | |
120 | Provides: msqlormysql | |
121 | Provides: user(mysql) | |
122 | Obsoletes: MySQL | |
123 | Obsoletes: mysql-server | |
124 | BuildRoot: %{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 | |
135 | MySQL is a true multi-user, multi-threaded SQL (Structured Query | |
136 | Language) database server. SQL is the most popular database language | |
137 | in the world. MySQL is a client/server implementation that consists of | |
138 | a server daemon mysqld and many different client programs/libraries. | |
139 | ||
140 | The main goals of MySQL are speed, robustness and easy to use. MySQL | |
141 | was originally developed because we at Tcx needed a SQL server that | |
142 | could handle very big databases with magnitude higher speed than what | |
143 | any database vendor could offer to us. We have now been using MySQL | |
144 | since 1996 in a environment with more than 40 databases, 10,000 | |
145 | tables, of which more than 500 have more than 7 million rows. This is | |
146 | about 50G of mission critical data. | |
147 | ||
148 | The base upon which MySQL is built is a set of routines that have been | |
149 | used in a highly demanding production environment for many years. | |
150 | While MySQL is still in development, it already offers a rich and | |
151 | highly useful function set. | |
152 | ||
89316dd1 | 153 | %description -l fr.UTF-8 |
13ce82d8 | 154 | MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et |
155 | multi-taches. Le langage SQL est le langage de bases de donnees le | |
156 | plus populaire au monde. MySQL est une implementation client/serveur | |
157 | qui consiste en un serveur (mysqld) et differents | |
158 | programmes/bibliotheques clientes. | |
159 | ||
160 | Les objectifs principaux de MySQL sont: vitesse, robustesse et | |
161 | facilite d'utilisation. MySQL fut originalement developpe parce que | |
162 | nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de | |
163 | tres grandes bases de donnees avec une vitesse d'un ordre de magnitude | |
164 | superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous | |
165 | utilisons MySQL depuis 1996 dans un environnement avec plus de 40 | |
166 | bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7 | |
167 | millions de lignes. Ceci represente environ 50G de donnees critiques. | |
168 | ||
169 | A la base de la conception de MySQL, on retrouve une serie de routines | |
170 | qui ont ete utilisees dans un environnement de production pendant | |
171 | plusieurs annees. Meme si MySQL est encore en developpement, il offre | |
172 | deja une riche et utile serie de fonctions. | |
173 | ||
89316dd1 ER |
174 | %description -l pl.UTF-8 |
175 | MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych | |
176 | SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz | |
177 | danych. MySQL to implementacja klient/serwer składająca się z demona | |
178 | mysqld i wielu różnych programów i bibliotek klienckich. | |
179 | ||
180 | Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania. | |
181 | MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali | |
182 | serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele | |
183 | większą, niż mogli zaoferować inni producenci baz danych. Używają go | |
184 | od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z | |
185 | których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około | |
13ce82d8 | 186 | 50GB krytycznych danych. |
187 | ||
89316dd1 ER |
188 | Baza, na której oparty jest MySQL, składa się ze zbioru procedur, |
189 | które były używane w bardzo wymagającym środowisku produkcyjnym przez | |
190 | wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty | |
191 | i użyteczny zbiór funkcji. | |
13ce82d8 | 192 | |
89316dd1 | 193 | %description -l de.UTF-8 |
13ce82d8 | 194 | MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu |
195 | Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten | |
89316dd1 ER |
196 | werden zwar in zweidimensionalen Tabellen gespeichert und können mit |
197 | einem Primärschlüssel versehen werden. Es ist aber keine Definition | |
198 | eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer | |
199 | MySQL-Datenbank völlig allein für die (referenzielle) Integrität der | |
13ce82d8 | 200 | Daten verantwortlich. Allein durch die Nutzung externer |
89316dd1 ER |
201 | Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität |
202 | ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten. | |
13ce82d8 | 203 | |
89316dd1 ER |
204 | %description -l pt_BR.UTF-8 |
205 | O MySQL é um servidor de banco de dados SQL realmente multiusuário e | |
206 | multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de | |
207 | dados no mundo. O MySQL é uma implementação cliente/servidor que | |
13ce82d8 | 208 | consiste de um servidor chamado mysqld e diversos |
89316dd1 | 209 | programas/bibliotecas clientes. Os principais objetivos do MySQL são: |
13ce82d8 | 210 | velocidade, robustez e facilidade de uso. O MySQL foi originalmente |
89316dd1 | 211 | desenvolvido porque nós na Tcx precisávamos de um servidor SQL que |
13ce82d8 | 212 | pudesse lidar com grandes bases de dados e com uma velocidade muito |
213 | maior do que a que qualquer vendedor podia nos oferecer. Estamos | |
214 | usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados | |
89316dd1 ER |
215 | com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de |
216 | linhas. Isto é o equivalente a aproximadamente 50G de dados críticos. | |
217 | A base da construção do MySQL é uma série de rotinas que foram usadas | |
218 | em um ambiente de produção com alta demanda por muitos anos. Mesmo o | |
219 | MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de | |
220 | funções muito ricas e úteis. Veja a documentação para maiores | |
221 | informações. | |
222 | ||
223 | %description -l ru.UTF-8 | |
224 | MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL | |
225 | была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в | |
226 | дистрибутиве на предмет других участников проекта и прочей информации | |
227 | о MySQL. | |
228 | ||
229 | %description -l uk.UTF-8 | |
230 | MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL | |
231 | було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в | |
232 | дистрибутиві для інформації про інших учасників проекту та іншої | |
233 | інформації. | |
13ce82d8 | 234 | |
235 | %package charsets | |
236 | Summary: MySQL - character sets definitions | |
89316dd1 | 237 | Summary(pl.UTF-8): MySQL - definicje kodowań znaków |
13ce82d8 | 238 | Group: Applications/Databases |
239 | ||
240 | %description charsets | |
241 | This package contains character sets definitions needed by both client | |
242 | and server. | |
243 | ||
89316dd1 ER |
244 | %description charsets -l pl.UTF-8 |
245 | Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i | |
13ce82d8 | 246 | klienta. |
247 | ||
248 | %package extras | |
249 | Summary: MySQL additional utilities | |
89316dd1 | 250 | Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL |
13ce82d8 | 251 | Group: Applications/Databases |
252 | Requires: %{name}-libs = %{version}-%{release} | |
253 | ||
254 | %description extras | |
255 | MySQL 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 |
259 | Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w | |
13ce82d8 | 260 | pakiecie %{name}-extras-perl). |
261 | ||
262 | %package extras-perl | |
263 | Summary: MySQL additional utilities written in Perl | |
89316dd1 | 264 | Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu |
13ce82d8 | 265 | Group: Applications/Databases |
266 | Requires: %{name}-extras = %{version}-%{release} | |
267 | Requires: perl(DBD::mysql) | |
268 | ||
269 | %description extras-perl | |
270 | MySQL additional utilities written in Perl. | |
271 | ||
89316dd1 ER |
272 | %description extras-perl -l pl.UTF-8 |
273 | Dodatkowe narzędzia do MySQL napisane w Perlu. | |
13ce82d8 | 274 | |
275 | %package client | |
276 | Summary: MySQL - Client | |
89316dd1 ER |
277 | Summary(pl.UTF-8): MySQL - Klient |
278 | Summary(pt.UTF-8): MySQL - Cliente | |
279 | Summary(ru.UTF-8): MySQL клиент | |
280 | Summary(uk.UTF-8): MySQL клієнт | |
13ce82d8 | 281 | Group: Applications/Databases |
282 | Requires: %{name}-charsets = %{version}-%{release} | |
283 | Requires: %{name}-libs = %{version}-%{release} | |
284 | Obsoletes: MySQL-client | |
285 | ||
286 | %description client | |
287 | This package contains the standard MySQL clients. | |
288 | ||
89316dd1 | 289 | %description client -l fr.UTF-8 |
13ce82d8 | 290 | Ce package contient les clients MySQL standards. |
291 | ||
89316dd1 | 292 | %description client -l pl.UTF-8 |
13ce82d8 | 293 | Standardowe programy klienckie MySQL. |
294 | ||
89316dd1 ER |
295 | %description client -l pt_BR.UTF-8 |
296 | Este 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 | |
305 | Summary: Shared libraries for MySQL | |
89316dd1 | 306 | Summary(pl.UTF-8): Biblioteki dzielone MySQL |
13ce82d8 | 307 | Group: Libraries |
308 | Obsoletes: libmysql10 | |
309 | Obsoletes: mysql-doc < 4.1.12 | |
310 | ||
311 | %description libs | |
312 | Shared libraries for MySQL. | |
313 | ||
89316dd1 | 314 | %description libs -l pl.UTF-8 |
13ce82d8 | 315 | Biblioteki dzielone MySQL. |
316 | ||
317 | %package devel | |
318 | Summary: MySQL - Development header files and libraries | |
89316dd1 ER |
319 | Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i biblioteki dla programistów |
320 | Summary(pt.UTF-8): MySQL - Medições de desempenho | |
321 | Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика | |
322 | Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста | |
13ce82d8 | 323 | Group: Development/Libraries |
324 | Requires: %{name}-libs = %{version}-%{release} | |
325 | %{?with_ssl:Requires: openssl-devel} | |
326 | Requires: zlib-devel | |
327 | Obsoletes: MySQL-devel | |
328 | Obsoletes: libmysql10-devel | |
329 | ||
330 | %description devel | |
331 | This package contains the development header files and libraries | |
332 | necessary to develop MySQL client applications. | |
333 | ||
89316dd1 | 334 | %description devel -l fr.UTF-8 |
13ce82d8 | 335 | Ce package contient les fichiers entetes et les librairies de |
336 | developpement necessaires pour developper des applications clientes | |
337 | MySQL. | |
338 | ||
89316dd1 ER |
339 | %description devel -l pl.UTF-8 |
340 | Pliki nagłówkowe i biblioteki konieczne do kompilacji aplikacji | |
13ce82d8 | 341 | klienckich MySQL. |
342 | ||
89316dd1 ER |
343 | %description devel -l pt_BR.UTF-8 |
344 | Este pacote contém os arquivos de cabeçalho (header files) e | |
345 | bibliotecas 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 | |
356 | Summary: MySQL static libraries | |
89316dd1 ER |
357 | Summary(pl.UTF-8): Biblioteki statyczne MySQL |
358 | Summary(ru.UTF-8): MySQL - статические библиотеки | |
359 | Summary(uk.UTF-8): MySQL - статичні бібліотеки | |
13ce82d8 | 360 | Group: Development/Libraries |
361 | Requires: %{name}-devel = %{version}-%{release} | |
362 | Obsoletes: MySQL-static | |
363 | ||
364 | %description static | |
365 | MySQL static libraries. | |
366 | ||
89316dd1 | 367 | %description static -l pl.UTF-8 |
13ce82d8 | 368 | Biblioteki 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 | |
379 | Summary: MySQL - Benchmarks | |
89316dd1 ER |
380 | Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy |
381 | Summary(pt.UTF-8): MySQL - Medições de desempenho | |
382 | Summary(ru.UTF-8): MySQL - бенчмарки | |
383 | Summary(uk.UTF-8): MySQL - бенчмарки | |
13ce82d8 | 384 | Group: Applications/Databases |
385 | Requires: %{name} = %{version}-%{release} | |
386 | Requires: %{name}-client | |
387 | Requires: perl(DBD::mysql) | |
388 | Obsoletes: MySQL-bench | |
389 | ||
390 | %description bench | |
391 | This package contains MySQL benchmark scripts and data. | |
392 | ||
89316dd1 ER |
393 | %description bench -l pl.UTF-8 |
394 | Programy testujące szybkość serwera MySQL. | |
13ce82d8 | 395 | |
89316dd1 ER |
396 | %description bench -l pt_BR.UTF-8 |
397 | Este 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 | 401 | MySQL. |
402 | ||
89316dd1 ER |
403 | %description bench -l uk.UTF-8 |
404 | Цей пакет містить скрипти та дані для оцінки продуктивності MySQL. | |
13ce82d8 | 405 | |
406 | %package doc | |
407 | Summary: MySQL manual | |
89316dd1 | 408 | Summary(pl.UTF-8): Podręcznik użytkownika MySQL |
13ce82d8 | 409 | Group: Applications/Databases |
410 | ||
411 | %description doc | |
412 | This package contains manual in HTML format. | |
413 | ||
89316dd1 ER |
414 | %description doc -l pl.UTF-8 |
415 | Podręcznik MySQL-a w formacie HTML. | |
13ce82d8 | 416 | |
417 | %package ndb | |
418 | Summary: MySQL - NDB Storage Engine Daemon | |
89316dd1 | 419 | Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB |
13ce82d8 | 420 | Group: Applications/Databases |
421 | Requires: %{name}-libs = %{version}-%{release} | |
422 | ||
423 | %description ndb | |
424 | This package contains the standard MySQL NDB Storage Engine Daemon. | |
425 | ||
89316dd1 | 426 | %description ndb -l pl.UTF-8 |
13ce82d8 | 427 | Ten pakiet zawiera standardowego demona silnika przechowywania danych |
428 | NDB. | |
429 | ||
430 | %package ndb-client | |
431 | Summary: MySQL - NDB Clients | |
89316dd1 | 432 | Summary(pl.UTF-8): MySQL - programy klienckie NDB |
13ce82d8 | 433 | Group: Applications/Databases |
434 | Requires: %{name}-libs = %{version}-%{release} | |
435 | ||
436 | %description ndb-client | |
437 | This package contains the standard MySQL NDB Clients. | |
438 | ||
89316dd1 | 439 | %description ndb-client -l pl.UTF-8 |
13ce82d8 | 440 | Ten pakiet zawiera standardowe programy klienckie MySQL NDB. |
441 | ||
442 | %package ndb-mgm | |
443 | Summary: MySQL - NDB Management Daemon | |
89316dd1 | 444 | Summary(pl.UTF-8): MySQL - demon zarządzający NDB |
13ce82d8 | 445 | Group: Applications/Databases |
446 | Requires: %{name}-libs = %{version}-%{release} | |
447 | ||
448 | %description ndb-mgm | |
449 | This package contains the standard MySQL NDB Management Daemon. | |
450 | ||
89316dd1 ER |
451 | %description ndb-mgm -l pl.UTF-8 |
452 | Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB. | |
13ce82d8 | 453 | |
454 | %package ndb-cpc | |
455 | Summary: MySQL - NDB CPC Daemon | |
89316dd1 | 456 | Summary(pl.UTF-8): MySQL - demon NDB CPC |
13ce82d8 | 457 | Group: Applications/Databases |
458 | Requires: %{name}-libs = %{version}-%{release} | |
459 | ||
460 | %description ndb-cpc | |
461 | This package contains the standard MySQL NDB CPC Daemon. | |
462 | ||
89316dd1 | 463 | %description ndb-cpc -l pl.UTF-8 |
13ce82d8 | 464 | Ten 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} |
470 | mv 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 ;) | |
518 | CXXFLAGS="%{rpmcflags} -felide-constructors -fno-rtti -fno-exceptions %{!?debug:-fomit-frame-pointer}" | |
519 | CFLAGS="%{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 | ||
566 | echo -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 | |
574 | rm -rf $RPM_BUILD_ROOT | |
a8c2b192 | 575 | install -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} | |
580 | install -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 | ||
590 | install Docs/mysql.info $RPM_BUILD_ROOT%{_infodir} | |
591 | ||
592 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql | |
593 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql | |
594 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql | |
595 | # This is template for configuration file which is created after 'service mysql init' | |
596 | install %{SOURCE4} mysqld.conf | |
597 | install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/clusters.conf | |
598 | touch $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 | ||
612 | install mysqld.conf $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.conf | |
37400e9a | 613 | cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/mysql-client.conf |
13ce82d8 | 614 | |
615 | # NDB | |
616 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb | |
617 | install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb | |
618 | install %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm | |
619 | install %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm | |
620 | install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc | |
621 | install %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc | |
13ce82d8 | 622 | |
623 | mv -f $RPM_BUILD_ROOT%{_libdir}/mysql/lib* $RPM_BUILD_ROOT%{_libdir} | |
624 | sed -i -e 's,%{_libdir}/mysql,%{_libdir},' $RPM_BUILD_ROOT{%{_libdir}/libmysqlclient{,_r}.la,%{_bindir}/mysql_config} | |
37400e9a | 625 | sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config |
13ce82d8 | 626 | |
627 | # remove known unpackaged files | |
628 | rm -rf $RPM_BUILD_ROOT%{_prefix}/mysql-test | |
629 | ||
37400e9a ER |
630 | # remove .txt variants for .sys messages |
631 | rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*/*.txt | |
632 | ||
13ce82d8 | 633 | # rename not to be so generic name |
13ce82d8 | 634 | mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump |
448811bf | 635 | mv $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 |
646 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade | |
647 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum | |
648 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk | |
649 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog | |
650 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack | |
651 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables | |
652 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults | |
653 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck | |
654 | ||
655 | # functionality in initscript / rpm | |
13ce82d8 | 656 | rm $RPM_BUILD_ROOT%{_bindir}/mysql_install_db |
37400e9a | 657 | rm $RPM_BUILD_ROOT%{_bindir}/mysql_upgrade_shell |
13ce82d8 | 658 | rm $RPM_BUILD_ROOT%{_bindir}/mysqld_safe |
659 | rm $RPM_BUILD_ROOT%{_bindir}/mysqld_multi | |
660 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}* | |
661 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate | |
662 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server | |
663 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure | |
664 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg.txt | |
665 | rm $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid | |
666 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server* | |
667 | rm $RPM_BUILD_ROOT%{_mandir}/man1/safe_mysqld* | |
668 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1* | |
37400e9a ER |
669 | rm $RPM_BUILD_ROOT%{_bindir}/resolveip |
670 | rm $RPM_BUILD_ROOT%{_mandir}/man1/resolveip.1* | |
a78a22c1 | 671 | rm $RPM_BUILD_ROOT%{_mandir}/man1/make_win_bin_dist.1 |
37400e9a ER |
672 | rm $RPM_BUILD_ROOT%{_bindir}/comp_err |
673 | rm $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1 | |
a78a22c1 | 674 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_install_db.1 |
2cc8e9c5 | 675 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1 |
448811bf | 676 | rm $RPM_BUILD_ROOT%{_mandir}/man1/make_win_src_distribution.1 |
e32f1a7b | 677 | rm $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld_multi.server |
448811bf ER |
678 | |
679 | # no package for tests | |
680 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1 | |
681 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1 | |
682 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1 | |
37400e9a ER |
683 | # orphaned manuals |
684 | rm $RPM_BUILD_ROOT%{_mandir}/man1/ndb_print_backup_file.1 | |
685 | rm $RPM_BUILD_ROOT%{_mandir}/man1/ndb_print_schema_file.1 | |
686 | rm $RPM_BUILD_ROOT%{_mandir}/man1/ndb_print_sys_file.1 | |
37400e9a | 687 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqltest_embedded.1 |
13ce82d8 | 688 | |
689 | # in %doc | |
690 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.{ini,cnf} | |
691 | ||
692 | %clean | |
693 | rm -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 | |
705 | if [ "$1" = "0" ]; then | |
706 | %service -q mysql stop | |
707 | /sbin/chkconfig --del mysql | |
708 | fi | |
709 | ||
710 | %postun | |
711 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
712 | if [ "$1" = "0" ]; then | |
713 | %userremove mysql | |
714 | %groupremove mysql | |
715 | fi | |
716 | ||
717 | %post ndb | |
718 | /sbin/chkconfig --add mysql-ndb | |
719 | %service mysql-ndb restart "mysql NDB engine" | |
720 | ||
721 | %preun ndb | |
722 | if [ "$1" = "0" ]; then | |
723 | %service mysql-ndb stop | |
724 | /sbin/chkconfig --del mysql-ndb | |
725 | fi | |
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 | |
732 | if [ "$1" = "0" ]; then | |
733 | %service mysql-ndb-mgm stop | |
734 | /sbin/chkconfig --del mysql-ndb-mgm | |
735 | fi | |
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 | |
742 | if [ "$1" = "0" ]; then | |
743 | %service mysql-ndb-cpc stop | |
744 | /sbin/chkconfig --del mysql-ndb-cpc | |
745 | fi | |
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 | 752 | if [ -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 | |
763 | fi | |
764 | ||
885918e3 | 765 | %triggerpostun -- mysql < 4.1.1 |
13ce82d8 | 766 | # For better compatibility with prevoius versions: |
767 | for 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 | |
796 | done | |
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 | |
801 | EOF | |
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* |