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