Sisyphus repositório
Última atualização: 23 janeiro 2022 | SRPMs: 17488 | Visitas: 22824818
en ru br
ALT Linux repositórios
S:8.0.28-alt1
5.0: 5.0.89-alt1
4.1: 5.0.51-alt2.a
4.0: 5.0.51-alt2.a.M40.2
+updates:5.0.51-alt2.a.M40.1
3.0: 4.0.24-alt1

Group :: Banco de dados
RPM: MySQL

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: MySQL
Version: 5.0.89
Release: alt1

%def_without debug
%def_disable static
%def_with    openssl
%define mysql_version %version
%define mysqld_user mysql
%define _libexecdir %_sbindir
%define ROOT %_localstatedir/mysql

Summary: MySQL: A very fast and reliable SQL database engine
Summary(ru_RU.UTF-8): MySQL: Очень быстрый и надежный SQL-сервер
Group: Databases
License: GPL / LGPL
Url: http://www.mysql.com/
Packager: MySQL Development Team <mysql at packages.altlinux.org>

# ftp://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.0/mysql-%mysql_version.tar.gz

Source: mysql-%mysql_version.tar
Source1: mysqld.init
Source2: mysql.logrotate
Source3: safe_mysqld
Source4: mysqld_wrapper
Source5: my.cnf
Source6: mysql.chroot.lib
Source7: mysql.chroot.conf
Source8: mysql.chroot.all
Source9: mysql_migrate
Source10: mysqld.sysconfig
Source11: http://downloads.mysql.com/docs/refman-5.0-en.html-chapter.tar.gz
Source14: README.ALT-ru_RU.UTF-8
Source15: alt-mysql_install_db.sh

# ALTLinux

Patch0: mysql-3.23.55-alt-configure.patch
Patch1: mysql-5.0.89-alt-chroot.patch
Patch2: mysql-5.0.20-alt-libdir.patch
Patch4: mysql-5.0.67-alt-client.patch
Patch5: mysql-5.0.89-alt-load_defaults.patch

# Annvix/Mandriva

Patch14: db-4.1.24-amd64-mutexes.patch
Patch15: db-4.1.24-disable-pthreadsmutexes.patch
Patch16: mysql-5.0.15-disable-pthreadsmutexes.patch

# Debian/Ubuntu

Patch21: mysql-5.0.67-deb-upstream_bug_23921.patch
Patch25: mysql-deb-scripts__mysql_config__libs.patch

# Gentoo

# http://bugs.gentoo.org/show_bug.cgi?id=220549
Patch30: mysql-5.0.56-gen-ltmain.patch

# Redhat

Patch40: mysql-5.0.21-rh-no-atomic.patch

# Other

Patch41: mysql-fix-c99-aliasing.patch


# BK commits


%{?_with_openssl:BuildPreReq: libssl-devel}

# Automatically added by buildreq on Wed Sep 17 2003

BuildRequires: gcc-c++ libncurses-devel libreadline-devel libstdc++-devel libtinfo-devel zlib-devel perl-DBI perl-CGI

%package -n libMySQL
Summary: MySQL: Shared libraries
Summary(ru_RU.UTF-8): MySQL: Динамические библиотеки
License: LGPL
Group: System/Libraries
Provides: MySQL-shared = %version, mysql-shared = %version
Obsoletes: MySQL-shared-libs, MySQL-shared, mysql-shared

%package -n libMySQL-devel
Summary: MySQL: Development header files and libraries
Summary(ru_RU.UTF-8): MySQL: Интерфейс прикладного уровня для разработки программ
License: LGPL
Group: Development/C
Provides: MySQL-devel = %version, mysql-devel = %version
Obsoletes: MySQL-devel, mysql-devel
Requires: libMySQL = %version-%release
%{?_with_openssl:Requires: libssl-devel}

%package -n libMySQL-devel-static
Summary: MySQL: Development static libraries
Summary(ru_RU.UTF-8): MySQL: Интерфейс прикладного уровня для разработки программ
License: LGPL
Group: Development/C
Provides: MySQL-devel = %version, mysql-devel-static = %version
Requires: libMySQL-devel = %version-%release
%{?_with_openssl:Requires: libssl-devel-static}

%package client
Summary: MySQL: Client
Summary(ru_RU.UTF-8): MySQL: Клиент
License: GPL
Group: Databases
Provides: mysql-client = %version
Obsoletes: mysql-client
Requires: libMySQL = %version-%release
AutoReq: yes, noperl

