2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-25 19:08:31 +00:00
xcat-dep/AIX/unixODBC/unixODBC.spec
2009-07-16 17:42:22 +00:00

53 lines
1.1 KiB
RPMSpec

Summary: Metapackage for unixODBC on AIX
Name: unixODBC
Version: 2.2.15
Release: 32bit
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
Source1: unixODBC-2.2.15pre-aix-ppc.tar.gz
Provides: unixODBC = %{version}
%description
unixODBC 2.2.15 on AIX systems.
%prep
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/local
cp %{SOURCE1} $RPM_BUILD_ROOT/
cd $RPM_BUILD_ROOT
gunzip -f unixODBC-2.2.15pre-aix-ppc.tar.gz
tar -xf unixODBC-2.2.15pre-aix-ppc.tar
mkdir -p usr/lib
cd usr/local/lib
ln -s libodbcinst.so.1 libodbcinst.so
ln -s libodbccr.so.1 libodbccr.so
ln -s libodbc.so.1 libodbc.so
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
%post
%postun
%clean
%files
%defattr(-,root,root)
/etc/odbc.ini
/etc/odbcinst.ini
/usr/local/lib
/usr/local/bin
/usr/lib