]> git.pld-linux.org Git - packages/mysql.git/blob - mysql.spec
- always link with system readline and ssl, do not allow fallback to bundled one
[packages/mysql.git] / mysql.spec
1 # TODO:
2 # - unpackaged:
3 #   /usr/bin/mysqlaccess.conf
4 #   /usr/data/mysql/.empty
5 #   /usr/data/test/.empty
6 # - http://bugs.mysql.com/bug.php?id=16470
7 # - innodb are dynamic (= as plugins) ?
8 # - missing have_archive, have_merge
9 # - is plugin_dir lib64 safe?
10 # - Using NDB Cluster... could not find sci transporter in /{include, lib}
11 # - !!! Makefiles for libmysqld.so !!!
12 # - segfaults on select from non-mysql user (caused by builder environment):
13 #     https://bugs.launchpad.net/pld-linux/+bug/381904
14 #     (profiling disabled temporaily to workaround this)
15 #
16 # Conditional build:
17 %bcond_with     autodeps        # BR packages needed only for resolving deps
18 %bcond_without  innodb          # InnoDB storage engine support
19 %bcond_without  big_tables      # Support tables with more than 4G rows even on 32 bit platforms
20 %bcond_without  federated       # Federated storage engine support
21 %bcond_without  raid            # RAID support
22 %bcond_without  ssl             # OpenSSL support
23 %bcond_without  tcpd            # libwrap (tcp_wrappers) support
24 %bcond_with     sphinx          # Sphinx storage engine support
25 %bcond_with     tests           # FIXME: don't run correctly
26 %bcond_with     ndb             # NDB is now a separate product, this here is broken, so disable it
27
28 %include        /usr/lib/rpm/macros.perl
29 Summary:        MySQL: a very fast and reliable SQL database engine
30 Summary(de.UTF-8):      MySQL: ist eine SQL-Datenbank
31 Summary(fr.UTF-8):      MySQL: un serveur SQL rapide et fiable
32 Summary(pl.UTF-8):      MySQL: bardzo szybka i niezawodna baza danych (SQL)
33 Summary(pt_BR.UTF-8):   MySQL: Um servidor SQL rápido e confiável
34 Summary(ru.UTF-8):      MySQL - быстрый SQL-сервер
35 Summary(uk.UTF-8):      MySQL - швидкий SQL-сервер
36 Summary(zh_CN.UTF-8):   MySQL数据库服务器
37 Name:           mysql
38 Version:        5.5.8
39 Release:        0.2
40 License:        GPL + MySQL FLOSS Exception
41 Group:          Applications/Databases
42 # Source0Download: http://dev.mysql.com/downloads/mysql/5.5.html#downloads
43 Source0:        http://vesta.informatik.rwth-aachen.de/mysql/Downloads/MySQL-5.5/%{name}-%{version}.tar.gz
44 # Source0-md5:  42e866302b61f5e213afd33e04677017
45 Source100:      http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
46 # Source100-md5:        7b9b618cb9b378f949bb1b91ddcc4f54
47 Source1:        %{name}.init
48 Source2:        %{name}.sysconfig
49 Source3:        %{name}.logrotate
50 Source4:        %{name}d.conf
51 Source5:        %{name}-clusters.conf
52 Source7:        %{name}-ndb.init
53 Source8:        %{name}-ndb.sysconfig
54 Source9:        %{name}-ndb-mgm.init
55 Source10:       %{name}-ndb-mgm.sysconfig
56 Source11:       %{name}-ndb-cpc.init
57 Source12:       %{name}-ndb-cpc.sysconfig
58 Source13:       %{name}-client.conf
59 Source14:       my.cnf
60 Patch0:         %{name}-libs.patch
61 Patch1:         %{name}-libwrap.patch
62 Patch2:         %{name}-c++.patch
63 Patch3:         %{name}-info.patch
64 Patch4:         %{name}-sql-cxx-pic.patch
65 Patch5:         %{name}-noproc.patch
66 Patch6:         %{name}-system-users.patch
67 Patch7:         %{name}-bug-34192.patch
68 Patch8:         %{name}-client-config.patch
69 Patch9:         %{name}-build.patch
70 Patch10:        %{name}-alpha.patch
71 Patch11:        %{name}-upgrade.patch
72 Patch12:        %{name}-config.patch
73 Patch14:        %{name}-bug-43594.patch
74 Patch15:        plugin-avoid-version.patch
75 Patch16:        %{name}-fix-dummy-thread-race-condition.patch
76 Patch18:        %{name}-sphinx.patch
77 # <percona patches, http://bazaar.launchpad.net/~percona-dev/percona-server/5.5.7/files>
78 Patch100:       %{name}-userstat.patch
79 Patch101:       %{name}-innodb_extend_slow.patch
80 Patch102:       %{name}-microsec_process.patch
81 Patch103:       %{name}-innodb_split_buf_pool_mutex.patch
82 # </percona>
83 URL:            http://www.mysql.com/products/community/
84 BuildRequires:  bison
85 BuildRequires:  cmake >= 2.6
86 BuildRequires:  groff
87 BuildRequires:  libstdc++-devel >= 5:4.0
88 BuildRequires:  libtool
89 %{?with_tcpd:BuildRequires:     libwrap-devel}
90 BuildRequires:  ncurses-devel >= 4.2
91 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7d}
92 %{?with_autodeps:BuildRequires: perl-DBI}
93 BuildRequires:  perl-devel >= 1:5.6.1
94 BuildRequires:  readline-devel >= 4.2
95 BuildRequires:  rpm-perlprov >= 4.1-13
96 BuildRequires:  rpmbuild(macros) >= 1.597
97 BuildRequires:  sed >= 4.0
98 BuildRequires:  zlib-devel
99 Requires(post,preun):   /sbin/chkconfig
100 Requires(postun):       /usr/sbin/groupdel
101 Requires(postun):       /usr/sbin/userdel
102 Requires(pre):  /bin/id
103 Requires(pre):  /usr/bin/getgid
104 Requires(pre):  /usr/sbin/groupadd
105 Requires(pre):  /usr/sbin/useradd
106 Requires(triggerpostun):        sed >= 4.0
107 Requires:       %{name}-charsets = %{version}-%{release}
108 Requires:       %{name}-libs = %{version}-%{release}
109 Requires:       /usr/bin/setsid
110 Requires:       rc-scripts >= 0.2.0
111 Suggests:       mysql-client
112 %{?with_tcpd:Suggests:  tcp_wrappers}
113 Suggests:       vim-syntax-mycnf
114 Provides:       MySQL-server
115 Provides:       group(mysql)
116 Provides:       msqlormysql
117 Provides:       user(mysql)
118 Obsoletes:      MySQL
119 Obsoletes:      mysql-server
120 Conflicts:      logrotate < 3.7-4
121 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
122
123 %define         _libexecdir     %{_sbindir}
124 %define         _localstatedir  /var/lib/mysql
125 %define         _mysqlhome      /home/services/mysql
126
127 %define         _noautoreqdep   'perl(DBD::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}-libs = %{version}-%{release}
274
275 %description extras
276 MySQL additional utilities except Perl scripts (they may be found in
277 %{name}-extras-perl package).
278
279 %description extras -l pl.UTF-8
280 Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w
281 pakiecie %{name}-extras-perl).
282
283 %package extras-perl
284 Summary:        MySQL additional utilities written in Perl
285 Summary(pl.UTF-8):      Dodatkowe narzędzia do MySQL napisane w Perlu
286 Group:          Applications/Databases
287 Requires:       %{name}-extras = %{version}-%{release}
288 # this is just for the sake of smooth upgrade, not to break systems
289 Requires:       mysqlhotcopy = %{version}-%{release}
290 Requires:       perl(DBD::mysql)
291
292 %description extras-perl
293 MySQL additional utilities written in Perl.
294
295 %description extras-perl -l pl.UTF-8
296 Dodatkowe narzędzia do MySQL napisane w Perlu.
297
298 %package client
299 Summary:        MySQL - Client
300 Summary(pl.UTF-8):      MySQL - Klient
301 Summary(pt.UTF-8):      MySQL - Cliente
302 Summary(ru.UTF-8):      MySQL клиент
303 Summary(uk.UTF-8):      MySQL клієнт
304 Group:          Applications/Databases
305 Requires:       %{name}-charsets = %{version}-%{release}
306 Requires:       %{name}-libs = %{version}-%{release}
307 Obsoletes:      MySQL-client
308
309 %description client
310 This package contains the standard MySQL clients.
311
312 %description client -l fr.UTF-8
313 Ce package contient les clients MySQL standards.
314
315 %description client -l pl.UTF-8
316 Standardowe programy klienckie MySQL.
317
318 %description client -l pt_BR.UTF-8
319 Este pacote contém os clientes padrão para o MySQL.
320
321 %description client -l ru.UTF-8
322 Этот пакет содержит только клиент MySQL.
323
324 %description client -l uk.UTF-8
325 Цей пакет містить тільки клієнта MySQL.
326
327 %package libs
328 Summary:        Shared libraries for MySQL
329 Summary(pl.UTF-8):      Biblioteki dzielone MySQL
330 Group:          Libraries
331 Obsoletes:      libmysql10
332 Obsoletes:      mysql-doc < 4.1.12
333
334 %description libs
335 Shared libraries for MySQL.
336
337 %description libs -l pl.UTF-8
338 Biblioteki dzielone MySQL.
339
340 %package devel
341 Summary:        MySQL - Development header files and libraries
342 Summary(pl.UTF-8):      MySQL - Pliki nagłówkowe i biblioteki dla programistów
343 Summary(pt.UTF-8):      MySQL - Medições de desempenho
344 Summary(ru.UTF-8):      MySQL - хедеры и библиотеки разработчика
345 Summary(uk.UTF-8):      MySQL - хедери та бібліотеки програміста
346 Group:          Development/Libraries
347 Requires:       %{name}-libs = %{version}-%{release}
348 %{?with_ssl:Requires:   openssl-devel}
349 Requires:       zlib-devel
350 Obsoletes:      MySQL-devel
351 Obsoletes:      libmysql10-devel
352
353 %description devel
354 This package contains the development header files and libraries
355 necessary to develop MySQL client applications.
356
357 %description devel -l fr.UTF-8
358 Ce package contient les fichiers entetes et les librairies de
359 developpement necessaires pour developper des applications clientes
360 MySQL.
361
362 %description devel -l pl.UTF-8
363 Pliki nagłówkowe i biblioteki konieczne do kompilacji aplikacji
364 klienckich MySQL.
365
366 %description devel -l pt_BR.UTF-8
367 Este pacote contém os arquivos de cabeçalho (header files) e
368 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
369
370 %description devel -l ru.UTF-8
371 Этот пакет содержит хедеры и библиотеки разработчика, необходимые для
372 разработки клиентских приложений.
373
374 %description devel -l uk.UTF-8
375 Цей пакет містить хедери та бібліотеки програміста, необхідні для
376 розробки програм-клієнтів.
377
378 %package static
379 Summary:        MySQL static libraries
380 Summary(pl.UTF-8):      Biblioteki statyczne MySQL
381 Summary(ru.UTF-8):      MySQL - статические библиотеки
382 Summary(uk.UTF-8):      MySQL - статичні бібліотеки
383 Group:          Development/Libraries
384 Requires:       %{name}-devel = %{version}-%{release}
385 Obsoletes:      MySQL-static
386
387 %description static
388 MySQL static libraries.
389
390 %description static -l pl.UTF-8
391 Biblioteki statyczne MySQL.
392
393 %description static -l ru.UTF-8
394 Этот пакет содержит статические библиотеки разработчика, необходимые
395 для разработки клиентских приложений.
396
397 %description static -l uk.UTF-8
398 Цей пакет містить статичні бібліотеки програміста, необхідні для
399 розробки програм-клієнтів.
400
401 %package bench
402 Summary:        MySQL - Benchmarks
403 Summary(pl.UTF-8):      MySQL - Programy testujące szybkość działania bazy
404 Summary(pt.UTF-8):      MySQL - Medições de desempenho
405 Summary(ru.UTF-8):      MySQL - бенчмарки
406 Summary(uk.UTF-8):      MySQL - бенчмарки
407 Group:          Applications/Databases
408 Requires:       %{name} = %{version}-%{release}
409 Requires:       %{name}-client
410 Requires:       perl(DBD::mysql)
411 Obsoletes:      MySQL-bench
412
413 %description bench
414 This package contains MySQL benchmark scripts and data.
415
416 %description bench -l pl.UTF-8
417 Programy testujące szybkość serwera MySQL.
418
419 %description bench -l pt_BR.UTF-8
420 Este pacote contém medições de desempenho de scripts e dados do MySQL.
421
422 %description bench -l ru.UTF-8
423 Этот пакет содержит скрипты и данные для оценки производительности
424 MySQL.
425
426 %description bench -l uk.UTF-8
427 Цей пакет містить скрипти та дані для оцінки продуктивності MySQL.
428
429 %package doc
430 Summary:        MySQL manual
431 Summary(pl.UTF-8):      Podręcznik użytkownika MySQL
432 Group:          Applications/Databases
433
434 %description doc
435 This package contains manual in HTML format.
436
437 %description doc -l pl.UTF-8
438 Podręcznik MySQL-a w formacie HTML.
439
440 %package ndb
441 Summary:        MySQL - NDB Storage Engine Daemon
442 Summary(pl.UTF-8):      MySQL - demon silnika przechowywania danych NDB
443 Group:          Applications/Databases
444 Requires:       %{name}-libs = %{version}-%{release}
445
446 %description ndb
447 This package contains the standard MySQL NDB Storage Engine Daemon.
448
449 %description ndb -l pl.UTF-8
450 Ten pakiet zawiera standardowego demona silnika przechowywania danych
451 NDB.
452
453 %package ndb-client
454 Summary:        MySQL - NDB Clients
455 Summary(pl.UTF-8):      MySQL - programy klienckie NDB
456 Group:          Applications/Databases
457 Requires:       %{name}-libs = %{version}-%{release}
458
459 %description ndb-client
460 This package contains the standard MySQL NDB Clients.
461
462 %description ndb-client -l pl.UTF-8
463 Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
464
465 %package ndb-mgm
466 Summary:        MySQL - NDB Management Daemon
467 Summary(pl.UTF-8):      MySQL - demon zarządzający NDB
468 Group:          Applications/Databases
469 Requires:       %{name}-libs = %{version}-%{release}
470
471 %description ndb-mgm
472 This package contains the standard MySQL NDB Management Daemon.
473
474 %description ndb-mgm -l pl.UTF-8
475 Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB.
476
477 %package ndb-cpc
478 Summary:        MySQL - NDB CPC Daemon
479 Summary(pl.UTF-8):      MySQL - demon NDB CPC
480 Group:          Applications/Databases
481 Requires:       %{name}-libs = %{version}-%{release}
482
483 %description ndb-cpc
484 This package contains the standard MySQL NDB CPC Daemon.
485
486 %description ndb-cpc -l pl.UTF-8
487 Ten pakiet zawiera standardowego demona MySQL NDB CPC.
488
489 %prep
490 %setup -q %{?with_sphinx:-a100}
491 %if %{with sphinx}
492 # http://www.sphinxsearch.com/docs/manual-0.9.9.html#sphinxse-mysql51
493 mv sphinx-*/mysqlse storage/sphinx
494 %patch18 -p1
495 %endif
496 # CHECK ME, seems obsolete
497 #%patch0 -p1
498 #%{?with_tcpd:%patch1 -p1}  # WHATS PURPOSE OF THIS PATCH?
499 #%patch2 -p1 # NEEDS CHECK, which exact program needs -lc++
500 %patch3 -p1
501 %ifarch alpha
502 # this is strange: mysqld functions for UDF modules are not explicitly defined,
503 # so -rdynamic is used; in such case gcc3+ld on alpha doesn't like C++ vtables
504 # in objects compiled without -fPIC
505 %patch4 -p1
506 # gcc 3.3.x ICE
507 %patch10 -p1
508 %endif
509 # CHECK ME, obsolete
510 #%patch5 -p1
511 %patch6 -p1
512 %patch7 -p1
513 %patch8 -p1
514 %patch9 -p1
515 %patch11 -p1
516 %patch12 -p1
517 %patch14 -p0
518 # CHECK ME, obsolete
519 #%patch15 -p1
520 # OBSOLETE, YES
521 #%patch16 -p1
522 # <percona %patches>
523 # CHECK ME
524 #%patch100 -p1
525 # CHECK ME
526 #%patch101 -p1
527 # CHECK ME
528 #%patch102 -p1
529 # CHECK ME
530 #%patch103 -p1
531 # </percona>
532
533 %build
534 install -d build
535 cd build
536 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
537 # (it defaults to first cluster but user may change it to whatever
538 # cluster it wants)
539
540 %if "%{pld_release}" == "ac"
541 # add suffix, but allow ccache, etc in ~/.rpmmacros
542 %{expand:%%define       __cc    %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
543 %{expand:%%define       __cxx   %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
544 %{expand:%%define       __cpp   %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
545 %endif
546
547 %cmake \
548         -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags} -DNDEBUG" \
549         -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -DNDEBUG" \
550         -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
551         %{?debug:-DWITH_DEBUG=ON} \
552         -DWITH_FAST_MUTEXES=ON \
553         -DWITH_LIBEDIT=OFF \
554         -DWITH_READLINE=system \
555         -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
556         -DWITH_ZLIB=system \
557         -DWITH_COMMENT="PLD Linux Distribution MySQL RPM" \
558         -DWITH_LIBWRAP=%{?with_tcpd:ON}%{!?with_tcpd:OFF} \
559         -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
560         -DMYSQL_UNIX_ADDR=/var/lib/%{name}/%{name}.sock \
561         -DINSTALL_LAYOUT=RPM \
562         -DINSTALL_MYSQLTESTDIR_RPM="" \
563         -DINSTALL_SQLBENCHDIR=%{_datadir} \
564         -DINSTALL_SUPPORTFILESDIR=%{_datadir}/%{name}-support \
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{%{_infodir},%{_mysqlhome}}
576
577 %{__make} -C build install \
578         DESTDIR=$RPM_BUILD_ROOT
579
580 cp -a Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
581
582 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
583 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
584 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
585 # This is template for configuration file which is created after 'service mysql init'
586 cp -a %{SOURCE4} mysqld.conf
587 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/clusters.conf
588 touch $RPM_BUILD_ROOT/var/log/%{name}/{mysqld,query,slow}.log
589
590 # remove innodb directives from mysqld.conf if mysqld is configured without
591 %if %{without innodb}
592         cp mysqld.conf mysqld.tmp
593         awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
594 %endif
595
596 # remove berkeley-db directives from mysqld.conf if mysqld is configured without
597 cp mysqld.conf mysqld.tmp
598 awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
599
600 cp -a mysqld.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.conf
601 cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mysql-client.conf
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 # symlinks point to the .so file, fix it
615 ln -sf libmysqlclient.so.16 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.16
616 ln -sf libmysqlclient.so.16.0.0 $RPM_BUILD_ROOT%{_libdir}/libmysqlclient_r.so.16.0.0
617
618 sed -i -e 's,/usr//usr,%{_prefix},g' $RPM_BUILD_ROOT%{_bindir}/mysql_config
619 sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config
620
621 # remove known unpackaged files
622 rm -rf $RPM_BUILD_ROOT%{_datadir}/mysql-support
623
624 # remove .txt variants for .sys messages
625 rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*/*.txt
626
627 # rename not to be so generic name
628 mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
629 mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1
630
631 # not useful without -debug build
632 %{!?debug:rm -f $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
633 %{!?debug:rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1}
634 # generate symbols file, so one can generate backtrace using it
635 # mysql_resolve_stack_dump -s %{_datadir}/%{name}/mysqld.sym -n mysqld.stack.
636 # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
637 %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/%{name}/mysqld.sym}
638
639 # do not clobber users $PATH
640 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade
641 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum
642 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk
643 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog
644 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack
645 #mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables
646 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults
647 sed -i -e 's#/usr/bin/my_print_defaults#%{_sbindir}/my_print_defaults#g' $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
648 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck
649
650 # delete - functionality in initscript / rpm
651 # mysql_install_db is needed by digikam
652 #rm $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
653 #rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_install_db.1*
654 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
655 rm $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
656 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
657 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
658 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
659 #rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
660 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg-utf8.txt
661 rm $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
662 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1*
663 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
664 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
665 rm $RPM_BUILD_ROOT%{_bindir}/resolveip
666 rm $RPM_BUILD_ROOT%{_mandir}/man1/resolveip.1*
667 rm $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1*
668
669 # we don't package those (we have no -test or -testsuite pkg) and some of them just segfault
670 rm $RPM_BUILD_ROOT%{_bindir}/mysql_client_test
671 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test.1*
672 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1*
673 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1*
674 rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1*
675
676 # not needed
677 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/libdaemon_example.*
678 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/ha_example.*
679 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugin/sphinx.{a,la}
680
681 %clean
682 rm -rf $RPM_BUILD_ROOT
683
684 %pre
685 %groupadd -g 89 mysql
686 %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
687
688 %post
689 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
690 /sbin/chkconfig --add mysql
691 %service mysql restart
692
693 %preun
694 if [ "$1" = "0" ]; then
695         %service -q mysql stop
696         /sbin/chkconfig --del mysql
697 fi
698
699 %postun -p /sbin/postshell
700 -/usr/sbin/fix-info-dir -c %{_infodir}
701
702 if [ "$1" = "0" ]; then
703         %userremove mysql
704         %groupremove mysql
705 fi
706
707 %post ndb
708 /sbin/chkconfig --add mysql-ndb
709 %service mysql-ndb restart "mysql NDB engine"
710
711 %preun ndb
712 if [ "$1" = "0" ]; then
713         %service mysql-ndb stop
714         /sbin/chkconfig --del mysql-ndb
715 fi
716
717 %post ndb-mgm
718 /sbin/chkconfig --add mysql-ndb-mgm
719 %service mysql-ndb-mgm restart "mysql NDB management node"
720
721 %preun ndb-mgm
722 if [ "$1" = "0" ]; then
723         %service mysql-ndb-mgm stop
724         /sbin/chkconfig --del mysql-ndb-mgm
725 fi
726
727 %post ndb-cpc
728 /sbin/chkconfig --add mysql-ndb-cpc
729 %service mysql-ndb-cpc restart "mysql NDB CPC"
730
731 %preun ndb-cpc
732 if [ "$1" = "0" ]; then
733         %service mysql-ndb-cpc stop
734         /sbin/chkconfig --del mysql-ndb-cpc
735 fi
736
737 %post   libs -p /sbin/ldconfig
738 %postun libs -p /sbin/ldconfig
739
740 %triggerpostun -- mysql < 4.0.20-2.4
741 # For clusters in /etc/%{name}/clusters.conf
742 if [ -f /etc/sysconfig/mysql ]; then
743         . /etc/sysconfig/mysql
744         if [ -n "$MYSQL_DB_CLUSTERS" ]; then
745                 for i in "$MYSQL_DB_CLUSTERS"; do
746                         echo "$i/mysqld.conf=$i" >> /etc/%{name}/clusters.conf
747                 done
748                 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
749                 echo "# USE /etc/%{name}/clusters.conf instead" >> /etc/sysconfig/mysql
750                 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/%{name}/clusters.conf."
751                 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/%{name}/clusters.conf."
752         fi
753 fi
754
755 %triggerpostun -- mysql < 4.1.1
756 # For better compatibility with prevoius versions:
757 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
758         if echo "$config" | grep -q '^/'; then
759                 config_file="$config"
760         elif [ -f "/etc/%{name}/$config" ]; then
761                 config_file=/etc/%{name}/$config
762         else
763                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
764                 if [ -z "$clusterdir" ]; then
765                         echo >&2 "Can't find cluster dir for $config!"
766                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
767                         exit 1
768                 fi
769                 config_file="$clusterdir/mysqld.conf"
770         fi
771
772         if [ ! -f "$config_file" ]; then
773                         echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
774                         exit 1
775         fi
776         echo "Adding option old-passwords to config: $config_file"
777         echo "If you want to use new, better passwords - remove it"
778
779         # sed magic to add 'old-passwords' to [mysqld] section
780         sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
781                 a
782                 a; Compatibility options:
783                 aold-passwords
784         }
785         ' $config_file
786 done
787
788 %banner -e %{name}-4.1.x <<-EOF
789         If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data:
790         mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql
791 EOF
792 #'
793
794 %triggerpostun -- mysql < 5.1.0
795 configs=""
796 for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/%{name}/clusters.conf); do
797         if echo "$config" | grep -q '^/'; then
798                 config_file="$config"
799         elif [ -f "/etc/%{name}/$config" ]; then
800                 config_file=/etc/%{name}/$config
801         else
802                 clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/%{name}/clusters.conf)
803                 if [ -z "$clusterdir" ]; then
804                         echo >&2 "Can't find cluster dir for $config!"
805                         echo >&2 "Please remove extra (leading) spaces from /etc/%{name}/clusters.conf"
806                         exit 1
807                 fi
808                 config_file="$clusterdir/mysqld.conf"
809         fi
810
811         if [ ! -f "$config_file" ]; then
812                 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/"
813                 continue
814         fi
815         configs="$configs $config_file"
816 done
817
818 (
819 echo 'You should run MySQL upgrade script *after* restarting MySQL server for all MySQL clusters.'
820 echo 'Thus, you should invoke:'
821 for config in $configs; do
822         datadir=$(awk -F= '!/^#/ && $1 ~ /datadir/{print $2}' $config | xargs)
823         echo "# mysql_upgrade --datadir=$datadir"
824 done
825 ) | %banner -e %{name}-5.1
826
827 %files
828 %defattr(644,root,root,755)
829 %doc build/support-files/*.cnf build/support-files/*.ini
830 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
831 %attr(754,root,root) /etc/rc.d/init.d/%{name}
832 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
833 %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/clusters.conf
834 %attr(755,root,root) %{_sbindir}/innochecksum
835 %attr(755,root,root) %{_sbindir}/my_print_defaults
836 %attr(755,root,root) %{_sbindir}/myisamchk
837 %attr(755,root,root) %{_sbindir}/myisamlog
838 %attr(755,root,root) %{_sbindir}/myisampack
839 #%attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables
840 %attr(755,root,root) %{_sbindir}/mysql_upgrade
841 %attr(755,root,root) %{_sbindir}/mysqlcheck
842 %attr(755,root,root) %{_sbindir}/mysqld
843 %attr(755,root,root) %{_bindir}/mysql_install_db
844 %dir %{_libdir}/%{name}
845 %dir %{_libdir}/%{name}/plugin
846 %attr(755,root,root) %{_libdir}/%{name}/plugin/adt_null.so
847 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth.so
848 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_socket.so
849 %attr(755,root,root) %{_libdir}/%{name}/plugin/auth_test_plugin.so
850 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_archive.so
851 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_blackhole.so
852 %attr(755,root,root) %{_libdir}/%{name}/plugin/ha_federated.so
853 %attr(755,root,root) %{_libdir}/%{name}/plugin/mypluglib.so
854 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_client.so
855 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_interface.so
856 %attr(755,root,root) %{_libdir}/%{name}/plugin/qa_auth_server.so
857 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_master.so
858 %attr(755,root,root) %{_libdir}/%{name}/plugin/semisync_slave.so
859 %if %{with sphinx}
860 %attr(755,root,root) %{_libdir}/%{name}/plugin/sphinx.so
861 %endif
862 %{_mandir}/man1/innochecksum.1*
863 %{_mandir}/man1/my_print_defaults.1*
864 %{_mandir}/man1/myisamchk.1*
865 %{_mandir}/man1/myisamlog.1*
866 %{_mandir}/man1/myisampack.1*
867 #%{_mandir}/man1/mysql_fix_privilege_tables.1*
868 %{_mandir}/man1/mysql_install_db.1*
869 %{_mandir}/man1/mysql_upgrade.1*
870 %{_mandir}/man1/mysqlcheck.1*
871 %{_mandir}/man8/mysqld.8*
872
873 %if %{?debug:1}0
874 %attr(755,root,root) %{_bindir}/*resolve_stack_dump
875 %{_datadir}/%{name}/mysqld.sym
876 %{_mandir}/man1/*resolve_stack_dump.1*
877 %endif
878
879 %attr(700,mysql,mysql) %{_mysqlhome}
880 # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
881 %attr(751,root,root) /var/lib/mysql
882 %attr(750,mysql,mysql) %dir /var/log/mysql
883 %attr(750,mysql,mysql) %dir /var/log/archive/mysql
884 %attr(640,mysql,mysql) %ghost /var/log/mysql/*
885
886 %{_infodir}/mysql.info*
887 # This is template for configuration file which is created after 'service mysql init'
888 %{_datadir}/%{name}/mysqld.conf
889 %{_datadir}/%{name}/mysql_system_tables.sql
890 %{_datadir}/%{name}/mysql_system_tables_data.sql
891 %{_datadir}/%{name}/mysql_test_data_timezone.sql
892
893 %{_datadir}/%{name}/english
894 %{_datadir}/%{name}/fill_help_tables.sql
895 #%{_datadir}/%{name}/mysql_fix_privilege_tables.sql
896 %lang(cs) %{_datadir}/%{name}/czech
897 %lang(da) %{_datadir}/%{name}/danish
898 %lang(de) %{_datadir}/%{name}/german
899 %lang(el) %{_datadir}/%{name}/greek
900 %lang(es) %{_datadir}/%{name}/spanish
901 %lang(et) %{_datadir}/%{name}/estonian
902 %lang(fr) %{_datadir}/%{name}/french
903 %lang(hu) %{_datadir}/%{name}/hungarian
904 %lang(it) %{_datadir}/%{name}/italian
905 %lang(ja) %{_datadir}/%{name}/japanese
906 %lang(ko) %{_datadir}/%{name}/korean
907 %lang(nl) %{_datadir}/%{name}/dutch
908 %lang(nb) %{_datadir}/%{name}/norwegian
909 %lang(nn) %{_datadir}/%{name}/norwegian-ny
910 %lang(pl) %{_datadir}/%{name}/polish
911 %lang(pt) %{_datadir}/%{name}/portuguese
912 %lang(ro) %{_datadir}/%{name}/romanian
913 %lang(ru) %{_datadir}/%{name}/russian
914 %lang(sr) %{_datadir}/%{name}/serbian
915 %lang(sk) %{_datadir}/%{name}/slovak
916 %lang(sv) %{_datadir}/%{name}/swedish
917 %lang(uk) %{_datadir}/%{name}/ukrainian
918
919 %files charsets
920 %defattr(644,root,root,755)
921 %dir %{_datadir}/mysql
922 %{_datadir}/%{name}/charsets
923
924 %files extras
925 %defattr(644,root,root,755)
926 %attr(755,root,root) %{_bindir}/msql2mysql
927 %attr(755,root,root) %{_bindir}/myisam_ftdump
928 %attr(755,root,root) %{_bindir}/mysql_secure_installation
929 %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
930 %attr(755,root,root) %{_bindir}/perror
931 %attr(755,root,root) %{_bindir}/replace
932 %{_mandir}/man1/msql2mysql.1*
933 %{_mandir}/man1/myisam_ftdump.1*
934 %{_mandir}/man1/mysql_secure_installation.1*
935 %{_mandir}/man1/mysql_tzinfo_to_sql.1*
936 %{_mandir}/man1/perror.1*
937 %{_mandir}/man1/replace.1*
938
939 %files -n mysqlhotcopy
940 %defattr(644,root,root,755)
941 %attr(755,root,root) %{_bindir}/mysqlhotcopy
942 %{_mandir}/man1/mysqlhotcopy.1*
943
944 %files extras-perl
945 %defattr(644,root,root,755)
946 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
947 %attr(755,root,root) %{_bindir}/mysql_find_rows
948 %attr(755,root,root) %{_bindir}/mysql_fix_extensions
949 %attr(755,root,root) %{_bindir}/mysql_setpermission
950 %attr(755,root,root) %{_bindir}/mysql_zap
951 %attr(755,root,root) %{_bindir}/mysqlaccess
952 %attr(755,root,root) %{_bindir}/mysqldumpslow
953 %{_mandir}/man1/mysql_convert_table_format.1*
954 %{_mandir}/man1/mysql_find_rows.1*
955 %{_mandir}/man1/mysql_fix_extensions.1*
956 %{_mandir}/man1/mysql_setpermission.1*
957 %{_mandir}/man1/mysql_zap.1*
958 %{_mandir}/man1/mysqlaccess.1*
959 %{_mandir}/man1/mysqldumpslow.1*
960
961 %files client
962 %defattr(644,root,root,755)
963 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/skel/.my.cnf
964 %attr(755,root,root) %{_bindir}/mysql
965 %attr(755,root,root) %{_bindir}/mysqladmin
966 %attr(755,root,root) %{_bindir}/mysqlbinlog
967 %attr(755,root,root) %{_bindir}/mysqlbug
968 %attr(755,root,root) %{_bindir}/mysqldump
969 %attr(755,root,root) %{_bindir}/mysqlimport
970 %attr(755,root,root) %{_bindir}/mysqlshow
971 #%attr(755,root,root) %{_sbindir}/mysqlmanager
972 %{_mandir}/man1/mysql.1*
973 %{_mandir}/man1/mysqladmin.1*
974 %{_mandir}/man1/mysqlbinlog.1*
975 %{_mandir}/man1/mysqlbug.1*
976 %{_mandir}/man1/mysqldump.1*
977 %{_mandir}/man1/mysqlimport.1*
978 %{_mandir}/man1/mysqlshow.1*
979 #%{_mandir}/man8/mysqlmanager.8*
980
981 %files libs
982 %defattr(644,root,root,755)
983 %attr(751,root,root) %dir %{_sysconfdir}/mysql
984 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf
985 %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.*
986 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.16
987 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.*
988 %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.16
989 %if %{with ndb}
990 %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.*
991 %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3
992 %endif
993
994 %files devel
995 %defattr(644,root,root,755)
996 %attr(755,root,root) %{_bindir}/mysql_config
997 %attr(755,root,root) %{_libdir}/libmysqlclient.so
998 %attr(755,root,root) %{_libdir}/libmysqlclient_r.so
999 # what's this?
1000 %attr(755,root,root) %{_libdir}/libmysqlservices.so
1001 %if %{with ndb}
1002 %attr(755,root,root) %{_libdir}/libndbclient.so
1003 %endif
1004 %{_includedir}/mysql
1005 %{_aclocaldir}/mysql.m4
1006 %{_mandir}/man1/mysql_config.1*
1007
1008 %files static
1009 %defattr(644,root,root,755)
1010 %{_libdir}/libmysqlclient.a
1011 %{_libdir}/libmysqlclient_r.a
1012 %if %{with ndb}
1013 %{_libdir}/libndbclient.a
1014 %endif
1015
1016 %files bench
1017 %defattr(644,root,root,755)
1018 %attr(755,root,root) %{_bindir}/mysqlslap
1019 %attr(755,root,root) %{_bindir}/mysqltest
1020 %dir %{_datadir}/sql-bench
1021 %{_datadir}/sql-bench/[CDRl]*
1022 %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
1023 %{_mandir}/man1/mysqlslap.1*
1024 %{_mandir}/man1/mysqltest.1*
1025 %{_mandir}/man1/mysqltest_embedded.1*
1026
1027 #%files doc
1028 #%defattr(644,root,root,755)
1029 #%doc Docs/manual.html Docs/manual_toc.html
1030
1031 %if %{with ndb}
1032 %files ndb
1033 %defattr(644,root,root,755)
1034 %attr(755,root,root) %{_sbindir}/ndbd
1035 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
1036 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
1037 %{_mandir}/man1/ndbd_redo_log_reader.1*
1038 %{_mandir}/man8/ndbd.8*
1039
1040 %files ndb-client
1041 %defattr(644,root,root,755)
1042 %attr(755,root,root) %{_bindir}/ndb_config
1043 %attr(755,root,root) %{_bindir}/ndb_delete_all
1044 %attr(755,root,root) %{_bindir}/ndb_desc
1045 %attr(755,root,root) %{_bindir}/ndb_drop_index
1046 %attr(755,root,root) %{_bindir}/ndb_drop_table
1047 %attr(755,root,root) %{_bindir}/ndb_error_reporter
1048 %attr(755,root,root) %{_bindir}/ndb_mgm
1049 %attr(755,root,root) %{_bindir}/ndb_print_backup_file
1050 %attr(755,root,root) %{_bindir}/ndb_print_schema_file
1051 %attr(755,root,root) %{_bindir}/ndb_print_sys_file
1052 %attr(755,root,root) %{_bindir}/ndb_restore
1053 %attr(755,root,root) %{_bindir}/ndb_select_all
1054 %attr(755,root,root) %{_bindir}/ndb_select_count
1055 %attr(755,root,root) %{_bindir}/ndb_show_tables
1056 %attr(755,root,root) %{_bindir}/ndb_size.pl
1057 %attr(755,root,root) %{_bindir}/ndb_test_platform
1058 %attr(755,root,root) %{_bindir}/ndb_waiter
1059 %{_mandir}/man1/ndb_config.1*
1060 %{_mandir}/man1/ndb_delete_all.1*
1061 %{_mandir}/man1/ndb_desc.1*
1062 %{_mandir}/man1/ndb_drop_index.1*
1063 %{_mandir}/man1/ndb_drop_table.1*
1064 %{_mandir}/man1/ndb_error_reporter.1*
1065 %{_mandir}/man1/ndb_mgm.1*
1066 %{_mandir}/man1/ndb_print_backup_file.1*
1067 %{_mandir}/man1/ndb_print_schema_file.1*
1068 %{_mandir}/man1/ndb_print_sys_file.1*
1069 %{_mandir}/man1/ndb_restore.1*
1070 %{_mandir}/man1/ndb_select_all.1*
1071 %{_mandir}/man1/ndb_select_count.1*
1072 %{_mandir}/man1/ndb_show_tables.1*
1073 %{_mandir}/man1/ndb_size.pl.1*
1074 %{_mandir}/man1/ndb_waiter.1*
1075
1076 %files ndb-mgm
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{_sbindir}/ndb_mgmd
1079 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
1080 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
1081 %{_mandir}/man8/ndb_mgmd.8*
1082
1083 %files ndb-cpc
1084 %defattr(644,root,root,755)
1085 %attr(755,root,root) %{_sbindir}/ndb_cpcd
1086 %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
1087 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
1088 %{_mandir}/man1/ndb_cpcd.1*
1089 %endif
This page took 0.123426 seconds and 4 git commands to generate.