%package server
Summary: MySQL: A very fast and reliable SQL database engine
Summary(ru_RU.UTF-8): MySQL: Очень быстрый и надежный SQL-сервер
License: GPL
Group: Databases
Provides: MySQL = %version, mysql-server = %version, mysql, msqlormysql, mysqlserver
Obsoletes: MySQL, mysql, mysql-server, msqlormysql, mysqlserver, MySQL-doc
PreReq: shadow-utils, coreutils, glibc-locales
Requires(post,preun): chkconfig, chrooted, coreutils, findutils, grep, sed, %__subst
PreReq: libMySQL = %version-%release, MySQL-client = %version-%release

%package server-perl
Summary: MySQL: Perl utils for MySQL-server
License: GPL
Group: Databases
BuildArch: noarch
Requires: perl-DBD-mysql, perl-CGI, MySQL-server = %version-%release

%package bench
Summary: MySQL: Benchmarks
Summary(ru_RU.UTF-8): MySQL: Тесты производительности
License: GPL
Group: Databases
BuildArch: noarch
Provides: mysql-bench = %version
Obsoletes: mysql-bench
Requires: MySQL-client = %version-%release, perl-DBD-mysql

%package htmlhelp
Summary: html documentation for MySQL 5.0
Group: Documentation
BuildArch: noarch

%define see_base For a description of MySQL see the base MySQL RPM or %url
%define see_base_ru Подробное описание смотрите в пакете MySQL или на %url

%description
MySQL is a true multi-user, multi-threaded SQL (Structured Query
Language) database server. MySQL is a client/server implementation
that consists of a server daemon (mysqld) and many different client
programs/libraries.

The main goals of MySQL are speed, robustness and ease of use.  MySQL
was originally developed because we needed a SQL server that could
handle very big databases with magnitude higher speed than what any
database vendor could offer to us. And since we did not need all the
features that made their server slow we made our own. We have now been
using MySQL since 1996 in a environment with more than 40 databases,
10,000 tables, of which more than 500 have more than 7 million
rows. This is about 200G of data.

The base upon which MySQL is built is a set of routines that have been
used in a highly demanding production environment for many
years. While MySQL is still in development, it already offers a rich
and highly useful function set.

This version allows to use transactions with BDB tables and extended
character set support. See the documentation for more information

%description -l ru_RU.UTF-8
MySQL - это многопользовательский, многопоточный SQL-сервер (SQL -
структурированный язык запросов) баз данных. MySQL построен по технологии
клиент/сервер и включает в себя сервер mysqld и набор различных клиентских
программ и библиотек разработчиков.

Козыри MySQL - скорость, надежность и простота использования. Разработка
MySQL ведется на основе программного кода, который используется в
критических промышленных приложениях уже в течение многих лет. Несмотря на
то, что MySQL только разрабатывается, он уже предоставляет богатый и очень
полезный набор функций.

Данная версия MySQL собрана с поддержкой транзакций и расширенной поддержкой
различных текстовых кодировок. См. документацию для более подробной информации.

%description server
MySQL is a true multi-user, multi-threaded SQL (Structured Query
Language) database server. MySQL is a client/server implementation
that consists of a server daemon (mysqld) and many different client
programs/libraries.

The main goals of MySQL are speed, robustness and ease of use.  MySQL
was originally developed because we needed a SQL server that could
handle very big databases with magnitude higher speed than what any
database vendor could offer to us. And since we did not need all the
features that made their server slow we made our own. We have now been
using MySQL since 1996 in a environment with more than 40 databases,
10,000 tables, of which more than 500 have more than 7 million
rows. This is about 200G of data.

The base upon which MySQL is built is a set of routines that have been
used in a highly demanding production environment for many
years. While MySQL is still in development, it already offers a rich
and highly useful function set.

This version allows to use transactions with BDB tables and extended
character set support. See the documentation for more information.

By default, MySQL server runs in safe chrooted environment with own uid and gid.

%description server-perl
MySQL is a true multi-user, multi-threaded SQL (Structured Query
Language) database server. MySQL is a client/server implementation
that consists of a server daemon (mysqld) and many different client
programs/libraries.
This package contents perl utils for MySQL-server.

%description server -l ru_RU.UTF-8
MySQL - это многопользовательский, многопоточный SQL-сервер (SQL -
структурированный язык запросов) баз данных. MySQL построен по технологии
клиент/сервер и включает в себя сервер mysqld и набор различных клиентских
программ и библиотек разработчиков.

