]>
Commit | Line | Data |
---|---|---|
a09e0285 | 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 | |
b24ee098 | 12 | |
b24ee098 | 13 | %Description |
a09e0285 | 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 | |
b24ee098 | 22 | information |
23 | ||
b24ee098 | 24 | %Package client |
a09e0285 | 25 | Summary: MySQL client programs and libs |
26 | Group: Applications/Databases | |
27 | Requires: %{name} = %{version}-%{release} | |
b24ee098 | 28 | |
b24ee098 | 29 | %Description client |
a09e0285 | 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. | |
b24ee098 | 33 | |
34 | %Package devel | |
a09e0285 | 35 | Summary: MySQL development header files and libraries |
36 | Group: Applications/Databases | |
37 | Requires: %{name} = %{version}-%{release} | |
b24ee098 | 38 | |
b24ee098 | 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 | ||
a09e0285 | 43 | %prep |
44 | %setup -n | |
b24ee098 | 45 | |
a09e0285 | 46 | %build |
b24ee098 | 47 | |
a09e0285 | 48 | CFLAGS="$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 | 60 | make benchdir=$RPM_BUILD_ROOT%{_datadir}/sql-bench |
b24ee098 | 61 | |
a09e0285 | 62 | %install |
b24ee098 | 63 | |
64 | %{mkDESTDIR} | |
65 | ||
66 | # Ensure that needed directories exists | |
67 | install -d $DESTDIR/var/lib/mysql/mysql | |
2c1032b0 | 68 | install -d $DESTDIR%{_datadir}/sql-bench |
b24ee098 | 69 | install -d $DESTDIR/usr/{sbin,share,man,include} |
70 | install -d $DESTDIR/usr/doc/MySQL-%{mysql-version} | |
71 | ||
72 | # Make install | |
2c1032b0 | 73 | make install-strip DESTDIR=$DESTDIR benchdir=%{_datadir}/sql-bench |
b24ee098 | 74 | |
75 |