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
|
|
|
|
Release: pre
|
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-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-06-30 13:53:15 +00:00
|
|
|
|
|
|
|
%post
|
2009-07-16 03:39:16 +00:00
|
|
|
cd /usr/local/lib
|
|
|
|
ln -s /usr/local/lib/libodbc.so.1 /usr/lib/libodbc.so
|
|
|
|
ln -s /usr/local/lib/libodbcinst.so.1 /usr/lib/libodbcinst.so
|
|
|
|
ln -s /usr/local/lib/libodbccr.so.1 /usr/lib/libodbccr.so
|
2009-06-30 13:53:15 +00:00
|
|
|
|
|
|
|
%postun
|
2009-07-16 03:39:16 +00:00
|
|
|
rm /usr/lib/libodbc.so
|
|
|
|
rm /usr/lib/libodbcinst.so
|
|
|
|
rm /usr/lib/libodbccr.so
|
2009-06-30 13:53:15 +00:00
|
|
|
|
|
|
|
%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
|