Козыри MySQL - скорость, надежность и простота использования. Разработка
MySQL ведется на основе программного кода, который используется в
критических промышленных приложениях уже в течение многих лет. Несмотря на
то, что MySQL только разрабатывается, он уже предоставляет богатый и очень
полезный набор функций.

Данная версия MySQL собрана с поддержкой транзакций и расширенной поддержкой
различных текстовых кодировок. См. документацию для более подробной информации.

%description -n libMySQL
This package contains the shared libraries (*.so*) which certain
languages and applications need to dynamically load and use MySQL.

%description -n libMySQL -l ru_RU.UTF-8
Этот пакет содержит динамически загружаемые библиотеки (файлы *.so*),
требуемые для работы большинства клиентских приложений, взаимодействующих
с SQL-сервером MySQL.

%description -n libMySQL-devel
This package contains the development header files and libraries
necessary to develop MySQL client applications.

%see_base

%description -n libMySQL-devel -l ru_RU.UTF-8
Этот пакет содержит файлы заголовков и библиотеки интерфейса
прикладного уровня, необходимые для разработки клиентских
приложений, взаимодействующих с SQL-сервером MySQL.

%see_base_ru

%description -n libMySQL-devel-static
This package contains the development libraries for static linking
necessary to develop MySQL client applications.

%see_base

%description -n libMySQL-devel-static -l ru_RU.UTF-8
Этот пакет содержит статические библиотеки интерфейса прикладного уровня,
необходимые для разработки клиентских приложений,
взаимодействующих с SQL-сервером MySQL.

%see_base_ru

%description client
This package contains the standard MySQL clients.

%see_base

%description client -l ru_RU.UTF-8
Этот пакет содержит стандартные клиентские программы для SQL-сервера MySQL

%see_base_ru

%description bench
This package contains MySQL benchmark scripts and data.

%see_base

%description bench -l ru_RU.UTF-8
Этот пакет содержит данные и утилиты для тестирования
производительности SQL-сервера MySQL.

%description htmlhelp
The offline version of the recent MySQL 5.0 html manual from
http://dev.mysql.com/doc/

%description htmlhelp -l ru_RU.UTF-8
Копия html руководства по MySQL 5.0 с сайта http://dev.mysql.com/doc/

%see_base_ru

%prep
%setup -q -n mysql-%mysql_version -a11
# ALTLinux
%patch0 -p1
%patch1 -p1
%patch2 -p1

%patch4 -p2
%patch5 -p2

# Annvix/Mandriva

%patch14 -p1
%patch15 -p1
%patch16 -p0

# Debian/Ubuntu

%patch21 -p1
%patch25 -p1

# Gentoo

%patch30 -p1

# Redhat

%patch40 -p1

# Other

%patch41 -p1

# BK patches


cp -af %SOURCE15 scripts/mysql_install_db.sh

# put html docs in place

mv html-chapter Docs/html
 
# Use local regex.h header.
find -type f -print0 |
xargs -r0 grep -FZl '<regex.h>' -- |
xargs -r0 %__subst 's,<regex\.h>,"../regex/regex.h",g' --

# Prepare commands list for completion in mysql client.

sed -ne 's/^\(  { "[A-Z][^"]*"\).*/\1, 0, 0, 0, "" },/pg' <sql/lex.h >client/mysql_symbols.inc

find -type d -name CVS -print0 |
xargs -r0 rm -rf --
find -type f -name .cvsignore -print0 |
xargs -r0 rm -f --

chmod -R a-s,go-w sql-bench

%build

# Force HAVE_ERRNO_AS_DEFINE defined to wrong expansion

# of bits/errno.h's definition of errno in my_sys.h
%{!?_with_debug:%add_optflags %optflags_notraceback}
%add_optflags -D_FILE_OFFSET_BITS=64 -DHAVE_ERRNO_AS_DEFINE -DONE_THREAD
export CXXFLAGS="$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti"

autoreconf -fisv

# Precache these values to enable /proc-less build.

export \
FIND_PROC='/bin/ps p $$PID | grep mysqld >/dev/null' \
CHECK_PID='/bin/kill -0 $$PID >/dev/null 2>/dev/null' \
#

