2 # - trigger that prepares system from pre-cluster into cluster
3 # - trigger /etc/mysqld.conf into /etc/mysql/mysqld.conf. Solve possible
4 # conflict with /var/lib/mysql/mysqld.conf
5 # - SECURITY: http://securitytracker.com/alerts/2004/Aug/1011008.html
6 # - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010979.html
9 %bcond_with bdb # Berkeley DB support
11 %include /usr/lib/rpm/macros.perl
12 Summary: MySQL: a very fast and reliable SQL database engine
13 Summary(fr): MySQL: un serveur SQL rapide et fiable
14 Summary(pl): MySQL: bardzo szybka i niezawodna baza danych (SQL)
15 Summary(pt_BR): MySQL: Um servidor SQL rápido e confiável
16 Summary(ru): MySQL - ÂÙÓÔÒÙÊ SQL-ÓÅÒ×ÅÒ
17 Summary(uk): MySQL - Û×ÉÄËÉÊ SQL-ÓÅÒ×ÅÒ
18 Summary(zh_CN): MySQLÊý¾Ý¿â·þÎñÆ÷
20 Group: Applications/Databases
24 Source0: http://mysql.linux.cz/Downloads/MySQL-4.0/mysql-%{version}.tar.gz
25 # Source0-md5: 7c75ac74e23396bd228dbc2c2d1131df
27 Source2: %{name}.sysconfig
28 Source3: %{name}.logrotate
29 Source4: %{name}d.conf
30 Source5: %{name}-clusters.conf
31 Source6: %{name}.monitrc
32 Patch0: %{name}-libs.patch
33 Patch1: %{name}-libwrap.patch
34 Patch2: %{name}-c++.patch
35 Patch3: %{name}-_r-link.patch
36 Patch4: %{name}-info.patch
37 Patch5: %{name}-dump_quote_db_names.patch
38 Patch7: %{name}-sql-cxx-pic.patch
39 Patch8: %{name}-noproc.patch
40 Patch9: %{name}-fix_privilege_tables.patch
41 Patch10: %{name}-nptl.patch
43 URL: http://www.mysql.com/
44 #BuildRequires: ORBit-devel
45 BuildRequires: /bin/ps
46 BuildRequires: autoconf
47 BuildRequires: automake
48 %{?with_bdb:BuildRequires: db3-devel}
49 BuildRequires: libstdc++-devel >= 5:3.0
50 BuildRequires: libtool
51 BuildRequires: libwrap-devel
52 BuildRequires: ncurses-devel >= 4.2
53 BuildRequires: openssl-devel >= 0.9.7d
54 BuildRequires: perl-DBI
55 BuildRequires: perl-devel >= 1:5.6.1
56 BuildRequires: readline-devel >= 4.2
57 BuildRequires: rpm-perlprov >= 4.1-13
58 BuildRequires: texinfo
59 BuildRequires: zlib-devel
60 PreReq: rc-scripts >= 0.2.0
61 Requires(pre): /usr/bin/getgid
62 Requires(pre): /bin/id
63 Requires(pre): /usr/sbin/groupadd
64 Requires(pre): /usr/sbin/useradd
65 Requires(postun): /usr/sbin/userdel
66 Requires(postun): /usr/sbin/groupdel
67 Requires(post,preun): /sbin/chkconfig
68 Requires: %{name}-libs = %{version}-%{release}
69 Requires: /usr/bin/setsid
70 Provides: MySQL-server
72 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
74 Obsoletes: mysql-server
76 %define _libexecdir %{_sbindir}
77 %define _localstatedir /var/lib/mysql
78 %define _mysqlhome /home/services/mysql
80 %define _noautoreqdep 'perl(DBD::mysql)'
81 # workaround for buggy gcc 3.3.1
82 %define specflags_alpha -mno-explicit-relocs
85 MySQL is a true multi-user, multi-threaded SQL (Structured Query
86 Language) database server. SQL is the most popular database language
87 in the world. MySQL is a client/server implementation that consists of
88 a server daemon mysqld and many different client programs/libraries.
90 The main goals of MySQL are speed, robustness and easy to use. MySQL
91 was originally developed because we at Tcx needed a SQL server that
92 could handle very big databases with magnitude higher speed than what
93 any database vendor could offer to us. We have now been using MySQL
94 since 1996 in a environment with more than 40 databases, 10,000
95 tables, of which more than 500 have more than 7 million rows. This is
96 about 50G of mission critical data.
98 The base upon which MySQL is built is a set of routines that have been
99 used in a highly demanding production environment for many years.
100 While MySQL is still in development, it already offers a rich and
101 highly useful function set.
104 MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
105 multi-taches. Le langage SQL est le langage de bases de donnees le
106 plus populaire au monde. MySQL est une implementation client/serveur
107 qui consiste en un serveur (mysqld) et differents
108 programmes/bibliotheques clientes.
110 Les objectifs principaux de MySQL sont: vitesse, robustesse et
111 facilite d'utilisation. MySQL fut originalement developpe parce que
112 nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
113 tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
114 superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
115 utilisons MySQL depuis 1996 dans un environnement avec plus de 40
116 bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
117 millions de lignes. Ceci represente environ 50G de donnees critiques.
119 A la base de la conception de MySQL, on retrouve une serie de routines
120 qui ont ete utilisees dans un environnement de production pendant
121 plusieurs annees. Meme si MySQL est encore en developpement, il offre
122 deja une riche et utile serie de fonctions.
125 MySQL to prawdziwie wielou¿ytkownikowy, wielow±tkowy serwer baz danych
126 SQL. SQL jest najpopularniejszym na ¶wiecie jêzykiem u¿ywanym do baz
127 danych. MySQL to implementacja klient/serwer sk³adaj±ca siê z demona
128 mysqld i wielu ró¿nych programów i bibliotek klienckich.
130 G³ównymi celami MySQL-a s± szybko¶æ, potêga i ³atwo¶æ u¿ytkowania.
131 MySQL oryginalnie by³ tworzony, poniewa¿ autorzy w Tcx potrzebowali
132 serwera SQL do obs³ugi bardzo du¿ych baz danych z szybko¶ci± o wiele
133 wiêksz±, ni¿ mogli zaoferowaæ inni producenci baz danych. U¿ywaj± go
134 od 1996 roku w ¶rodowisku z ponad 40 bazami danych, 10 000 tabel,
135 z których ponad 500 zawiera ponad 7 milionów rekordów - w sumie oko³o
136 50GB krytycznych danych.
138 Baza, na której oparty jest MySQL, sk³ada siê ze zbioru procedur,
139 które by³y u¿ywane w bardzo wymagaj±cym ¶rodowisku produkcyjnym przez
140 wiele lat. Pomimo, ¿e MySQL jest ci±gle rozwijany, ju¿ oferuje bogaty
141 i u¿yteczny zbiór funkcji.
143 %description -l pt_BR
144 O MySQL é um servidor de banco de dados SQL realmente multiusuário e
145 multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de
146 dados no mundo. O MySQL é uma implementação cliente/servidor que
147 consiste de um servidor chamado mysqld e diversos
148 programas/bibliotecas clientes. Os principais objetivos do MySQL são:
149 velocidade, robustez e facilidade de uso. O MySQL foi originalmente
150 desenvolvido porque nós na Tcx precisávamos de um servidor SQL que
151 pudesse lidar com grandes bases de dados e com uma velocidade muito
152 maior do que a que qualquer vendedor podia nos oferecer. Estamos
153 usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
154 com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de
155 linhas. Isto é o equivalente a aproximadamente 50G de dados críticos.
156 A base da construção do MySQL é uma série de rotinas que foram usadas
157 em um ambiente de produção com alta demanda por muitos anos. Mesmo o
158 MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de
159 funções muito ricas e úteis. Veja a documentação para maiores
163 MySQL - ÜÔÏ SQL (Structured Query Language) ÓÅÒ×ÅÒ ÂÁÚÙ ÄÁÎÎÙÈ. MySQL
164 ÂÙÌÁ ÎÁÐÉÓÁÎÁ Michael'ÏÍ (monty) Widenius'ÏÍ. óÍ. ÆÁÊÌ CREDITS ×
165 ÄÉÓÔÒÉÂÕÔÉ×Å ÎÁ ÐÒÅÄÍÅÔ ÄÒÕÇÉÈ ÕÞÁÓÔÎÉËÏ× ÐÒÏÅËÔÁ É ÐÒÏÞÅÊ ÉÎÆÏÒÍÁÃÉÉ
169 MySQL - ÃÅ SQL (Structured Query Language) ÓÅÒ×ÅÒ ÂÁÚÉ ÄÁÎÉÈ. MySQL
170 ÂÕÌÏ ÎÁÐÉÓÁÎÏ Michael'ÏÍ (monty) Widenius'ÏÍ. äÉ×. ÆÁÊÌ CREDITS ×
171 ÄÉÓÔÒÉÂÕÔÉצ ÄÌÑ ¦ÎÆÏÒÍÁæ§ ÐÒÏ ¦ÎÛÉÈ ÕÞÁÓÎÉË¦× ÐÒÏÅËÔÕ ÔÁ ¦ÎÛϧ
175 Summary: MySQL additional utilities
176 Summary(pl): Dodatkowe narzêdzia do MySQL
177 Group: Applications/Databases
178 Requires: %{name}-libs = %{version}-%{release}
181 MySQL additional utilities except Perl scripts (they may be found in
182 %{name}-extras-perl package).
184 %description extras -l pl
185 Dodatkowe narzêdzia do MySQL - z wyj±tkiem skryptów Perla (które s± w
186 pakiecie %{name}-extras-perl).
189 Summary: MySQL additional utilities written in Perl
190 Summary(pl): Dodatkowe narzêdzia do MySQL napisane w Perlu
191 Group: Applications/Databases
192 Requires: %{name}-extras = %{version}-%{release}
193 Requires: perl(DBD::mysql)
195 %description extras-perl
196 MySQL additional utilities written in Perl.
198 %description extras-perl -l pl
199 Dodatkowe narzêdzia do MySQL napisane w Perlu.
202 Summary: MySQL - Client
203 Summary(pl): MySQL - Klient
204 Summary(pt): MySQL - Cliente
205 Summary(ru): MySQL ËÌÉÅÎÔ
206 Summary(uk): MySQL Ë̦¤ÎÔ
207 Group: Applications/Databases
208 Requires: %{name}-libs = %{version}-%{release}
209 Obsoletes: MySQL-client
212 This package contains the standard MySQL clients.
214 %description client -l fr
215 Ce package contient les clients MySQL standards.
217 %description client -l pl
218 Standardowe programy klienckie MySQL.
220 %description client -l pt_BR
221 Este pacote contém os clientes padrão para o MySQL.
223 %description client -l ru
224 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÔÏÌØËÏ ËÌÉÅÎÔ MySQL.
226 %description client -l uk
227 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÁ MySQL.
230 Summary: Shared libraries for MySQL
231 Summary(pl): Biblioteki dzielone MySQL
232 Group: Applications/Databases
233 Obsoletes: libmysql10
236 Shared libraries for MySQL.
238 %description libs -l pl
239 Biblioteki dzielone MySQL.
242 Summary: MySQL - Development header files and libraries
243 Summary(pl): MySQL - Pliki nag³ówkowe i biblioteki dla programistów
244 Summary(pt): MySQL - Medições de desempenho
245 Summary(ru): MySQL - ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ
246 Summary(uk): MySQL - ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ
247 Group: Development/Libraries
248 Requires: %{name}-libs = %{version}-%{release}
249 Requires: openssl-devel
251 Obsoletes: MySQL-devel
252 Obsoletes: libmysql10-devel
255 This package contains the development header files and libraries
256 necessary to develop MySQL client applications.
258 %description devel -l fr
259 Ce package contient les fichiers entetes et les librairies de
260 developpement necessaires pour developper des applications clientes
263 %description devel -l pl
264 Pliki nag³ówkowe i biblioteki konieczne do kompilacji aplikacji
267 %description devel -l pt_BR
268 Este pacote contém os arquivos de cabeçalho (header files) e
269 bibliotecas necessárias para desenvolver aplicações clientes do MySQL.
271 %description devel -l ru
272 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ
273 ÒÁÚÒÁÂÏÔËÉ ËÌÉÅÎÔÓËÉÈ ÐÒÉÌÏÖÅÎÉÊ.
275 %description devel -l uk
276 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ, ÎÅÏÂȦÄΦ ÄÌÑ
277 ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ-Ë̦¤ÎÔ¦×.
280 Summary: MySQL static libraries
281 Summary(pl): Biblioteki statyczne MySQL
282 Summary(ru): MySQL - ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ
283 Summary(uk): MySQL - ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ
284 Group: Development/Libraries
285 Requires: %{name}-devel = %{version}-%{release}
286 Obsoletes: MySQL-static
289 MySQL static libraries.
291 %description static -l pl
292 Biblioteki statyczne MySQL.
294 %description static -l ru
295 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ, ÎÅÏÂÈÏÄÉÍÙÅ
296 ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ËÌÉÅÎÔÓËÉÈ ÐÒÉÌÏÖÅÎÉÊ.
298 %description static -l uk
299 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ, ÎÅÏÂȦÄΦ ÄÌÑ
300 ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ-Ë̦¤ÎÔ¦×.
303 Summary: MySQL - Benchmarks
304 Summary(pl): MySQL - Programy testuj±ce szybko¶æ dzia³ania bazy
305 Summary(pt): MySQL - Medições de desempenho
306 Summary(ru): MySQL - ÂÅÎÞÍÁÒËÉ
307 Summary(uk): MySQL - ÂÅÎÞÍÁÒËÉ
308 Group: Applications/Databases
309 Requires: %{name} = %{version}-%{release}
310 Requires: %{name}-client
311 Requires: perl(DBD::mysql)
312 Obsoletes: MySQL-bench
315 This package contains MySQL benchmark scripts and data.
317 %description bench -l pl
318 Programy testuj±ce szybko¶æ serwera MySQL.
320 %description bench -l pt_BR
321 Este pacote contém medições de desempenho de scripts e dados do MySQL.
323 %description bench -l ru
324 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓËÒÉÐÔÙ É ÄÁÎÎÙÅ ÄÌÑ ÏÃÅÎËÉ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔÉ
327 %description bench -l uk
328 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓËÒÉÐÔÉ ÔÁ ÄÁΦ ÄÌÑ ÏæÎËÉ ÐÒÏÄÕËÔÉ×ÎÏÓÔ¦ MySQL.
331 Summary: MySQL manual
332 Summary(pl): Podrêcznik u¿ytkownika MySQL
333 Group: Applications/Databases
336 This package contains manual in HTML format.
338 %description doc -l pl
339 Podrêcznik MySQL-a w formacie HTML.
350 # this is strange: mysqld functions for UDF modules are not explicitly defined,
351 # so -rdynamic is used; in such case gcc3+ld on alpha doesn't like C++ vtables
352 # in objects compiled without -fPIC
359 %{__perl} -pi -e 's@/lib/libpthread@/%{_lib}/libpthread@' configure.in
366 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions %{!?debug:-fomit-frame-pointer}"
367 CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
370 FIND_PROC='/bin/ps p $$PID' \
372 CHECK_PID='/bin/kill -0 $$PID' \
377 --enable-thread-safe-client \
378 %{?with_bdb:--with-berkeley-db} \
379 --with-comment="PLD Linux Distribution MySQL RPM" \
380 --with%{!?debug:out}-debug \
381 --with-embedded-server \
382 --with-extra-charsets=all \
385 --with-mysqld-user=mysql \
386 --with-named-curses-libs="-lncurses" \
390 --with-unix-socket-path=/var/lib/mysql/mysql.sock \
396 # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
397 # (it defaults to first cluster but user may change it to whatever
400 echo -e "all:\ninstall:\nclean:\nlink_sources:\n" > libmysqld/examples/Makefile
402 %{__make} benchdir=$RPM_BUILD_ROOT%{_datadir}/sql-bench
403 %{__make} -C Docs mysql.info
406 rm -rf $RPM_BUILD_ROOT
407 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,monit} \
408 $RPM_BUILD_ROOT/var/{log/{archiv,}/mysql,lib/mysql} \
409 $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
412 install -d $RPM_BUILD_ROOT/var/lib/mysql/bdb/{log,tmp}
417 DESTDIR=$RPM_BUILD_ROOT \
418 benchdir=%{_datadir}/sql-bench \
420 # libsdir is to avoid installing innodb static libs in $RPM_BUILD_ROOT../libs
422 install Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
424 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
425 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
426 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
427 # This is template for configuration file which is created after 'service mysql init'
428 install %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.conf
429 install %{SOURCE5} $RPM_BUILD_ROOT/etc/mysql/clusters.conf
430 install %{SOURCE6} $RPM_BUILD_ROOT/etc/monit
431 touch $RPM_BUILD_ROOT/var/log/mysql/{err,log,update,isamlog.log}
433 # remove mysqld's *.po files
434 find . $RPM_BUILD_ROOT%{_datadir}/%{name} -name \*.txt | xargs -n 100 rm -f
435 mv -f $RPM_BUILD_ROOT%{_libdir}/mysql/lib* $RPM_BUILD_ROOT%{_libdir}
436 %{__perl} -pi -e 's,%{_libdir}/mysql,%{_libdir},;' $RPM_BUILD_ROOT%{_libdir}/libmysqlclient.la
438 rm -rf $RPM_BUILD_ROOT%{_prefix}/mysql-test
441 rm -rf $RPM_BUILD_ROOT
444 if [ -n "`getgid mysql`" ]; then
445 if [ "`getgid mysql`" != "89" ]; then
446 echo "Error: group mysql doesn't have gid=89. Correct this before installing mysql." 1>&2
450 /usr/sbin/groupadd -g 89 -r -f mysql
452 if [ -n "`id -u mysql 2>/dev/null`" ]; then
453 if [ "`id -u mysql`" != "89" ]; then
454 echo "Error: user mysql doesn't have uid=89. Correct this before installing mysql." 1>&2
458 /usr/sbin/useradd -M -o -r -u 89 \
459 -d %{_mysqlhome} -s /bin/sh -g mysql \
460 -c "MySQL Server" mysql 1>&2
464 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
465 /sbin/chkconfig --add mysql
466 if [ -f /var/lock/subsys/mysql ]; then
467 /etc/rc.d/init.d/mysql restart >&2
469 echo "Run \"/etc/rc.d/init.d/mysql start\" to start mysql." >&2
473 if [ "$1" = "0" ]; then
474 if [ -f /var/lock/subsys/mysql ]; then
475 /etc/rc.d/init.d/mysql stop
477 /sbin/chkconfig --del mysql
481 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
482 if [ "$1" = "0" ]; then
483 /usr/sbin/userdel mysql
484 /usr/sbin/groupdel mysql
487 %post libs -p /sbin/ldconfig
488 %postun libs -p /sbin/ldconfig
490 %triggerpostun -- mysql <= 4.0.20-2
491 # For clusters in /etc/mysql/clusters.conf
492 if [ -f "/etc/sysconfig/mysql" ]; then
493 . /etc/sysconfig/mysql
494 if [ -n "$MYSQL_DB_CLUSTERS" ]; then
495 for i in "$MYSQL_DB_CLUSTERS"; do
496 echo "$i/mysqld.conf=$i" >> /etc/mysql/clusters.conf
498 echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
499 echo "# USE /etc/mysql/clusters.conf instead" >> /etc/sysconfig/mysql
500 echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/mysql/clusters.conf."
501 echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/mysql/clusters.conf."
506 %defattr(644,root,root,755)
507 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/logrotate.d/mysql
508 %attr(754,root,root) /etc/rc.d/init.d/mysql
509 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/mysql
510 %attr(751,root,root) %dir /etc/mysql
511 %attr(640,root,mysql) %config(noreplace) %verify(not md5 size mtime) /etc/mysql/clusters.conf
512 %attr(750,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/monit/*.monitrc
513 %attr(755,root,root) %{_bindir}/isamchk
514 %attr(755,root,root) %{_bindir}/isamlog
515 %attr(755,root,root) %{_bindir}/myisamchk
516 %attr(755,root,root) %{_bindir}/myisamlog
517 %attr(755,root,root) %{_bindir}/myisampack
518 %attr(755,root,root) %{_bindir}/pack_isam
519 %attr(755,root,root) %{_sbindir}/mysqld
520 %{_mandir}/man1/isamchk.1*
521 %{_mandir}/man1/isamlog.1*
522 %{_mandir}/man1/mysqld.1*
524 %attr(700,mysql,mysql) %{_mysqlhome}
525 # root:root is proper here for AC mysql.rpm while mysql:mysql is potential security hole
526 %attr(751,root,root) /var/lib/mysql
527 %attr(750,mysql,mysql) %dir /var/log/mysql
528 %attr(750,mysql,mysql) %dir /var/log/archiv/mysql
529 %attr(640,mysql,mysql) %config(noreplace) %verify(not md5 size mtime) /var/log/mysql/*
531 %{_infodir}/mysql.info*
532 %dir %{_datadir}/mysql
533 # This is template for configuration file which is created after 'service mysql init'
534 %{_datadir}/mysql/mysqld.conf
535 %{_datadir}/mysql/charsets
536 %{_datadir}/mysql/english
537 %lang(cs) %{_datadir}/mysql/czech
538 %lang(da) %{_datadir}/mysql/danish
539 %lang(de) %{_datadir}/mysql/german
540 %lang(el) %{_datadir}/mysql/greek
541 %lang(es) %{_datadir}/mysql/spanish
542 %lang(et) %{_datadir}/mysql/estonian
543 %lang(fr) %{_datadir}/mysql/french
544 %lang(hu) %{_datadir}/mysql/hungarian
545 %lang(it) %{_datadir}/mysql/italian
546 %lang(ja) %{_datadir}/mysql/japanese
547 %lang(ko) %{_datadir}/mysql/korean
548 %lang(nl) %{_datadir}/mysql/dutch
549 %lang(nb) %{_datadir}/mysql/norwegian
550 %lang(nn) %{_datadir}/mysql/norwegian-ny
551 %lang(pl) %{_datadir}/mysql/polish
552 %lang(pt) %{_datadir}/mysql/portuguese
553 %lang(ro) %{_datadir}/mysql/romanian
554 %lang(ru) %{_datadir}/mysql/russian
555 %lang(sk) %{_datadir}/mysql/slovak
556 %lang(sv) %{_datadir}/mysql/swedish
557 %lang(uk) %{_datadir}/mysql/ukrainian
560 %defattr(644,root,root,755)
561 %attr(755,root,root) %{_bindir}/msql2mysql
562 %attr(755,root,root) %{_bindir}/mysql_fix_privilege_tables
563 %attr(755,root,root) %{_bindir}/perror
564 %attr(755,root,root) %{_bindir}/my_print_defaults
565 %attr(755,root,root) %{_bindir}/replace
566 %attr(755,root,root) %{_bindir}/resolveip
567 %{_mandir}/man1/mysql_fix_privilege_tables.1*
568 %{_mandir}/man1/perror.1*
569 %{_mandir}/man1/replace.1*
572 %defattr(644,root,root,755)
573 %attr(755,root,root) %{_bindir}/mysql_convert_table_format
574 %attr(755,root,root) %{_bindir}/mysqldumpslow
575 %attr(755,root,root) %{_bindir}/mysqlhotcopy
576 %attr(755,root,root) %{_bindir}/mysql_setpermission
577 %attr(755,root,root) %{_bindir}/mysql_zap
578 %attr(755,root,root) %{_bindir}/mysql_find_rows
579 %attr(755,root,root) %{_bindir}/mysqlaccess
580 %{_mandir}/man1/mysql_zap.1*
581 %{_mandir}/man1/mysqlaccess.1*
584 %defattr(644,root,root,755)
585 %attr(755,root,root) %{_bindir}/mysql
586 %attr(755,root,root) %{_bindir}/mysqlbug
587 %attr(755,root,root) %{_bindir}/mysqldump
588 %attr(755,root,root) %{_bindir}/mysqlimport
589 %attr(755,root,root) %{_bindir}/mysqlmanager*
590 %attr(755,root,root) %{_bindir}/mysqlshow
591 %attr(755,root,root) %{_bindir}/mysqlbinlog
592 %attr(755,root,root) %{_bindir}/mysqladmin
593 %attr(755,root,root) %{_bindir}/mysqltest
594 %{_mandir}/man1/mysql.1*
595 %{_mandir}/man1/mysqladmin.1*
596 %{_mandir}/man1/mysqldump.1*
597 %{_mandir}/man1/mysqlshow.1*
600 %defattr(644,root,root,755)
601 %attr(755,root,root) %{_libdir}/lib*.so.*.*
604 %defattr(644,root,root,755)
605 %attr(755,root,root) %{_bindir}/mysql_config
606 %attr(755,root,root) %{_libdir}/lib*.so
608 %{_libdir}/lib*[!tr].a
612 %defattr(644,root,root,755)
613 %{_libdir}/lib*[tr].a
616 %defattr(644,root,root,755)
617 %dir %{_datadir}/sql-bench
618 %{_datadir}/sql-bench/[CDRl]*
619 %attr(755,root,root) %{_datadir}/sql-bench/[bcgrst]*
622 %defattr(644,root,root,755)
623 %doc Docs/manual.html Docs/manual_toc.html