]> git.pld-linux.org Git - packages/mysql.git/blob - mysql.spec
- more mysqld.conf changes: skip-locking, default-character-set
[packages/mysql.git] / mysql.spec
1 # TODO:
2 # - unpackaged:
3 #   /usr/bin/mysqlaccess.conf
4 #   /usr/data/mysql/.empty
5 #   /usr/data/test/.empty
6 # - http://bugs.mysql.com/bug.php?id=16470
7 # - innodb are dynamic (= as plugins) ?
8 # - missing have_archive, have_merge
9 # - is plugin_dir lib64 safe?
10 # - Using NDB Cluster... could not find sci transporter in /{include, lib}
11 # - !!! Makefiles for libmysqld.so !!!
12 # - segfaults on select from non-mysql user (caused by builder environment):
13 #     https://bugs.launchpad.net/pld-linux/+bug/381904
14 #     (profiling disabled temporaily to workaround this)
15 #
16 # Conditional build:
17 %bcond_with     autodeps        # BR packages needed only for resolving deps
18 %bcond_without  innodb          # InnoDB storage engine support
19 %bcond_without  big_tables      # Support tables with more than 4G rows even on 32 bit platforms
20 %bcond_without  federated       # Federated storage engine support
21 %bcond_without  raid            # RAID support
22 %bcond_without  ssl             # OpenSSL support
23 %bcond_without  tcpd            # libwrap (tcp_wrappers) support
24 %bcond_with     sphinx          # Sphinx storage engine support
25 %bcond_with     tests           # FIXME: don't run correctly
26 %bcond_with     ndb             # NDB is now a separate product, this here is broken, so disable it
27
28 %include        /usr/lib/rpm/macros.perl
29 Summary:        MySQL: a very fast and reliable SQL database engine
30 Summary(de.UTF-8):      MySQL: ist eine SQL-Datenbank
31 Summary(fr.UTF-8):      MySQL: un serveur SQL rapide et fiable
32 Summary(pl.UTF-8):      MySQL: bardzo szybka i niezawodna baza danych (SQL)
33 Summary(pt_BR.UTF-8):   MySQL: Um servidor SQL rápido e confiável
34 Summary(ru.UTF-8):      MySQL - быстрый SQL-сервер
35 Summary(uk.UTF-8):      MySQL - швидкий SQL-сервер
36 Summary(zh_CN.UTF-8):   MySQL数据库服务器
37 Name:           mysql
38 Version:        5.5.9
39 Release:        2
40 License:        GPL + MySQL FLOSS Exception
41 Group:          Applications/Databases
42 # Source0Download: http://dev.mysql.com/downloads/mysql/5.5.html#downloads
43 Source0:        http://vesta.informatik.rwth-aachen.de/mysql/Downloads/MySQL-5.5/%{name}-%{version}.tar.gz
44 # Source0-md5:  701c0c44b7f1c2300adc0dc45729f903
45 Source100:      http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
46 # Source100-md5:        7b9b618cb9b378f949bb1b91ddcc4f54
47 Source1:        %{name}.init
48 Source2:        %{name}.sysconfig
49 Source3:        %{name}.logrotate
50 Source4:        %{name}d.conf
51 Source5:        %{name}-clusters.conf
52 Source7:        %{name}-ndb.init
53 Source8:        %{name}-ndb.sysconfig
54 Source9:        %{name}-ndb-mgm.init
55 Source10:       %{name}-ndb-mgm.sysconfig
56 Source11:       %{name}-ndb-cpc.init
57 Source12:       %{name}-ndb-cpc.sysconfig
58 Source13:       %{name}-client.conf
59 Source14:       my.cnf
60 # from fedora
61 Source15:       lib%{name}.version
62 Patch2:         %{name}-c++.patch
63 Patch3:         %{name}-info.patch
64 Patch4:         %{name}-sql-cxx-pic.patch
65 # from fedora
66 Patch5:         %{name}-versioning.patch
67 Patch6:         %{name}-system-users.patch
68 Patch7:         %{name}-bug-34192.patch
69 Patch8:         %{name}-client-config.patch
70 Patch9:         %{name}-build.patch
71 Patch10:        %{name}-alpha.patch
72 Patch11:        %{name}-upgrade.patch
73 Patch12:        %{name}-config.patch
74 Patch14:        %{name}-bug-43594.patch
75 Patch18:        %{name}-sphinx.patch
76 Patch19:        %{name}-chain-certs.patch
77 # <percona patches, http://bazaar.launchpad.net/~percona-dev/percona-server/5.5.8/files>
78 # series file shows the order of patches
79 Patch100:       microsec_process.patch
80 Patch101:       optimizer_fix.patch
81 Patch102:       %{name}_dump_ignore_ct.patch
82 Patch103:       control_online_alter_index.patch
83 Patch104:       show_temp.patch
84 Patch105:       innodb_show_status.patch
85 Patch106:       innodb_io_patches.patch
86 Patch107:       innodb_opt_lru_count.patch
87 Patch108:       innodb_extra_rseg.patch
88 Patch109:       innodb_overwrite_relay_log_info.patch
89 Patch110:       innodb_thread_concurrency_timer_based.patch
90 Patch111:       innodb_dict_size_limit.patch
91 Patch112:       innodb_split_buf_pool_mutex.patch
92 Patch113:       innodb_expand_import.patch
93 Patch114:       innodb_show_sys_tables.patch
94 Patch115:       innodb_stats.patch
95 Patch116:       innodb_recovery_patches.patch
96 Patch117:       innodb_admin_command_base.patch
97 Patch118:       innodb_show_lock_name.patch
98 Patch119:       innodb_extend_slow.patch
99 Patch120:       innodb_lru_dump_restore.patch
100 Patch121:       innodb_separate_doublewrite.patch
101 Patch122:       innodb_pass_corrupt_table.patch
102 Patch123:       innodb_fast_checksum.patch
103 Patch124:       innodb_files_extend.patch
104 Patch125:       innodb_fix_misc.patch
105 Patch126:       innodb_deadlock_count.patch
106 Patch127:       innodb_adaptive_hash_index_partitions.patch
107 Patch128:       innodb_buffer_pool_pages_i_s.patch
108 Patch129:       innodb_buffer_pool_shm.patch
109 Patch130:       innodb_show_status_extend.patch
110 Patch131:       slow_extended.patch
111 Patch132:       percona_support.patch
112 Patch133:       query_cache_enhance.patch
113 Patch134:       log_connection_error.patch
114 Patch135:       mysql_syslog.patch
115 Patch136:       response_time_distribution.patch
116 Patch137:       error_pad.patch
117 Patch138:       remove_fcntl_excessive_calls.patch
118 Patch139:       sql_no_fcache.patch
119 Patch140:       show_slave_status_nolock.patch
120 Patch141:       log_warnings_silence.patch
121 Patch142:       userstat.patch
122 Patch143:       bug580324.patch
123 Patch144:       mysql_remove_eol_carret.patch
124 Patch145:       mysql-test.diff
125 # </percona>
126 URL:            http://www.mysql.com/products/community/
127 BuildRequires:  bison
128 BuildRequires:  cmake >= 2.6
129 BuildRequires:  groff
130 %if "%{pld_release}" == "ac"
131 BuildRequires:  libstdc++4-devel >= 5:4.0
132 %else
133 BuildRequires:  libstdc++-devel >= 5:4.0
134 %endif
135 BuildRequires:  libtool
136 %{?with_tcpd:BuildRequires:     libwrap-devel}
137 BuildRequires:  ncurses-devel >= 4.2
138 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7d}
139 %{?with_autodeps:BuildRequires: perl-DBI}
140 BuildRequires:  perl-devel >= 1:5.6.1
141 BuildRequires:  readline-devel >= 4.2
142 BuildRequires:  rpm-perlprov >= 4.1-13
143 BuildRequires:  rpmbuild(macros) >= 1.597
144 BuildRequires:  sed >= 4.0
145 BuildRequires:  zlib-devel
146 Requires(post,preun):   /sbin/chkconfig
147 Requires(postun):       /usr/sbin/groupdel
148 Requires(postun):       /usr/sbin/userdel
149 Requires(pre):  /bin/id
150 Requires(pre):  /usr/bin/getgid
151 Requires(pre):  /usr/sbin/groupadd
152 Requires(pre):  /usr/sbin/useradd
153 Requires(triggerpostun):        sed >= 4.0
154 Requires:       %{name}-charsets = %{version}-%{release}
155 Requires:       %{name}-libs = %{version}-%{release}
156 Requires:       /usr/bin/setsid
157 Requires:       rc-scripts >= 0.2.0
158 Suggests:       mysql-client
159 %{?with_tcpd:Suggests:  tcp_wrappers}
160 Suggests:       vim-syntax-mycnf
161 Provides:       MySQL-server
162 Provides:       group(mysql)
163 Provides:       msqlormysql
164 Provides:       user(mysql)
165 Obsoletes:      MySQL
166 Obsoletes:      mysql-server
167 Conflicts:      logrotate < 3.7-4
168 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
169
170 %define         _libexecdir     %{_sbindir}
171 %define         _localstatedir  /var/lib/mysql
172 %define         _mysqlhome      /home/services/mysql
173
174 %define         _noautoreqdep   'perl(DBD::mysql)'
175
176 %description
177 MySQL is a true multi-user, multi-threaded SQL (Structured Query
178 Language) database server. SQL is the most popular database language
179 in the world. MySQL is a client/server implementation that consists of
180 a server daemon mysqld and many different client programs/libraries.
181
182 The main goals of MySQL are speed, robustness and easy to use. MySQL
183 was originally developed because we at Tcx needed a SQL server that
184 could handle very big databases with magnitude higher speed than what
185 any database vendor could offer to us. We have now been using MySQL
186 since 1996 in a environment with more than 40 databases, 10,000
187 tables, of which more than 500 have more than 7 million rows. This is
188 about 50G of mission critical data.
189
190 The base upon which MySQL is built is a set of routines that have been
191 used in a highly demanding production environment for many years.
192 While MySQL is still in development, it already offers a rich and
193 highly useful function set.
194
195 %description -l fr.UTF-8
196 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
197 multi-taches. Le langage SQL est le langage de bases de donnees le
198 plus populaire au monde. MySQL est une implementation client/serveur
199 qui consiste en un serveur (mysqld) et differents
200 programmes/bibliotheques clientes.
201
202 Les objectifs principaux de MySQL sont: vitesse, robustesse et
203 facilite d'utilisation. MySQL fut originalement developpe parce que
204 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
205 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
206 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
207 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
208 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
209 millions de lignes. Ceci represente environ 50G de donnees critiques.
210
211 A la base de la conception de MySQL, on retrouve une serie de routines
212 qui ont ete utilisees dans un environnement de production pendant
213 plusieurs annees. Meme si MySQL est encore en developpement, il offre
214 deja une riche et utile serie de fonctions.
215
216 %description -l pl.UTF-8
217 MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych
218 SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz
219 danych. MySQL to implementacja klient/serwer składająca się z demona
220 mysqld i wielu różnych programów i bibliotek klienckich.
221
222 Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania.
223 MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali
224 serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele
225 większą, niż mogli zaoferować inni producenci baz danych. Używają go
226 od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z
227 których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około
228 50GB krytycznych danych.
229
230 Baza, na której oparty jest MySQL, składa się ze zbioru procedur,
231 które były używane w bardzo wymagającym środowisku produkcyjnym przez
232 wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty
233 i użyteczny zbiór funkcji.
234
235 %description -l de.UTF-8
236 MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
237 Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
238 werden zwar in zweidimensionalen Tabellen gespeichert und können mit
239 einem Primärschlüssel versehen werden. Es ist aber keine Definition
240 eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer
241 MySQL-Datenbank völlig allein für die (referenzielle) Integrität der
242 Daten verantwortlich. Allein durch die Nutzung externer
243 Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität
244 ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
245
246 %description -l pt_BR.UTF-8
247 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
248 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
249 dados no mundo. O MySQL é uma implementação cliente/servidor que
250 consiste de um servidor chamado mysqld e diversos
251 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
252 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
253 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
254 pudesse lidar com grandes bases de dados e com uma velocidade muito
255 maior do que a que qualquer vendedor podia nos oferecer. Estamos
256 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
257 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
258 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
259 A base da construção do MySQL é uma série de rotinas que foram usadas
260 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
261 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
262 funções muito ricas e úteis. Veja a documentação para maiores
263 informações.
264
265 %description -l ru.UTF-8
266 MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL
267 была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в
268 дистрибутиве на предмет других участников проекта и прочей информации
269 о MySQL.
270
271 %description -l uk.UTF-8
272 MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL
273 було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в
274 дистрибутиві для інформації про інших учасників проекту та іншої
275 інформації.
276
277 %package charsets
278 Summary:        MySQL - character sets definitions
279 Summary(pl.UTF-8):      MySQL - definicje kodowań znaków
280 Group:          Applications/Databases
281
282 %description charsets
283 This package contains character sets definitions needed by both client
284 and server.
285
286 %description charsets -l pl.UTF-8
287 Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i
288 klienta.
289
290 %package -n mysqlhotcopy
291 Summary:        mysqlhotcopy - A MySQL database backup program
292 Summary(pl.UTF-8):      mysqlhotcopy - program do tworzenia kopii zapasowych baz MySQL
293 Group:          Applications/Databases
294 Requires:       perl-DBD-mysql
295
296 %description -n mysqlhotcopy
297 mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a
298 database backup quickly. It is the fastest way to make a backup of the
299 database or single tables, but it can be run only on the same machine
300 where the database directories are located. mysqlhotcopy works only
301 for backing up MyISAM and ARCHIVE tables.
302
303 See innobackup package to backup InnoDB tables.
304
305 %description -n mysqlhotcopy -l pl.UTF-8
306 mysqlhotcopy wykorzystuje LOCK TABLES, FLUSH TABLES oraz cp i scp do
307 szybkiego tworzenia kopii zapasowych baz danych. Jest to najszybszy
308 sposób wykonania kopii zapasowej bazy danych lub pojedynczych tabel,
309 ale może działać tylko na maszynie, na której znajdują się katalogi z
310 bazą danych. mysqlhotcopy działa tylko dla tabel typu MyISAM i
311 ARCHIVE.
312
313 Narzędzie do tworzenia kopii tabel InnoDB znajduje się w pakiecie
314 innobackup.
315
316 %package extras
317 Summary:        MySQL additional utilities
318 Summary(pl.UTF-8):      Dodatkowe narzędzia do MySQL
319 Group:          Applications/Databases
320 Requires:       %{name}-client = %{version}-%{release}
321 Requires:       %{name}-libs = %{version}-%{release}
322
323 %description extras
324 MySQL additional utilities except Perl scripts (they may be found in
325 %{name}-extras-perl package).
326
327 %description extras -l pl.UTF-8
328 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
329 pakiecie %{name}-extras-perl).
330
331 %package extras-perl
332 Summary:        MySQL additional utilities written in Perl
333 Summary(pl.UTF-8):      Dodatkowe narzędzia do MySQL napisane w Perlu
334 Group:          Applications/Databases
335 Requires:       %{name}-extras = %{version}-%{release}
336 # this is just for the sake of smooth upgrade, not to break systems
337 Requires:       mysqlhotcopy = %{version}-%{release}
338 Requires:       perl(DBD::mysql)
339
340 %description extras-perl
341 MySQL additional utilities written in Perl.
342
343 %description extras-perl -l pl.UTF-8
344 Dodatkowe narzędzia do MySQL napisane w Perlu.
345
346 %package client
347 Summary:        MySQL - Client
348 Summary(pl.UTF-8):      MySQL - Klient
349 Summary(pt.UTF-8):      MySQL - Cliente
350 Summary(ru.UTF-8):      MySQL клиент
351 Summary(uk.UTF-8):      MySQL клієнт
352 Group:          Applications/Databases
353 Requires:       %{name}-charsets = %{version}-%{release}
354 Requires:       %{name}-libs = %{version}-%{release}
355 Obsoletes:      MySQL-client
356
357 %description client
358 This package contains the standard MySQL clients.
359
360 %description client -l fr.UTF-8
361 Ce package contient les clients MySQL standards.
362
363 %description client -l pl.UTF-8
364 Standardowe programy klienckie MySQL.
365
366 %description client -l pt_BR.UTF-8
367 Este pacote contém os clientes padrão para o MySQL.
368
369 %description client -l ru.UTF-8
370 Этот пакет содержит только клиент MySQL.
371
372 %description client -l uk.UTF-8
373 Цей пакет містить тільки клієнта MySQL.
374
375 %package libs
376 Summary:        Shared libraries for MySQL
377 Summary(pl.UTF-8):      Biblioteki współdzielone MySQL
378 Group:          Libraries
379 Obsoletes:      libmysql10
380 Obsoletes:      mysql-doc < 4.1.12
381
382 %description libs
383 Shared libraries for MySQL.
384
385 %description libs -l pl.UTF-8
386 Biblioteki współdzielone MySQL.
387
388 %package devel
389 Summary:        MySQL - development header files and other files
390 Summary(pl.UTF-8):      MySQL - Pliki nagłówkowe i inne dla programistów
391 Summary(pt.UTF-8):      MySQL - Medições de desempenho
392 Summary(ru.UTF-8):      MySQL - хедеры и библиотеки разработчика
393 Summary(uk.UTF-8):      MySQL - хедери та бібліотеки програміста
394 Group:          Development/Libraries
395 Requires:       %{name}-libs = %{version}-%{release}
396 %{?with_ssl:Requires:   openssl-devel}
397 Requires:       zlib-devel
398 Obsoletes:      MySQL-devel
399 Obsoletes:      libmysql10-devel
400
401 %description devel
402 This package contains the development header files and other files
403 necessary to develop MySQL client applications.
404
405 %description devel -l fr.UTF-8
406 Ce package contient les fichiers entetes et les librairies de
407 developpement necessaires pour developper des applications clientes
408 MySQL.
409
410 %description devel -l pl.UTF-8
411 Pliki nagłówkowe i inne pliki konieczne do kompilacji aplikacji
412 klienckich MySQL.
413
414 %description devel -l pt_BR.UTF-8
415 Este pacote contém os arquivos de cabeçalho (header files) e
416 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
417
418 %description devel -l ru.UTF-8
419 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
420 разработки клиентских приложений.
421
422 %description devel -l uk.UTF-8
423 Цей пакет містить хедери та бібліотеки програміста, необхідні для
424 розробки програм-клієнтів.
425
426 %package static
427 Summary:        MySQL static libraries
428 Summary(pl.UTF-8):      Biblioteki statyczne MySQL
429 Summary(ru.UTF-8):      MySQL - статические библиотеки
430 Summary(uk.UTF-8):      MySQL - статичні бібліотеки
431 Group:          Development/Libraries
432 Requires:       %{name}-devel = %{version}-%{release}
433 Obsoletes:      MySQL-static
434
435 %description static
436 MySQL static libraries.
437
438 %description static -l pl.UTF-8
439 Biblioteki statyczne MySQL.
440
441 %description static -l ru.UTF-8
442 Этот пакет содержит статические библиотеки разработчика, необходимые
443 для разработки клиентских приложений.
444
445 %description static -l uk.UTF-8
446 Цей пакет містить статичні бібліотеки програміста, необхідні для
447 розробки програм-клієнтів.
448
449 %package bench
450 Summary:        MySQL - Benchmarks
451 Summary(pl.UTF-8):      MySQL - Programy testujące szybkość działania bazy
452 Summary(pt.UTF-8):      MySQL - Medições de desempenho
453 Summary(ru.UTF-8):      MySQL - бенчмарки
454 Summary(uk.UTF-8):      MySQL - бенчмарки
455 Group:          Applications/Databases
456 Requires:       %{name} = %{version}-%{release}
457 Requires:       %{name}-client
458 Requires:       perl(DBD::mysql)
459 Obsoletes:      MySQL-bench
460
461 %description bench
462 This package contains MySQL benchmark scripts and data.
463
464 %description bench -l pl.UTF-8
465 Programy testujące szybkość serwera MySQL.
466
467 %description bench -l pt_BR.UTF-8
468 Este pacote contém medições de desempenho de scripts e dados do MySQL.
469
470 %description bench -l ru.UTF-8
471 Этот пакет содержит скрипты и данные для оценки производительности
472 MySQL.
473
474 %description bench -l uk.UTF-8
475 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
476
477 %package doc
478 Summary:        MySQL manual
479 Summary(pl.UTF-8):      Podręcznik użytkownika MySQL
480 Group:          Applications/Databases
481
482 %description doc
483 This package contains manual in HTML format.
484
485 %description doc -l pl.UTF-8
486 Podręcznik MySQL-a w formacie HTML.
487
488 %package ndb
489 Summary:        MySQL - NDB Storage Engine Daemon
490 Summary(pl.UTF-8):      MySQL - demon silnika przechowywania danych NDB
491 Group:          Applications/Databases
492 Requires:       %{name}-libs = %{version}-%{release}
493
494 %description ndb
495 This package contains the standard MySQL NDB Storage Engine Daemon.
496
497 %description ndb -l pl.UTF-8
498 Ten pakiet zawiera standardowego demona silnika przechowywania danych
499 NDB.
500
501 %package ndb-client
502 Summary:        MySQL - NDB Clients
503 Summary(pl.UTF-8):      MySQL - programy klienckie NDB
504 Group:          Applications/Databases
505 Requires:       %{name}-libs = %{version}-%{release}
506
507 %description ndb-client
508 This package contains the standard MySQL NDB Clients.
509
510 %description ndb-client -l pl.UTF-8
511 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
512
513 %package ndb-mgm
514 Summary:        MySQL - NDB Management Daemon
515 Summary(pl.UTF-8):      MySQL - demon zarządzający NDB
516 Group:          Applications/Databases
517 Requires:       %{name}-libs = %{version}-%{release}
518
519 %description ndb-mgm
520 This package contains the standard MySQL NDB Management Daemon.
521
522 %description ndb-mgm -l pl.UTF-8
523 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
524
525 %package ndb-cpc
526 Summary:        MySQL - NDB CPC Daemon
527 Summary(pl.UTF-8):      MySQL - demon NDB CPC
528 Group:          Applications/Databases
529 Requires:       %{name}-libs = %{version}-%{release}
530
531 %description ndb-cpc
532 This package contains the standard MySQL NDB CPC Daemon.
533
534 %description ndb-cpc -l pl.UTF-8
535 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
536
537 %prep
538 %setup -q %{?with_sphinx:-a100}
539 %if %{with sphinx}
540 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
541 mv sphinx-*/mysqlse storage/sphinx
542 %patch18 -p1
543 %endif
544 #%patch2 -p1 # NEEDS CHECK, which exact program needs -lc++
545 %patch3 -p1
546 %ifarch alpha
547 # this is strange: mysqld functions for UDF modules are not explicitly defined,
548 # so -rdynamic is used; in such case gcc3+ld on alpha doesn't like C++ vtables
549 # in objects compiled without -fPIC
550 %patch4 -p1
551 # gcc 3.3.x ICE
552 %patch10 -p1
553 %endif
554 %patch5 -p1
555 %patch6 -p1
556 %patch7 -p1
557 %patch8 -p1
558 %patch9 -p1
559 %patch11 -p1
560 %patch12 -p1
561 %patch14 -p0
562 %patch19 -p1
563 # <percona %patches>
564 %patch100 -p1
565 %patch101 -p1
566 #%patch102 -p1
567 %patch103 -p1
568 %patch104 -p1
569 %patch105 -p1
570 %patch106 -p1
571 %patch107 -p1
572 %patch108 -p1
573 %patch109 -p1
574 %patch110 -p1
575 %patch111 -p1
576 %patch112 -p1
577 %patch113 -p1
578 %patch114 -p1
579 %patch115 -p1
580 %patch116 -p1
581 %patch117 -p1
582 %patch118 -p1
583 %patch119 -p1
584 %patch120 -p1
585 %patch121 -p1
586 %patch122 -p1
587 %patch123 -p1
588 %patch124 -p1
589 %patch125 -p1
590 %patch126 -p1
591 %patch127 -p1
592 %patch128 -p1
593 %patch129 -p1
594 %patch130 -p1
595 %patch131 -p1
596 %patch132 -p1
597 %patch133 -p1
598 %patch134 -p1
599 %patch135 -p1
600 %patch136 -p1
601 %patch137 -p1
602 %patch138 -p1
603 %patch139 -p1
604 %patch140 -p1
605 %patch141 -p1
606 %patch142 -p1
607 %patch143 -p1
608 %patch144 -p1
609 %patch145 -p1
610 # </percona>
611
612 # to get these files rebuild
613 rm sql/sql_yacc.cc
614 rm sql/sql_yacc.h
615
616 %build
617 install -d build
618 cd build
619 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
620 # (it defaults to first cluster but user may change it to whatever
621 # cluster it wants)
622
623 %if "%{pld_release}" == "ac"
624 # add suffix, but allow ccache, etc in ~/.rpmmacros
625 %{expand:%%define       __cc    %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
626 %{expand:%%define       __cxx   %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
627 %{expand:%%define       __cpp   %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
628 %endif
629
630 # upstream has fallen down badly on symbol versioning, do it ourselves
631 install -d libmysql
632 cp -a %{SOURCE15} libmysql/libmysql.version
633
634 %cmake \
635         -DFEATURE_SET="community" \
636         -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
637         -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
638         -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
639         %{?debug:-DWITH_DEBUG=ON} \
640         -DWITH_FAST_MUTEXES=ON \
641         -DWITH_PIC=ON \
642         -DWITH_LIBEDIT=OFF \
643         -DWITH_READLINE=OFF \
644 %if "%{pld_release}" == "ac"
645         -DWITH_SSL=%{?with_ssl:bundled}%{!?with_ssl:no} \
646 %else
647         -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
648 %endif
649         -DWITH_ZLIB=system \
650         -DCOMPILATION_COMMENT="PLD/Linux Distribution MySQL RPM" \
651         -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
652         -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
653         -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
654         -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
655         -DINSTALL_LAYOUT=RPM \
656         -DINSTALL_MYSQLTESTDIR_RPM="" \
657         -DINSTALL_SQLBENCHDIR=%{_datadir} \
658         -DINSTALL_SUPPORTFILESDIR=%{_datadir}/%{name}-support \
659         ..
660
661 %{__make}
662
663 %{?with_tests:%{__make} test}
664
665 %install
666 rm -rf $RPM_BUILD_ROOT
667 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,skel} \
668            $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \
669            $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
670
671 %{__make} -C build install \
672         DESTDIR=$RPM_BUILD_ROOT
673
674 cp -a Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
675
676 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
677 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
678 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
679 # This is template for configuration file which is created after 'service mysql init'
680 cp -a %{SOURCE4} mysqld.conf
681 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
682 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
683
684 # remove innodb directives from mysqld.conf if mysqld is configured without
685 %if %{without innodb}
686         cp mysqld.conf mysqld.tmp
687         awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
688 %endif
689
690 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
691 cp mysqld.conf mysqld.tmp
692 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
693
694 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
695 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
696 cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/skel/.my.cnf
697
698 # NDB
699 %if %{with ndb}
700 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
701 cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
702 install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
703 cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
704 install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
705 cp -a %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
706 %endif
707
708 # symlinks point to the .so file, fix it
709 ln -sf libmysqlclient.so.16 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.16
710 ln -sf libmysqlclient.so.16.0.0 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.16.0.0
711
712 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
713 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
714
715 # remove known unpackaged files
716 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-support
717
718 # rename not to be so generic name
719 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
720 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
721
722 # not useful without -debug build
723 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
724 %{!?debug:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
725 # generate symbols file, so one can generate backtrace using it
726 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
727 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
728 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
729
730 # do not clobber users $PATH
731 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
732 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
733 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
734 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
735 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
736 #mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
737 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
738 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
739 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
740
741 # delete - functionality in initscript / rpm
742 # note: mysql_install_db (and thus resolveip) are needed by digikam
743 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
744 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
745 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
746 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
747 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
748 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
749 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg-utf8.txt
750 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
751 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
752 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
753 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
754 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
755
756 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
757 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
758 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
759 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
760 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
761 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
762 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mysql-test
763
764 # not needed
765 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
766
767 %clean
768 rm -rf $RPM_BUILD_ROOT
769
770 %pre
771 %groupadd -g 89 mysql
772 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
773
774 %post
775 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
776 /sbin/chkconfig --add mysql
777 %service mysql restart
778
779 %preun
780 if [ "$1" = "0" ]; then
781         %service -q mysql stop
782         /sbin/chkconfig --del mysql
783 fi
784
785 %postun
786 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
787
788 if [ "$1" = "0" ]; then
789         %userremove mysql
790         %groupremove mysql
791 fi
792
793 %post ndb
794 /sbin/chkconfig --add mysql-ndb
795 %service mysql-ndb restart "mysql NDB engine"
796
797 %preun ndb
798 if [ "$1" = "0" ]; then
799         %service mysql-ndb stop
800         /sbin/chkconfig --del mysql-ndb
801 fi
802
803 %post ndb-mgm
804 /sbin/chkconfig --add mysql-ndb-mgm
805 %service mysql-ndb-mgm restart "mysql NDB management node"
806
807 %preun ndb-mgm
808 if [ "$1" = "0" ]; then
809         %service mysql-ndb-mgm stop
810         /sbin/chkconfig --del mysql-ndb-mgm
811 fi
812
813 %post ndb-cpc
814 /sbin/chkconfig --add mysql-ndb-cpc
815 %service mysql-ndb-cpc restart "mysql NDB CPC"
816
817 %preun ndb-cpc
818 if [ "$1" = "0" ]; then
819         %service mysql-ndb-cpc stop
820         /sbin/chkconfig --del mysql-ndb-cpc
821 fi
822
823 %post   libs -p /sbin/ldconfig
824 %postun libs -p /sbin/ldconfig
825
826 %triggerpostun -- mysql < 4.0.20-2.4
827 # For clusters in /etc/%{name}/clusters.conf
828 if [ -f /etc/sysconfig/mysql ]; then
829         . /etc/sysconfig/mysql
830         if [ -n "$MYSQL_DB_CLUSTERS" ]; then
831                 for i in "$MYSQL_DB_CLUSTERS"; do
832                         echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
833                 done
834                 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
835                 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
836                 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
837                 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
838         fi
839 fi
840
841 %triggerpostun -- mysql < 4.1.1
842 # For better compatibility with prevoius versions:
843 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
844         if echo "$config" | grep -q '^/'; then
845                 config_file="$config"
846         elif [ -f "/etc/%{name}/$config" ]; then
847                 config_file=/etc/%{name}/$config
848         else
849                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
850                 if [ -z "$clusterdir" ]; then
851                         echo >&2 "Can't find cluster dir for $config!"
852                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
853                         exit 1
854                 fi
855                 config_file="$clusterdir/mysqld.conf"
856         fi
857
858         if [ ! -f "$config_file" ]; then
859                         echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
860                         exit 1
861         fi
862         echo "Adding option old-passwords to config: $config_file"
863         echo "If you want to use new, better passwords - remove it"
864
865         # sed magic to add 'old-passwords' to [mysqld] section
866         sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
867                 a
868                 a; Compatibility options:
869                 aold-passwords
870         }
871         ' $config_file
872 done
873
874 %banner -e %{name}-4.1.x <<-EOF
875         If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
876         mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
877 EOF
878 #'
879
880 %triggerpostun -- mysql < 5.1.0
881 configs=""
882 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
883         if echo "$config" | grep -q '^/'; then
884                 config_file="$config"
885         elif [ -f "/etc/%{name}/$config" ]; then
886                 config_file=/etc/%{name}/$config
887         else
888                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
889                 if [ -z "$clusterdir" ]; then
890                         echo >&2 "Can't find cluster dir for $config!"
891                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
892                         exit 1
893                 fi
894                 config_file="$clusterdir/mysqld.conf"
895         fi
896
897         if [ ! -f "$config_file" ]; then
898                 echo >&2 "ERROR: Can't find real config file for $config! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
899                 continue
900         fi
901         configs="$configs $config_file"
902 done
903
904 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
905 echo 'Thus, you should invoke:'
906 for config in $configs; do
907         sed -i -e '
908                 s/set-variable\s*=\s* //
909         ' $config
910
911         datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
912         echo "# mysql_upgrade --datadir=$datadir"
913 done
914
915 %triggerpostun -- mysql < 5.5.0
916 configs=""
917 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
918         if echo "$config" | grep -q '^/'; then
919                 config_file="$config"
920         elif [ -f "/etc/%{name}/$config" ]; then
921                 config_file=/etc/%{name}/$config
922         else
923                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
924                 if [ -z "$clusterdir" ]; then
925                         echo >&2 "Can't find cluster dir for $config!"
926                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
927                         exit 1
928                 fi
929                 config_file="$clusterdir/mysqld.conf"
930         fi
931
932         if [ ! -f "$config_file" ]; then
933                 echo >&2 "ERROR: Can't find real config file for $config! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
934                 continue
935         fi
936         configs="$configs $config_file"
937 done
938
939 for config in $configs; do
940         sed -i -e '
941                 s/^language *= *polish/lc-messages = pl_PL/i
942                 s/set-variable\s*=\s* //
943                 /^skip-locking/; removed: &/
944                 s/default-character-set/character-set-server/
945         ' $config
946 done
947
948 %files
949 %defattr(644,root,root,755)
950 %doc build/support-files/*.cnf build/support-files/*.ini
951 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
952 %attr(754,root,root) /etc/rc.d/init.d/%{name}
953 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
954 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
955 %attr(755,root,root) %{_sbindir}/innochecksum
956 %attr(755,root,root) %{_sbindir}/my_print_defaults
957 %attr(755,root,root) %{_sbindir}/myisamchk
958 %attr(755,root,root) %{_sbindir}/myisamlog
959 %attr(755,root,root) %{_sbindir}/myisampack
960 #%attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
961 %attr(755,root,root) %{_sbindir}/mysql_upgrade
962 %attr(755,root,root) %{_sbindir}/mysqlcheck
963 %attr(755,root,root) %{_sbindir}/mysqld
964 %dir %{_libdir}/%{name}
965 %dir %{_libdir}/%{name}/plugin
966 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
967 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
968 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
969 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
970 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_archive.so
971 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_blackhole.so
972 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_federated.so
973 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
974 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
975 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
976 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
977 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
978 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
979 %if %{with sphinx}
980 %attr(755,root,root) %{_libdir}/%{name}/plugin/sphinx.so
981 %endif
982 %{_mandir}/man1/innochecksum.1*
983 %{_mandir}/man1/my_print_defaults.1*
984 %{_mandir}/man1/myisamchk.1*
985 %{_mandir}/man1/myisamlog.1*
986 %{_mandir}/man1/myisampack.1*
987 #%{_mandir}/man1/mysql_fix_privilege_tables.1*
988 %{_mandir}/man1/mysql_upgrade.1*
989 %{_mandir}/man1/mysqlcheck.1*
990 %{_mandir}/man8/mysqld.8*
991
992 %if %{?debug:1}0
993 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
994 %{_datadir}/%{name}/mysqld.sym
995 %{_mandir}/man1/*resolve_stack_dump.1*
996 %endif
997
998 %attr(700,mysql,mysql) %{_mysqlhome}
999 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
1000 %attr(751,root,root) /var/lib/mysql
1001 %attr(750,mysql,mysql) %dir /var/log/mysql
1002 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
1003 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
1004
1005 %{_infodir}/mysql.info*
1006 # This is template for configuration file which is created after 'service mysql init'
1007 %{_datadir}/%{name}/mysqld.conf
1008 %{_datadir}/%{name}/mysql_system_tables.sql
1009 %{_datadir}/%{name}/mysql_system_tables_data.sql
1010 %{_datadir}/%{name}/mysql_test_data_timezone.sql
1011
1012 %{_datadir}/%{name}/english
1013 %{_datadir}/%{name}/fill_help_tables.sql
1014 #%{_datadir}/%{name}/mysql_fix_privilege_tables.sql
1015 %lang(cs) %{_datadir}/%{name}/czech
1016 %lang(da) %{_datadir}/%{name}/danish
1017 %lang(de) %{_datadir}/%{name}/german
1018 %lang(el) %{_datadir}/%{name}/greek
1019 %lang(es) %{_datadir}/%{name}/spanish
1020 %lang(et) %{_datadir}/%{name}/estonian
1021 %lang(fr) %{_datadir}/%{name}/french
1022 %lang(hu) %{_datadir}/%{name}/hungarian
1023 %lang(it) %{_datadir}/%{name}/italian
1024 %lang(ja) %{_datadir}/%{name}/japanese
1025 %lang(ko) %{_datadir}/%{name}/korean
1026 %lang(nl) %{_datadir}/%{name}/dutch
1027 %lang(nb) %{_datadir}/%{name}/norwegian
1028 %lang(nn) %{_datadir}/%{name}/norwegian-ny
1029 %lang(pl) %{_datadir}/%{name}/polish
1030 %lang(pt) %{_datadir}/%{name}/portuguese
1031 %lang(ro) %{_datadir}/%{name}/romanian
1032 %lang(ru) %{_datadir}/%{name}/russian
1033 %lang(sr) %{_datadir}/%{name}/serbian
1034 %lang(sk) %{_datadir}/%{name}/slovak
1035 %lang(sv) %{_datadir}/%{name}/swedish
1036 %lang(uk) %{_datadir}/%{name}/ukrainian
1037
1038 %files charsets
1039 %defattr(644,root,root,755)
1040 %dir %{_datadir}/mysql
1041 %{_datadir}/%{name}/charsets
1042
1043 %files extras
1044 %defattr(644,root,root,755)
1045 %attr(755,root,root) %{_bindir}/msql2mysql
1046 %attr(755,root,root) %{_bindir}/myisam_ftdump
1047 %attr(755,root,root) %{_bindir}/mysql_install_db
1048 %attr(755,root,root) %{_bindir}/mysql_secure_installation
1049 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
1050 %attr(755,root,root) %{_bindir}/perror
1051 %attr(755,root,root) %{_bindir}/replace
1052 %attr(755,root,root) %{_bindir}/resolveip
1053 %{_mandir}/man1/msql2mysql.1*
1054 %{_mandir}/man1/myisam_ftdump.1*
1055 %{_mandir}/man1/mysql_install_db.1*
1056 %{_mandir}/man1/mysql_secure_installation.1*
1057 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1058 %{_mandir}/man1/perror.1*
1059 %{_mandir}/man1/replace.1*
1060 %{_mandir}/man1/resolveip.1*
1061
1062 %files -n mysqlhotcopy
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_bindir}/mysqlhotcopy
1065 %{_mandir}/man1/mysqlhotcopy.1*
1066
1067 %files extras-perl
1068 %defattr(644,root,root,755)
1069 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
1070 %attr(755,root,root) %{_bindir}/mysql_find_rows
1071 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
1072 %attr(755,root,root) %{_bindir}/mysql_setpermission
1073 %attr(755,root,root) %{_bindir}/mysql_zap
1074 %attr(755,root,root) %{_bindir}/mysqlaccess
1075 %attr(755,root,root) %{_bindir}/mysqldumpslow
1076 %{_mandir}/man1/mysql_convert_table_format.1*
1077 %{_mandir}/man1/mysql_find_rows.1*
1078 %{_mandir}/man1/mysql_fix_extensions.1*
1079 %{_mandir}/man1/mysql_setpermission.1*
1080 %{_mandir}/man1/mysql_zap.1*
1081 %{_mandir}/man1/mysqlaccess.1*
1082 %{_mandir}/man1/mysqldumpslow.1*
1083
1084 %files client
1085 %defattr(644,root,root,755)
1086 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
1087 %attr(755,root,root) %{_bindir}/mysql
1088 %attr(755,root,root) %{_bindir}/mysqladmin
1089 %attr(755,root,root) %{_bindir}/mysqlbinlog
1090 %attr(755,root,root) %{_bindir}/mysqlbug
1091 %attr(755,root,root) %{_bindir}/mysqldump
1092 %attr(755,root,root) %{_bindir}/mysqlimport
1093 %attr(755,root,root) %{_bindir}/mysqlshow
1094 %{_mandir}/man1/mysql.1*
1095 %{_mandir}/man1/mysqladmin.1*
1096 %{_mandir}/man1/mysqlbinlog.1*
1097 %{_mandir}/man1/mysqlbug.1*
1098 %{_mandir}/man1/mysqldump.1*
1099 %{_mandir}/man1/mysqlimport.1*
1100 %{_mandir}/man1/mysqlshow.1*
1101
1102 %files libs
1103 %defattr(644,root,root,755)
1104 %attr(751,root,root) %dir %{_sysconfdir}/mysql
1105 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
1106 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
1107 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.16
1108 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.*
1109 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.16
1110 %if %{with ndb}
1111 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
1112 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
1113 %endif
1114
1115 %files devel
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{_bindir}/mysql_config
1118 %attr(755,root,root) %{_libdir}/libmysqlclient.so
1119 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
1120 # what's this?
1121 %attr(755,root,root) %{_libdir}/libmysqlservices.so
1122 %if %{with ndb}
1123 %attr(755,root,root) %{_libdir}/libndbclient.so
1124 %endif
1125 %{_includedir}/mysql
1126 %{_aclocaldir}/mysql.m4
1127 %{_mandir}/man1/mysql_config.1*
1128
1129 %files static
1130 %defattr(644,root,root,755)
1131 %{_libdir}/libmysqlclient.a
1132 %{_libdir}/libmysqlclient_r.a
1133 %if %{with ndb}
1134 %{_libdir}/libndbclient.a
1135 %endif
1136
1137 %files bench
1138 %defattr(644,root,root,755)
1139 %attr(755,root,root) %{_bindir}/mysqlslap
1140 %attr(755,root,root) %{_bindir}/mysqltest
1141 %dir %{_datadir}/sql-bench
1142 %{_datadir}/sql-bench/[CDRl]*
1143 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1144 %{_mandir}/man1/mysqlslap.1*
1145 %{_mandir}/man1/mysqltest.1*
1146 %{_mandir}/man1/mysqltest_embedded.1*
1147
1148 #%files doc
1149 #%defattr(644,root,root,755)
1150 #%doc Docs/manual.html Docs/manual_toc.html
1151
1152 %if %{with ndb}
1153 %files ndb
1154 %defattr(644,root,root,755)
1155 %attr(755,root,root) %{_sbindir}/ndbd
1156 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1157 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1158 %{_mandir}/man1/ndbd_redo_log_reader.1*
1159 %{_mandir}/man8/ndbd.8*
1160
1161 %files ndb-client
1162 %defattr(644,root,root,755)
1163 %attr(755,root,root) %{_bindir}/ndb_config
1164 %attr(755,root,root) %{_bindir}/ndb_delete_all
1165 %attr(755,root,root) %{_bindir}/ndb_desc
1166 %attr(755,root,root) %{_bindir}/ndb_drop_index
1167 %attr(755,root,root) %{_bindir}/ndb_drop_table
1168 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1169 %attr(755,root,root) %{_bindir}/ndb_mgm
1170 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1171 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1172 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1173 %attr(755,root,root) %{_bindir}/ndb_restore
1174 %attr(755,root,root) %{_bindir}/ndb_select_all
1175 %attr(755,root,root) %{_bindir}/ndb_select_count
1176 %attr(755,root,root) %{_bindir}/ndb_show_tables
1177 %attr(755,root,root) %{_bindir}/ndb_size.pl
1178 %attr(755,root,root) %{_bindir}/ndb_test_platform
1179 %attr(755,root,root) %{_bindir}/ndb_waiter
1180 %{_mandir}/man1/ndb_config.1*
1181 %{_mandir}/man1/ndb_delete_all.1*
1182 %{_mandir}/man1/ndb_desc.1*
1183 %{_mandir}/man1/ndb_drop_index.1*
1184 %{_mandir}/man1/ndb_drop_table.1*
1185 %{_mandir}/man1/ndb_error_reporter.1*
1186 %{_mandir}/man1/ndb_mgm.1*
1187 %{_mandir}/man1/ndb_print_backup_file.1*
1188 %{_mandir}/man1/ndb_print_schema_file.1*
1189 %{_mandir}/man1/ndb_print_sys_file.1*
1190 %{_mandir}/man1/ndb_restore.1*
1191 %{_mandir}/man1/ndb_select_all.1*
1192 %{_mandir}/man1/ndb_select_count.1*
1193 %{_mandir}/man1/ndb_show_tables.1*
1194 %{_mandir}/man1/ndb_size.pl.1*
1195 %{_mandir}/man1/ndb_waiter.1*
1196
1197 %files ndb-mgm
1198 %defattr(644,root,root,755)
1199 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1200 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1201 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1202 %{_mandir}/man8/ndb_mgmd.8*
1203
1204 %files ndb-cpc
1205 %defattr(644,root,root,755)
1206 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1207 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1208 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1209 %{_mandir}/man1/ndb_cpcd.1*
1210 %endif
This page took 0.274817 seconds and 4 git commands to generate.