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