]> git.pld-linux.org Git - packages/mysql.git/commitdiff
working but not finished
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 1 Jun 1999 10:35:04 +0000 (10:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql.spec -> 1.10

mysql.spec

index b7461c77d8892bcaa31d25d610fb5f6067696feb..da6979c9ce6b8694dbdabc8ea1151fc080d14d94 100644 (file)
-Summary:       MySQL: a very fast and reliable SQL database engine
 Name:          MySQL
-Version:       3.22.14b-gamma
-Release:       3
-Vendor:                LinuxLand International
-Copyright:     MySQL FREE PUBLIC LICENSE (See the file PUBLIC)
+Summary:       MySQL: a very fast and reliable SQL database engine
+Summary(pl):   MySQL: bardzo szybki i niezawodna baza danych (SQL)
 Group:         Applications/Databases
-Source0:       http://www.tcx.se/Downloads/MySQL-3.22/mysql-%{mysql-version}.tar.gz
+Group(pl):     Aplikacje/Bazy danych
+Summary(pt_BR): MySQL: Um servidor SQL rápido e confiável.
+Group(pt_BR):  Aplicações/Banco_de_Dados
+Version:       3.22.22
+Release:       1
+Copyright:     MySQL FREE PUBLIC LICENSE (See the file PUBLIC)
+Source:                http://www.mysql.com/Downloads/MySQL-3.22/mysql-%{version}.tar.gz
+Patch:         mysql-optimization.patch
 Icon:          mysql.gif
-URL:           http://www.tcx.se/
-BuildRoot:     /tmp/%{name}-%{version}-root
-
-%Description
-MySQL is a true multi-user, multi-threaded SQL (Structured Query Language)
-database server. SQL is the most popular database language in the world.
-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 easy to use.  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. See the documentation for more
-information
-
-%Package client
-Summary:       MySQL client programs and libs
-Group:         Applications/Databases
+URL:           http://www.mysql.com/
+Provides:      msqlormysql MySQL-server
+Obsoletes:     mysql
+BuildRoot:     /tmp/%{name}-%{version}
+
+%description
+MySQL is a true multi-user, multi-threaded SQL (Structured Query
+Language) database server. SQL is the most popular database language
+in the world. 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 easy to use.  MySQL
+was originally developed because we at Tcx needed a SQL server that
+could handle very big databases with magnitude higher speed than what
+any database vendor could offer to us. 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 50G of mission critical 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.
+
+%description -l pl
+MySQL to wielow±tkowy serwer baz danych SQL.
+
+G³ówne zalety MySQL to szybko¶æ, potêga i ³atwo¶æ u¿ytkowania. MySQL
+jes wykorzystywany m.in. do obs³ugi 40 baz danych, 10 000 tabeli,
+gdzie ka¿da tabela zawiera 7 milionów pozycji. To ok 50GB danych.
+
+%description -l pt_BR
+O MySQL é um servidor de banco de dados SQL realmente multiusuário e\
+multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de\
+dados no mundo. O MySQL é uma implementação cliente/servidor que\
+consiste de um servidor chamado mysqld e diversos\
+programas/bibliotecas clientes. Os principais objetivos do MySQL são:\
+velocidade, robustez e facilidade de uso.  O MySQL foi originalmente\
+desenvolvido porque nós na Tcx precisávamos de um servidor SQL que\
+pudesse lidar com grandes bases de dados e com uma velocidade muito\
+maior do que a que qualquer vendedor podia nos oferecer. Estamos\
+usando\
+o MySQL desde 1996 em um ambiente com mais de 40 bases de dados com 10.000\
+tabelas, das quais mais de 500 têm mais de 7 milhões de linhas. Isto é o\
+equivalente a aproximadamente 50G de dados críticos. A base da construção do\
+MySQL é uma série de rotinas que foram usadas em um ambiente de produção com\
+alta demanda por muitos anos. Mesmo o MySQL estando ainda em desenvolvimento,\
+ele já oferece um conjunto de funções muito ricas e úteis. Veja a documentação\
+para maiores informações.
+
+%package client
 Requires:      %{name} = %{version}-%{release}
+Summary:       MySQL - Client
+Summary(pl):   MySQL - Klient
+Group:         Applications/Databases
+Group(pl):     Aplikacje/Bazy danych
+Summary(pt_BR):        MySQL - Cliente
+Group(pt_BR):  Aplicações/Banco_de_Dados
+Obsoletes:     mysql-client
+
+%description client
+This package contains the standard MySQL clients. 
+
+%description client -l pl
+Standardowe programy klienckie MySQL.
+
+%description client -l pt_BR
+Este pacote contém os clientes padrão para o MySQL.
+
+%package bench
+Requires:      MySQL-client
+Requires:      MySQL-DBI-perl-bin
+Requires:      perl
+Summary:       MySQL - Benchmarks
+Summary:       mySQL - Programy testuj±ce szybko¶æ dzia³ania bazy
+Group:         Applications/Databases
+Group(pl):     Aplikacje/Bazy danych
+Summary(pt_BR):        MySQL - Medições de desempenho
+Group(pt_BR):  Aplicações/Banco_de_Dados
+Obsoletes:     mysql-bench
 
-%Description client
-This package contains the client part of the MySQL database. It includes
-utilities and libraries to access and manipulate data on a MySQL database
-Server.
+%description bench
+This package contains MySQL benchmark scripts and data.
 
-%Package devel
-Summary:       MySQL development header files and libraries
-Group:         Applications/Databases
+%description -l pl
+Programy testuj±ce szybko¶æ serwera MySQL.
+
+%description bench -l pt_BR
+Este pacote contém medições de desempenho de scripts e dados do MySQL.
+
+%package devel
 Requires:      %{name} = %{version}-%{release}
+Requires:      MySQL-client
+Summary:       MySQL - Development header files and libraries
+Summary(pl):   MySQL - Pliki nag³ówkowe i biblioteki dla developerów
+Group:         Applications/Databases
+Group(pl):     Aplikacje/Bazy danych
+Summary(pt_BR):        MySQL - Medições de desempenho
+Group(pt_BR):  Aplicações/Banco_de_Dados
+Obsoletes:     mysql-devel
+
+%description devel
+This package contains the development header files and libraries
+necessary to develop MySQL client applications.
+
+%description -l pl
+Pliki nag³ówkowe i biblioteki konieczne do rozwijania aplikacji
+klienckich MySQL.
 
-%Description devel
-This package contains the header files and libraries (shared and static) for
-developing applications that use the MySQL database.
+%description devel -l pt_BR
+Este pacote contém os arquivos de cabeçalho (header files) e bibliotecas 
+necessárias para desenvolver aplicações clientes do MySQL. 
 
 %prep
-%setup -n
+%setup -q -n mysql-%{version}
+%patch -p1
 
 %build
+CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
+./configure \
+           --without-debug \
+            --enable-shared \
+           --enable-static \
+           --with-pthread \
+           --enable-thread-safe-client \
+           --enable-assembler \
+           --with-charset=latin2 \
+            --with-mysqld-user=mysql \
+            --with-unix-socket-path=/var/state/mysql/mysql.sock \
+            --prefix=/ \
+            --exec-prefix=%{_exec_prefix} \
+            --libexecdir=%{_sbindir} \
+            --sysconfdir=%{_sysconfdir} \
+            --datadir=%{_datadir} \
+            --localstatedir=/var/state/mysql \
+            --infodir=%{_infodir} \
+            --includedir=%{_includedir} \
+            --mandir=%{_mandir} \
+           --with-comment='Polish Linux Distribution MySQL RPM' \
+           --without-readline \
+           --with-low-memory
+# If you have much RAM you can remove --with-low-memory
 
-CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
-./configure %{_target} \
-       --enable-shared \
-       --enable-static \
-       --enable-assembler \
-       --with-mysqld-user=mysql \
-       --with-unix-socket-path=/var/lib/mysql/mysql.sock \
-       --prefix=/usr \
-       --sysconfdir=/etc \
-       --localstatedir=/var/lib/mysql
-
-# benchdir does not fit in above model. Fix when we make a separate package
 make benchdir=$RPM_BUILD_ROOT%{_datadir}/sql-bench
 
-%install
-
-%{mkDESTDIR}
 
-# Ensure that needed directories exists
-install -d $DESTDIR/var/lib/mysql/mysql
-install -d $DESTDIR%{_datadir}/sql-bench
-install -d $DESTDIR/usr/{sbin,share,man,include}
-install -d $DESTDIR/usr/doc/MySQL-%{mysql-version}
+%install
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/{logrotate.d,rc.d/init.d}
+install -d $RPM_BUILD_ROOT/var/state/mysql/{mysql,test}
+install -d $RPM_BUILD_ROOT%{_datadir}/sql-bench
+install -d $RPM_BUILD_ROOT%{_sbindir}
+install -d $RPM_BUILD_ROOT%{_mandir}
+install -d $RPM_BUILD_ROOT%{_includedir}
 
 # Make install
-make install-strip DESTDIR=$DESTDIR benchdir=%{_datadir}/sql-bench
-
-# fixme: can´t this be done via configure?
-mv $DESTDIR%{_libdir}/mysql/*.so* $DESTDIR/usr/lib
+make install-strip DESTDIR=$RPM_BUILD_ROOT benchdir=%{_datadir}/sql-bench
 
 # Install logrotate and autostart
-MBD=$RPM_BUILD_DIR/mysql-%{mysql-version}
-mkdir -p $DESTDIR/etc/logrotate.d
-install -m644 $MBD/support-files/mysql-log-rotate $DESTDIR/etc/logrotate.d/mysql
-mkdir -p $DESTDIR/etc/rc.d/init.d
-install -m755 $MBD/support-files/mysql.server $DESTDIR/etc/rc.d/init.d/mysql
-
-# daemon startup control
-mkdir -p $DESTDIR/etc/sysconfig/daemons
-cat <<EOF > $DESTDIR/etc/sysconfig/daemons/mysql
-IDENT=mysql
-DESCRIPTIVE="MySQL database server"
-ONBOOT=no
-EOF
-
-# Install docs
-install -m644 $RPM_BUILD_DIR/mysql-%{mysql-version}/Docs/mysql.info \
- $DESTDIR%{_infodir}/mysql.info
-for file in README PUBLIC Docs/manual_toc.html Docs/manual.html \
-    Docs/manual.txt Docs/manual.texi Docs/manual.ps
-do
-    b=`basename $file`
-    install -m644 $MBD/$file $DESTDIR/usr/doc/MySQL-%{mysql-version}/$b
-done
-
-
-%Clean
-
-%{rmDESTDIR}
-
-
-
-%Pre
-if test -x /etc/rc.d/init.d/mysql
-then
-  /etc/rc.d/init.d/mysql stop > /dev/null 2>&1
-  echo "Giving mysqld a couple of seconds to exit nicely"
-  sleep 5
-fi
-
-%Post
-mysql_datadir=/var/lib/mysql
-
-# Create data directory if needed
-if test ! -d $mysql_datadir;           then mkdir $mysql_datadir; fi
-if test ! -d $mysql_datadir/mysql;     then mkdir $mysql_datadir/mysql; fi
-if test ! -d $mysql_datadir/test;      then mkdir $mysql_datadir/test; fi
-
-# Make MySQL start/shutdown automatically when the machine does it.
-lisa --SysV-init install  mysql S35 3:4:5 K65 0:1:2:6
-
-# Create a MySQL user. Do not report any problems if it already
-# exists.
-echo "Creating system group mysql with GID 83"
-#lisa --group create mysql :sys:
-%{_sbindir}/groupadd -g 83 mysql
-
-echo "Creating system user mysql with UID 83"
-#lisa --user create mysql :sys: mysql "MySQL Database" $mysql_datadir /bin/bash
-%{_sbindir}/useradd -u 83 -g mysql -d $mysql_datadir -s /bin/bash mysql
+install -m644 support-files/mysql-log-rotate $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/mysql
+install -m755 support-files/mysql.server     $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/mysql
 
-# Change permissions so that the user that will run the MySQL daemon
-# owns all database files.
-chown -R mysql.mysql $mysql_datadir
-
-# Initiate databases
-mysql_install_db -IN-RPM
-
-# Change permissions again to fix any new files.
-chown -R mysql.mysql $mysql_datadir
-
-# Restart in the same way that mysqld will be started normally.
-/etc/rc.d/init.d/mysql start
-
-# Allow safe_mysqld to start mysqld and print a message before we exit
-sleep 2
+find Docs -type f ! -name *.gif ! -name *.html -exec rm {} \;
+find . -name ./CVS -exec rm -rf {} \;
 
+mv $RPM_BUILD_ROOT%{_libdir}/mysql/*.so* $RPM_BUILD_ROOT%{_libdir}
 
-%preUn
-if test -x /etc/rc.d/init.d/mysql
-then
-  /etc/rc.d/init.d/mysql stop > /dev/null
-fi
-# Remove autostart of mysql
-lisa --SysV-init remove mysql $1
+strip $RPM_BUILD_ROOT%{_bindir}/*  || true
+strip $RPM_BUILD_ROOT%{_sbindir}/* || true
+strip $RPM_BUILD_ROOT%{_libdir}/*.so* || true
 
-%postun -p /sbin/ldconfig
+%pre
+echo "Creating system group mysql with GID 83"
+%{_sbindir}/groupadd -f -g 83 mysql
+echo "Creating system user mysql with UID 83"
+%{_sbindir}/useradd -u 83 -g mysql -d /var/state/mysql -s /bin/sh mysql 2> /dev/null
 
-%post client -p /sbin/ldconfig
+%post
+/sbin/chkconfig --add mysql
+mysql_install_db -IN-RPM
+chown -R mysql /var/state/mysql
 
+%postun
 # We do not remove the mysql user since it may still own a lot of
 # database files.
 
-%Files
+%files
 %defattr(644,root,root,755)
-%doc /usr/doc/MySQL-%{mysql-version}/
-
+%doc Docs
 %attr(755,root,root) %{_bindir}/isamchk
 %attr(755,root,root) %{_bindir}/isamlog
 %attr(755,root,root) %{_bindir}/mysql_fix_privilege_tables
@@ -183,20 +210,13 @@ lisa --SysV-init remove mysql $1
 %attr(755,root,root) %{_bindir}/replace
 %attr(755,root,root) %{_bindir}/resolveip
 %attr(755,root,root) %{_bindir}/safe_mysqld
-
 %attr(644,root,root) %{_infodir}/mysql.info
-
 %attr(755,root,root) %{_sbindir}/mysqld
+%attr(644,root,root) %{_sysconfdir}/logrotate.d/mysql
+%attr(755,root,root) %{_sysconfdir}/rc.d/init.d/mysql
+%attr(755,root,root) %{_libdir}/mysql/
 
-%attr(644,root,root) /etc/logrotate.d/mysql
-%attr(754,root,root) /etc/rc.d/init.d/mysql
-%config /etc/sysconfig/daemons/mysql
-
-%attr(755,root,root) %{_datadir}/mysql/
-
-%Files client
-%attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*
-
+%files client
 %attr(755,root,root) %{_bindir}/msql2mysql
 %attr(755,root,root) %{_bindir}/mysql
 %attr(755,root,root) %{_bindir}/mysqlaccess
@@ -205,35 +225,42 @@ lisa --SysV-init remove mysql $1
 %attr(755,root,root) %{_bindir}/mysqldump
 %attr(755,root,root) %{_bindir}/mysqlimport
 %attr(755,root,root) %{_bindir}/mysqlshow
+%attr(755,root,root) %{_libdir}/*.so*
+%attr(644,root,root) %{_mandir}/man1/mysql.1
 
-%{_mandir}/man1/mysql.1.*
+%post client
+/sbin/ldconfig
 
+%postun client
+/sbin/ldconfig
 
-%Files devel
-%dir %{_includedir}/mysql
-%dir %{_libdir}/mysql
-%attr(644,root,root) %{_includedir}/mysql/*
-%attr(644,root,root) %{_libdir}/mysql/*
-%attr(644,root,root) %{_libdir}/libmysqlclient.so
+%files devel
 %attr(755,root,root) %{_bindir}/comp_err
-
-%ChangeLog
-* Thu Jan 25 1999 Stephan Seyboth <sseyboth@linuxland.de>
-- user/group creation doesn´t work with lisa-3.2, use useradd/groupadd,
-   hope nothing else uses uid/gid 83???
-
-* Thu Jan 07 1999 Stephan Seyboth <sseyboth@linuxland.de>
-- converted to COL style init
-- updated to 3.22.14b-gamma
-
-* Mon Dec 14 1998 Stephan Seyboth <sseyboth@linuxland.de>
-- updated to mysql 3.22.12-beta
-
-* Fri Dec 11 1998 Stephan Seyboth <sseyboth@linuxland.de>
-- added mysql_fix_privilege_tables, needed by postin
-
-* Thu Dec 10 1998 Stephan Seyboth <sseyboth@linuxland.de>
-- don´t build mysqld with all-static (where´s libdl.a on COL?)
-
-* Wed Dec 09 1998 Stephan Seyboth <sseyboth@linuxland.de>
-- initial Version based on rpm by David Axmark <david@detron.se>
+%attr(755,root,root) %{_includedir}/mysql/
+%attr(755,root,root) %{_libdir}/mysql/
+
+%files bench
+%attr(-,root,root) %{_datadir}/sql-bench
+
+%changelog
+* Mon May 31 1999 Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
+- PLDized (spec rewrited)
+
+* Mon Feb 22 1999 David Axmark <david@detron.se>
+- Removed unportable cc switches from the spec file. The defaults can
+  now be overridden with environment variables. This feature is used
+  to compile the official RPM with optimal (but compiler version
+  specific) switches.
+- Removed the repetitive description parts for the sub rpms. Maybe add
+  again if RPM gets a multiline macro capability.
+- Added support for a pt_BR translation. Translation contributed by
+  Jorge Godoy <jorge@bestway.com.br>.
+
+* Wed Nov 4 1998 David Axmark <david@detron.se>
+- A lot of changes in all the rpm and install scripts. This may even
+  be a working RPM :-)
+
+* Sun Aug 16 1998 David Axmark <david@detron.se>
+- A developers changelog for MySQL is available in the source RPM. And
+  there is a history of major user visible changed in the Reference
+  Manual.  Only RPM specific changes will be documented here.
This page took 0.060998 seconds and 4 git commands to generate.