diff --git a/AIX/xcat-mysql/xcat-mysql.spec b/AIX/xcat-mysql/xcat-mysql.spec index c2627c3..68649e3 100644 --- a/AIX/xcat-mysql/xcat-mysql.spec +++ b/AIX/xcat-mysql/xcat-mysql.spec @@ -1,7 +1,7 @@ Summary: Metapackage for MySQL on AIX Name: xcat-mysql -Version: 5.0 -Release: 1 +Version: 5.1 +Release: 37 License: EPL Group: Applications/System Vendor: IBM Corp. @@ -9,14 +9,18 @@ Packager: IBM Corp. Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root BuildArch: ppc -Source1: mysql-5.0.67-aix5.3-powerpc-64bit.tar.gz +Source1: mysql-5.1.37-aix5.3-powerpc-64bit.tar.gz Provides: xcat-mysql = %{version} %description -Installs and configures MySQL 5.0 on AIX systems. +Installs and configures MySQL 5.1.37 on AIX systems. %prep +%pre + +#chfs -a size=+400M /usr + %build %install @@ -29,11 +33,14 @@ cp %{SOURCE1} $RPM_BUILD_ROOT/usr/local cd /usr/local # uwrap -gunzip /usr/local/mysql-5.0.67-aix5.3-powerpc-64bit.tar.gz -tar -xvf /usr/local/mysql-5.0.67-aix5.3-powerpc-64bit.tar +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 # set up link for mysql -ln -s /usr/local/mysql-5.0.67-aix5.3-powerpc-64bit mysql +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 # set PATH?? echo "PATH=\$PATH:/usr/local/mysql:/usr/local/mysql/bin:/usr/local/mysql/lib:/usr/local/mysql/include @@ -41,10 +48,16 @@ export PATH" >>/etc/profile echo "The PATH environment variable has been updated in /etc/profile." -# TODO - add postun section to remove MySQL - - %clean +%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 + %files -/usr/local/mysql-5.0.67-aix5.3-powerpc-64bit.tar.gz +/usr/local/mysql-5.1.37-aix5.3-powerpc-64bit.tar.gz %defattr(-,root,root)