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