%configure \
--localstatedir=%ROOT \
--enable-assembler \
--enable-shared \
--enable-thread-safe-client \
--without-readline \
--without-mysqlfs \
--enable-largefile=yes \
--enable-large-files=yes \
--with-archive-storage-engine \
--with-blackhole-storage-engine \
--without-example-storage-engine \
%{subst_with debug} \
%{subst_enable static} \
--with-raid \
--with-berkeley-db \
--with-big-tables \
--with-isam \
--with-extra-charsets=all \
--with-mysqld-user=%mysqld_user \
--with-unix-socket-path=%ROOT/mysql.sock \
--with-comment="%distribution MySQL RPM" \
%if_with openssl
--with-openssl
%else
--without-openssl
%endif

# Use g++ for linking.

%__subst 's,^CCLD = \$(CC),CCLD = $(CXX),g' *isam/Makefile*

pushd bdb/build_unix
rm -f config.cache
../dist/configure --prefix=%prefix
popd

# Benchdir does not fit in above model. Maybe a separate bench distribution

%make_build benchdir=$RPM_BUILD_ROOT%_datadir/sql-bench

%install
mkdir -p $RPM_BUILD_ROOT{%_bindir,%_sbindir,%_libdir,%_includedir,%_mandir,%_infodir,%_datadir/sql-bench,/var/log/mysql}
mkdir -p $RPM_BUILD_ROOT%ROOT/{etc,lib,log,tmp,/var/{nis,yp/binding},db/mysql,usr/share/mysql/charsets}
touch $RPM_BUILD_ROOT%ROOT{%_sysconfdir/{hosts,services,{host,nsswitch,resolv}.conf},/var/nis/NIS_COLD_START}

%make_install install DESTDIR=$RPM_BUILD_ROOT \
localstatedir=$RPM_BUILD_ROOT%ROOT/db \
benchdir=%_datadir/sql-bench

# Relocate mysql_install_db

mv $RPM_BUILD_ROOT%_bindir/mysql_install_db $RPM_BUILD_ROOT%_sbindir/

# Relocate libmysqlclient* libraries.

mv $RPM_BUILD_ROOT%_libdir/mysql/libmysqlclient* $RPM_BUILD_ROOT%_libdir/

# Install various helper scripts.

install -pD -m755 %SOURCE1 $RPM_BUILD_ROOT%_initdir/mysqld
install -pD -m644 %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/logrotate.d/mysql
install -pD -m755 %SOURCE3 $RPM_BUILD_ROOT%_sbindir/safe_mysqld
install -pD -m755 %SOURCE4 $RPM_BUILD_ROOT%_sbindir/mysqld_wrapper
install -pD -m750 %SOURCE6 $RPM_BUILD_ROOT%_sysconfdir/chroot.d/mysql.lib
install -pD -m750 %SOURCE7 $RPM_BUILD_ROOT%_sysconfdir/chroot.d/mysql.conf
install -pD -m750 %SOURCE8 $RPM_BUILD_ROOT%_sysconfdir/chroot.d/mysql.all
install -pD -m750 %SOURCE9 $RPM_BUILD_ROOT%_sbindir/mysql_migrate
install -pD -m644 %SOURCE10 $RPM_BUILD_ROOT%_sysconfdir/sysconfig/mysqld

# Make backwards compatibility links (ALT #14863)

mkdir -p $RPM_BUILD_ROOT%_bindir
ln -snf ../sbin/safe_mysqld $RPM_BUILD_ROOT%_bindir/mysqld_safe

# Install configuration files.

install -pD -m644 /dev/null $RPM_BUILD_ROOT%_sysconfdir/my.cnf
install -pD -m600 %SOURCE5 $RPM_BUILD_ROOT%ROOT/my.cnf

# FIXME! bdb maybe work on x86/Linux and amd64/Linux

%ifarch %ix86
%__subst 's,^skip\-bdb,#skip-bdb,' $RPM_BUILD_ROOT%ROOT/my.cnf
%endif

