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