init libiodbc
This commit is contained in:
parent
0beb8dc5e8
commit
1214431c7c
BIN
libiodbc-3.52.13.tar.gz
Normal file
BIN
libiodbc-3.52.13.tar.gz
Normal file
Binary file not shown.
108
libiodbc.spec
Normal file
108
libiodbc.spec
Normal file
@ -0,0 +1,108 @@
|
||||
|
||||
## admin gui build currently busted, FIXME?
|
||||
#define _enable_gui --enable-gui
|
||||
|
||||
Summary: iODBC Driver Manager
|
||||
Name: libiodbc
|
||||
Version: 3.52.13
|
||||
Release: 1
|
||||
License: LGPLv2 or BSD
|
||||
URL: http://www.iodbc.org/
|
||||
Source0: https://github.com/openlink/iODBC/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
|
||||
%{?_enable_gui:BuildRequires: gtk2-devel}
|
||||
BuildRequires: gcc
|
||||
BuildRequires: chrpath
|
||||
# Needed for autogen.sh
|
||||
BuildRequires: libtool
|
||||
|
||||
%description
|
||||
The iODBC Driver Manager is a free implementation of the SAG CLI and
|
||||
ODBC compliant driver manager which allows developers to write ODBC
|
||||
compliant applications that can connect to various databases using
|
||||
appropriate backend drivers.
|
||||
|
||||
%package devel
|
||||
Summary: Header files and libraries for iODBC development
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description devel
|
||||
This package contains the header files and libraries needed to develop
|
||||
programs that use the driver manager.
|
||||
|
||||
%package admin
|
||||
Summary: Gui administrator for iODBC development
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description admin
|
||||
This package contains a Gui administrator program for maintaining
|
||||
DSN information in odbc.ini and odbcinst.ini files.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n iODBC-%{version}
|
||||
|
||||
# fix header permissions
|
||||
chmod -x include/*.h
|
||||
|
||||
|
||||
%build
|
||||
# github tarball does not ship configure
|
||||
./autogen.sh
|
||||
# --disable-libodbc to minimize conflicts with unixODBC
|
||||
%configure \
|
||||
--enable-odbc3 \
|
||||
--with-iodbc-inidir=%{_sysconfdir} \
|
||||
--enable-pthreads \
|
||||
--disable-libodbc \
|
||||
--disable-static \
|
||||
--includedir=%{_includedir}/libiodbc \
|
||||
%{?_enable_gui} %{!?_enable_gui:--disable-gui}
|
||||
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
# nuke rpaths
|
||||
chrpath --delete %{buildroot}%{_bindir}/iodbctest
|
||||
chrpath --delete %{buildroot}%{_bindir}/iodbctestw
|
||||
|
||||
# unpackaged files
|
||||
rm -fv %{buildroot}%{_libdir}/lib*.la
|
||||
rm -rfv %{buildroot}%{_datadir}/libiodbc/samples
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc AUTHORS ChangeLog README
|
||||
%doc etc/odbc*.ini.sample
|
||||
%license LICENSE*
|
||||
%{_bindir}/iodbctest
|
||||
%{_bindir}/iodbctestw
|
||||
%{_libdir}/libiodbc.so.2*
|
||||
%{_libdir}/libiodbcinst.so.2*
|
||||
%{_mandir}/man1/iodbctest.1*
|
||||
%{_mandir}/man1/iodbctestw.1*
|
||||
|
||||
%files devel
|
||||
%{_bindir}/iodbc-config
|
||||
%{_includedir}/libiodbc/
|
||||
%{_libdir}/libiodbc.so
|
||||
%{_libdir}/libiodbcinst.so
|
||||
%{_mandir}/man1/iodbc-config.1*
|
||||
%{_libdir}/pkgconfig/libiodbc.pc
|
||||
|
||||
%if 0%{?_enable_gui:1}
|
||||
%files admin
|
||||
%{_bindir}/iodbcadm-gtk
|
||||
%{_libdir}/libdrvproxy.so*
|
||||
%{_libdir}/libiodbcadm.so*
|
||||
%{_mandir}/man1/iodbcadm-gtk.1*
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jul 27 2020 chxssg<chxssg@qq.com> - 3.52.13-1
|
||||
- init libiodbc
|
||||
Loading…
x
Reference in New Issue
Block a user