]> git.pld-linux.org Git - packages/percona-server.git/blame - mysql.spec
- s-/usr/share-%{_datadir}-
[packages/percona-server.git] / mysql.spec
CommitLineData
a09e0285 1Summary: MySQL: a very fast and reliable SQL database engine
2Name: MySQL
3Version: 3.22.14b-gamma
4Release: 3
5Vendor: LinuxLand International
6Copyright: MySQL FREE PUBLIC LICENSE (See the file PUBLIC)
7Group: Applications/Databases
8Source0: http://www.tcx.se/Downloads/MySQL-3.22/mysql-%{mysql-version}.tar.gz
9Icon: mysql.gif
10URL: http://www.tcx.se/
11BuildRoot: /tmp/%{Name}-%{Version}-root
b24ee098 12
b24ee098 13%Description
a09e0285 14MySQL is a true multi-user, multi-threaded SQL (Structured Query Language)
15database server. SQL is the most popular database language in the world.
16MySQL is a client/server implementation that consists of a server daemon
17mysqld and many different client programs/libraries. The main goals of MySQL
18are speed, robustness and easy to use. The base upon which MySQL is built
19is a set of routines that have been used in a highly demanding production
20environment for many years. While MySQL is still in development, it already
21offers a rich and highly useful function set. See the documentation for more
b24ee098 22information
23
b24ee098 24%Package client
a09e0285 25Summary: MySQL client programs and libs
26Group: Applications/Databases
27Requires: %{name} = %{version}-%{release}
b24ee098 28
b24ee098 29%Description client
a09e0285 30This package contains the client part of the MySQL database. It includes
31utilities and libraries to access and manipulate data on a MySQL database
32Server.
b24ee098 33
34%Package devel
a09e0285 35Summary: MySQL development header files and libraries
36Group: Applications/Databases
37Requires: %{name} = %{version}-%{release}
b24ee098 38
b24ee098 39%Description devel
40This package contains the header files and libraries (shared and static) for
41developing applications that use the MySQL database.
42
a09e0285 43%prep
44%setup -n
b24ee098 45
a09e0285 46%build
b24ee098 47
a09e0285 48CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
02354697 49./configure %{_target} \
a09e0285 50 --enable-shared \
51 --enable-static \
52 --enable-assembler \
53 --with-mysqld-user=mysql \
54 --with-unix-socket-path=/var/lib/mysql/mysql.sock \
55 --prefix=/usr \
56 --sysconfdir=/etc \
57 --localstatedir=/var/lib/mysql
b24ee098 58
59# benchdir does not fit in above model. Fix when we make a separate package
2c1032b0 60make benchdir=$RPM_BUILD_ROOT%{_datadir}/sql-bench
b24ee098 61
a09e0285 62%install
b24ee098 63
64%{mkDESTDIR}
65
66# Ensure that needed directories exists
67install -d $DESTDIR/var/lib/mysql/mysql
2c1032b0 68install -d $DESTDIR%{_datadir}/sql-bench
b24ee098 69install -d $DESTDIR/usr/{sbin,share,man,include}
70install -d $DESTDIR/usr/doc/MySQL-%{mysql-version}
71
72# Make install
2c1032b0 73make install-strip DESTDIR=$DESTDIR benchdir=%{_datadir}/sql-bench
b24ee098 74
75