2008-08-14 11:51:32 +00:00
|
|
|
Summary: Metapackage for MySQL on AIX
|
|
|
|
Name: xcat-mysql
|
2009-09-28 14:45:07 +00:00
|
|
|
Version: 5.1
|
|
|
|
Release: 37
|
2008-08-14 11:51:32 +00:00
|
|
|
License: EPL
|
|
|
|
Group: Applications/System
|
|
|
|
Vendor: IBM Corp.
|
|
|
|
Packager: IBM Corp.
|
|
|
|
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
|
|
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
|
|
|
|
BuildArch: ppc
|
2009-09-28 14:45:07 +00:00
|
|
|
Source1: mysql-5.1.37-aix5.3-powerpc-64bit.tar.gz
|
2008-08-14 11:51:32 +00:00
|
|
|
Provides: xcat-mysql = %{version}
|
|
|
|
|
|
|
|
%description
|
2009-09-28 14:45:07 +00:00
|
|
|
Installs and configures MySQL 5.1.37 on AIX systems.
|
2008-08-14 11:51:32 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
2009-09-28 14:45:07 +00:00
|
|
|
%pre
|
|
|
|
|
|
|
|
#chfs -a size=+400M /usr
|
|
|
|
|
2008-08-14 11:51:32 +00:00
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2008-10-07 17:41:19 +00:00
|
|
|
|
2008-08-14 11:51:32 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/local
|
|
|
|
cp %{SOURCE1} $RPM_BUILD_ROOT/usr/local
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
cd /usr/local
|
|
|
|
|
|
|
|
# uwrap
|
2009-09-28 14:45:07 +00:00
|
|
|
gunzip /usr/local/mysql-5.1.37-aix5.3-powerpc-64bit.tar.gz
|
|
|
|
tar -xvf /usr/local/mysql-5.1.37-aix5.3-powerpc-64bit.tar
|
2008-08-14 11:51:32 +00:00
|
|
|
|
|
|
|
# set up link for mysql
|
2009-09-28 14:45:07 +00:00
|
|
|
ln -s /usr/local/mysql-5.1.37-aix5.3-powerpc-64bit mysql
|
|
|
|
|
|
|
|
# get rid of the tar file
|
|
|
|
rm -rf /usr/local/mysql-5.1.37-aix5.3-powerpc-64bit.tar
|
2008-08-14 11:51:32 +00:00
|
|
|
|
|
|
|
# set PATH??
|
|
|
|
echo "PATH=\$PATH:/usr/local/mysql:/usr/local/mysql/bin:/usr/local/mysql/lib:/usr/local/mysql/include
|
|
|
|
export PATH" >>/etc/profile
|
|
|
|
|
|
|
|
echo "The PATH environment variable has been updated in /etc/profile."
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
2009-09-28 14:45:07 +00:00
|
|
|
%postun
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# The 'postun' step is executed just after the rpm package is removed.
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
rm -rf /usr/local/mysql
|
|
|
|
rm -rf /usr/local/mysql-5.1.37-aix5.3-powerpc-64bit
|
|
|
|
|
2008-08-14 11:51:32 +00:00
|
|
|
%files
|
2009-09-28 14:45:07 +00:00
|
|
|
/usr/local/mysql-5.1.37-aix5.3-powerpc-64bit.tar.gz
|
2008-08-14 11:51:32 +00:00
|
|
|
%defattr(-,root,root)
|