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