2009-06-30 13:53:15 +00:00
|
|
|
Summary: Metapackage for unixODBC on AIX
|
|
|
|
Name: unixODBC
|
2009-07-16 03:39:16 +00:00
|
|
|
Version: 2.2.15
|
2009-07-16 17:42:22 +00:00
|
|
|
Release: 32bit
|
2009-06-30 13:53:15 +00:00
|
|
|
License: LGPL
|
|
|
|
Group: Applications/System
|
|
|
|
Vendor: unixODBC
|
|
|
|
Packager: IBM Corp.
|
|
|
|
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
|
|
|
|
Prefix: /
|
|
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
|
|
|
|
BuildArch: ppc
|
2009-07-16 03:39:16 +00:00
|
|
|
Source1: unixODBC-2.2.15pre-aix-ppc.tar.gz
|
2009-06-30 13:53:15 +00:00
|
|
|
Provides: unixODBC = %{version}
|
|
|
|
|
|
|
|
%description
|
2009-07-16 03:39:16 +00:00
|
|
|
unixODBC 2.2.15 on AIX systems.
|
2009-06-30 13:53:15 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/local
|
|
|
|
cp %{SOURCE1} $RPM_BUILD_ROOT/
|
|
|
|
cd $RPM_BUILD_ROOT
|
2009-07-16 03:39:16 +00:00
|
|
|
gunzip -f unixODBC-2.2.15pre-aix-ppc.tar.gz
|
|
|
|
tar -xf unixODBC-2.2.15pre-aix-ppc.tar
|
2009-07-16 17:42:22 +00:00
|
|
|
mkdir -p usr/lib
|
2009-06-30 13:53:15 +00:00
|
|
|
cd usr/local/lib
|
2009-07-16 03:39:16 +00:00
|
|
|
ln -s libodbcinst.so.1 libodbcinst.so
|
|
|
|
ln -s libodbccr.so.1 libodbccr.so
|
|
|
|
ln -s libodbc.so.1 libodbc.so
|
2009-07-16 17:42:22 +00:00
|
|
|
cd $RPM_BUILD_ROOT/usr/lib
|
|
|
|
ln -s ../local/lib/libodbc.so.1 libodbc.so
|
|
|
|
ln -s ../local/lib/libodbcinst.so.1 libodbcinst.so
|
|
|
|
ln -s ../local/lib/libodbccr.so.1 libodbccr.so
|
2009-06-30 13:53:15 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-07-16 03:39:16 +00:00
|
|
|
/etc/odbc.ini
|
|
|
|
/etc/odbcinst.ini
|
2009-06-30 13:53:15 +00:00
|
|
|
/usr/local/lib
|
|
|
|
/usr/local/bin
|
2009-07-16 17:42:22 +00:00
|
|
|
/usr/lib
|