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