2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-22 09:31:48 +00:00
xcat-dep/AIX/xcat-mysql/xcat-mysql.spec

51 lines
1.1 KiB
RPMSpec
Raw Normal View History

2008-08-14 11:51:32 +00:00
Summary: Metapackage for MySQL on AIX
Name: xcat-mysql
2008-10-07 17:41:19 +00:00
Version: 5.0
2008-08-14 11:51:32 +00:00
Release: 1
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
2008-10-07 17:41:19 +00:00
Source1: mysql-5.0.67-aix5.3-powerpc-64bit.tar.gz
2008-08-14 11:51:32 +00:00
Provides: xcat-mysql = %{version}
%description
2008-10-07 17:41:19 +00:00
Installs and configures MySQL 5.0 on AIX systems.
2008-08-14 11:51:32 +00:00
%prep
%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
2008-10-07 17:41:19 +00:00
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
2008-08-14 11:51:32 +00:00
# set up link for mysql
2008-10-07 17:41:19 +00:00
ln -s /usr/local/mysql-5.0.67-aix5.3-powerpc-64bit mysql
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."
# TODO - add postun section to remove MySQL -
%clean
%files
2008-10-07 17:41:19 +00:00
/usr/local/mysql-5.0.67-aix5.3-powerpc-64bit.tar.gz
2008-08-14 11:51:32 +00:00
%defattr(-,root,root)