install -pD -m644 $RPM_BUILD_ROOT%_datadir/mysql/charsets/* \
    $RPM_BUILD_ROOT%ROOT%_datadir/mysql/charsets

# Fix \r.

r="$(echo -ne \\r)"
grep -lZ "$r\$" $RPM_BUILD_ROOT%_datadir/sql-bench/innotest* |
xargs -r0 %__subst "s/$r//g" --

# Fixed perl autodetection.

grep -EZl '^[[:space:]]*use the ' $RPM_BUILD_ROOT%_bindir/* |
xargs -r0 %__subst -p 's/\([[:space:]]*\)\(use the \)/\1then \2/g'

# Install texinfo documentation.

install -m644 Docs/*.info* $RPM_BUILD_ROOT%_infodir/

%__subst -p 's/\(BUGmysql="\)\([^"]*\)"/\1\2,mysql at packages.altlinux.org"/g' $RPM_BUILD_ROOT%_bindir/mysqlbug

mkdir -p $RPM_BUILD_ROOT%_docdir/MySQL-%version
install -p -m644 README %SOURCE14 support-files/*.cnf $RPM_BUILD_ROOT%_docdir/MySQL-%version
%if_with openssl
cp -a SSL $RPM_BUILD_ROOT%_docdir/MySQL-%version
%endif

rm -f $RPM_BUILD_ROOT%_bindir/safe_mysqld
rm -f $RPM_BUILD_ROOT%_datadir/mysql/mysql{-*.spec,-log-rotate,.server}

install -p -m644 ChangeLog $RPM_BUILD_ROOT%_docdir/MySQL-%version/
bzip2 -f9 $RPM_BUILD_ROOT%_docdir/MySQL-%version/ChangeLog

touch $RPM_BUILD_ROOT%ROOT/log/queries
touch $RPM_BUILD_ROOT/var/log/mysql/info

%pre server
/usr/sbin/groupadd -r -f %mysqld_user
/usr/sbin/useradd -r -g %mysqld_user -d %ROOT -s /dev/null -c "MySQL server" -n %mysqld_user >/dev/null 2>&1 ||:

if [ ! -e %ROOT/my.cnf -a -f /etc/my.cnf -a ! -L /etc/my.cnf -a ! -e /etc/my.cnf.rename ]; then
mv -v /etc/my.cnf /etc/my.cnf.rename &&
chown 0:0 /etc/my.cnf.rename &&
chmod 600 /etc/my.cnf.rename ||
{ echo "Error moving my.cnf" >&2; exit 1; }
fi

%post server
if [ -f /etc/my.cnf.rename -a ! -L /etc/my.cnf.rename -a ! -e /etc/my.cnf ]; then
mv -fv %ROOT/my.cnf %ROOT/my.cnf.rpmnew &&
mv -v /etc/my.cnf.rename %ROOT/my.cnf &&
chown 0:0 %ROOT/my.cnf &&
chmod 600 %ROOT/my.cnf ||
{ echo "Error moving my.cnf" >&2; mv -v /etc/my.cnf.rename /etc/my.cnf; }
fi

%_sysconfdir/chroot.d/mysql.all force
rm -rf %ROOT/dev

%post_service mysqld      
DATADIR=`/usr/bin/my_print_defaults mysqld |sed -ne 's/^--datadir=\(.*\)/\1/pg' |tail -1`
[ -n "$DATADIR" ] || { echo "Failed to read configuration"; exit 1; }

if [ "$DATADIR" = / ]; then
# Have to update configuration manually.
%__subst 's,^datadir=/$,datadir=/db,g' /etc/my.cnf &&
DATADIR=`/usr/bin/my_print_defaults mysqld |sed -ne 's/^--datadir=\(.*\)/\1/pg' |tail -1` ||
{ echo "Failed to update configuration"; exit 1; }
fi

NEED_RESTART=
if [ -f "%ROOT/mysql/db.frm" -a ! -f "%ROOT$DATADIR/mysql/db.frm" ]; then
%_initdir/mysqld status &>/dev/null && %_initdir/mysqld stop && NEED_RESTART=1 ||:
(cd %ROOT
install -d -m750 -o %mysqld_user -g adm ".$DATADIR"
for d in `find -mindepth 1 -maxdepth 1 -type d |grep -Ev '\./(dev|etc|lib|log|tmp|db)$'`; do
mv -i "$d" ".$DATADIR/$d"
done)
echo "Database root have been moved to $DATADIR"
fi

if [ -n "$NEED_RESTART" ]; then
%_initdir/mysqld start ||:
else
%_initdir/mysqld condrestart ||:
fi

%triggerpostun server -- MySQL-server < 5.0
DATADIR=`/usr/bin/my_print_defaults mysqld |sed -ne 's/^--datadir=\(.*\)/\1/pg' |tail -1`
[ -n "$DATADIR" ] || { echo "Failed to read configuration"; exit 1; }

[ -x /usr/bin/mysql_upgrade ] || exit 0
if [ -f "%ROOT/mysql/db.frm" -a ! -f "%ROOT$DATADIR/mysql/db.frm" ]; then
%_initdir/mysqld status >/dev/null 2>&1 && NEED_RESTART=1 || NEED_RESTART=
/usr/bin/mysql_upgrade --datadir=%ROOT$DATADIR >/dev/null 2>&1
fi

if [ -n "$NEED_RESTART" ]; then
%_initdir/mysqld condrestart ||:
else
echo "mysqld service is not running so you should run "
echo "/usr/bin/mysql_upgrade --datadir=%ROOT$DATADIR manually "
echo "after service mysql start!"
%_initdir/mysqld condrestart ||:
fi

%preun server
%preun_service mysqld

%postun server
if [ $1 = 0 ]; then
rm -f %ROOT/lib/* %ROOT/var/yp/binding/*
fi

%files -n libMySQL
%_libdir/*.so.*

%files -n libMySQL-devel
%_bindir/mysql_config
%_bindir/comp_err
%_libdir/*.so
%_includedir/*

%if_enabled static
%files -n libMySQL-devel-static
%_libdir/*.a
%_libdir/mysql
%endif #static

%files client
%_bindir/innochecksum
%_bindir/msql2mysql
%_bindir/my_print_defaults
%_bindir/mysql
%_bindir/mysql_client_test
%_bindir/mysql_explain_log
%_bindir/mysql_tableinfo
%_bindir/mysqladmin
%_bindir/mysqlbinlog
%_bindir/mysqlbug
%_bindir/mysqlcheck
%_bindir/mysqldump
%_bindir/mysqlimport
%_bindir/mysqlshow
%_bindir/mysqltest
%_bindir/perror
%_bindir/replace
%_bindir/resolve*
%_mandir/man?/*
%_infodir/*.info*

%files server-perl
%_bindir/mysql_convert_table_format
%_bindir/mysql_find_rows
%_bindir/mysql_setpermission
%_bindir/mysql_zap
%_bindir/mysqlhotcopy
%_bindir/mysqlaccess
%_bindir/mysqldumpslow

%files server
%_initdir/*
%config(noreplace) %_sysconfdir/sysconfig/*
%config(noreplace) %_sysconfdir/logrotate.d/*
%config %_sysconfdir/chroot.d/*
%ghost %config(noreplace,missingok) %_sysconfdir/my.cnf
%_bindir/*isam*
%_bindir/mysql_fix_extensions
%_bindir/mysql_fix_privilege_tables
%_bindir/mysql_secure_installation
%_bindir/mysql_tzinfo_to_sql
%_bindir/mysql_upgrade
%_bindir/mysql_upgrade_shell
%_bindir/mysqld_multi
%_bindir/mysqld_safe
%_sbindir/*
%_datadir/mysql
%attr(750,root,adm) %dir /var/log/mysql
%ghost %verify(not md5 mtime size) /var/log/mysql/*
%dir %_docdir/MySQL-%version
%_docdir/MySQL-%version/ChangeLog*
%_docdir/MySQL-%version/README
%_docdir/MySQL-%version/README.*
%_docdir/MySQL-%version/*.cnf
%if_with openssl
%dir %_docdir/MySQL-%version/SSL
%_docdir/MySQL-%version/SSL/NOTES
%_docdir/MySQL-%version/SSL/run*
%endif
%attr(600,root,root) %config(noreplace,missingok) %ROOT/my.cnf
%attr(3771,root,mysql) %dir %ROOT
%attr(710,root,mysql) %dir %ROOT/lib
%attr(710,root,mysql) %dir %ROOT%_sysconfdir
%ghost %ROOT%_sysconfdir/hosts
%ghost %ROOT%_sysconfdir/services
%ghost %ROOT%_sysconfdir/*.conf
%attr(710,root,mysql) %dir %ROOT/var
%dir %ROOT/var/nis
%ghost %ROOT/var/nis/NIS_COLD_START
%dir %ROOT/var/yp
%dir %ROOT/var/yp/binding
%dir %ROOT/usr
%dir %ROOT%_datadir
%ROOT%_datadir/mysql
%attr(3770,root,mysql) %dir %ROOT/db
%attr(750,mysql,mysql) %dir %ROOT/db/*
%attr(3770,root,mysql) %dir %ROOT/log
%attr(660,mysql,mysql) %ghost %verify(not md5 mtime size) %ROOT/log/*
%attr(3770,root,mysql) %dir %ROOT/tmp

%files bench
%_datadir/sql-bench

%files htmlhelp
%doc Docs/html

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009