2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-25 11:00:07 +00:00
xcat-dep/AIX/mysql-connector-odbc/mysql-connector-odbc.spec

54 lines
1.6 KiB
RPMSpec
Raw Normal View History

Summary: Package for MySQL Connector/ODBC on AIX
Name: mysql-connector-odbc
Version: 3.51.27
2009-07-16 17:42:22 +00:00
Release: 32bit
License: GPL
Group: Applications/System
Vendor: MySQL
Packager: IBM Corp.
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Prefix: /
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
BuildArch: ppc
2009-07-16 17:42:22 +00:00
Source: mysql-connector-odbc-3.51.27-aix5.3-powerpc-32bit.tar.gz
Provides: mysql-connector-odbc = %{version}
%description
2009-07-16 17:42:22 +00:00
MySQL Connector/ODBC 3.51.27 on AIX systems.
%prep
2009-07-16 17:42:22 +00:00
%setup -q -n mysql-connector-odbc-3.51.27-aix5.3-powerpc-32bit
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr/local/bin
mkdir -p $RPM_BUILD_ROOT/usr/local/lib
2009-07-16 17:42:22 +00:00
mkdir -p $RPM_BUILD_ROOT/usr/lib
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/mysql-connector-odbc-3.51.27
cp bin/* $RPM_BUILD_ROOT/usr/local/bin
2009-07-16 17:42:22 +00:00
chmod 755 $RPM_BUILD_ROOT/usr/local/bin/*
cp lib/* $RPM_BUILD_ROOT/usr/local/lib
2009-07-16 17:42:22 +00:00
chmod 755 $RPM_BUILD_ROOT/usr/local/lib/*
cp ChangeLog $RPM_BUILD_ROOT/usr/share/doc/mysql-connector-odbc-3.51.27
cp INSTALL $RPM_BUILD_ROOT/usr/share/doc/mysql-connector-odbc-3.51.27
cp LICENSE.exceptions $RPM_BUILD_ROOT/usr/share/doc/mysql-connector-odbc-3.51.27
cp LICENSE.gpl $RPM_BUILD_ROOT/usr/share/doc/mysql-connector-odbc-3.51.27
cp README $RPM_BUILD_ROOT/usr/share/doc/mysql-connector-odbc-3.51.27
cp README.debug $RPM_BUILD_ROOT/usr/share/doc/mysql-connector-odbc-3.51.27
#chmod 644 $RPM_BUILD_ROOT/usr/share/doc/mysql-connector-odbc-3.51.27/*
2009-07-16 17:42:22 +00:00
cd $RPM_BUILD_ROOT/usr/lib
ln -s -f ../local/lib/libmyodbc3.so
%post
%clean
%files
%defattr(-,root,root)
/usr/local/lib
/usr/local/bin
/usr/share/doc/mysql-connector-odbc-3.51.27
2009-07-16 17:42:22 +00:00
/usr/lib