psqlODBC package should be used instead of the example driver provided by unixODBC (libodbcpsql.*). It is unmaintained. OBS-URL: https://build.opensuse.org/package/show/server:database/unixODBC?expand=0&rev=48
139 lines
4.0 KiB
RPMSpec
139 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package unixODBC
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: unixODBC
|
|
Version: 2.3.4
|
|
Release: 0
|
|
Summary: ODBC driver manager with some drivers included
|
|
License: GPL-2.0+ and LGPL-2.1+
|
|
Group: Productivity/Databases/Tools
|
|
Url: http://www.unixodbc.org/
|
|
Source: ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-%{version}.tar.gz
|
|
Source2: baselibs.conf
|
|
Patch1: unixODBC-paths.patch
|
|
Patch5: unixODBC-iaddr.patch
|
|
Patch7: unixODBC-gccwarnings.patch
|
|
Patch10: %{name}-2.3.1-libodbcinst-exports.patch
|
|
Patch15: %{name}-2.3.1-bison.patch
|
|
Patch16: %{name}-2.3.1-declarations.patch
|
|
BuildRequires: automake
|
|
BuildRequires: bison
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libltdl-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: readline-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%package devel
|
|
Summary: Includes for ODBC Development
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
Conflicts: libiodbc-devel
|
|
|
|
%description
|
|
UnixODBC aims to provide a complete ODBC solution for the Linux
|
|
platform. Further drivers can be found at http://www.unixodbc.org/.
|
|
|
|
%description devel
|
|
Includes for ODBC development (based on unixODBC).
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1
|
|
%patch5
|
|
%patch7
|
|
%patch10
|
|
%patch15
|
|
%patch16
|
|
|
|
%build
|
|
perl -i -pe 's{^ACLOCAL_AMFLAGS.*}{}' Makefile.am
|
|
export -n LANG LINGUAS LC_ALL
|
|
rm -rf libltdl
|
|
autoreconf -fvi
|
|
%configure \
|
|
--with-gnu-ld \
|
|
--enable-ltdllib \
|
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
|
--enable-iconv \
|
|
--with-iconv-char-enc=UTF8 \
|
|
--with-iconv-ucode-enc=UTF16LE \
|
|
--enable-fastvalidate \
|
|
--enable-threads \
|
|
--enable-gui=no \
|
|
--disable-stats \
|
|
--enable-driverc \
|
|
--enable-drivers \
|
|
--enable-driver-conf
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
install -d -m 755 "%{buildroot}/%{_sysconfdir}/%{name}"
|
|
install -d -m 755 "%{buildroot}/%{_libdir}/%{name}"
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
rm -rf "%{buildroot}/%{_datadir}/libtool"
|
|
# packaged in gui-gtk
|
|
rm -f "%{buildroot}/%{_libdir}"/libmimerS.*
|
|
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
|
# bsc#1062860: we want psqlODBC instead of this unmaintained example driver
|
|
rm -f "%{buildroot}/%{_libdir}"/unixODBC/libodbcpsql.*
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS COPYING ChangeLog NEWS README doc/*.html doc/*.gif
|
|
%docdir %{_mandir}
|
|
%{_mandir}/man1/dltest.1.*
|
|
%{_mandir}/man1/isql.1.*
|
|
%{_mandir}/man1/iusql.1.*
|
|
%{_mandir}/man1/odbc_config.1.*
|
|
%{_mandir}/man1/odbcinst.1.*
|
|
%{_mandir}/man5/odbc.ini.5.*
|
|
%{_mandir}/man5/odbcinst.ini.5.*
|
|
%{_mandir}/man7/unixODBC.7.*
|
|
%dir %{_sysconfdir}/%{name}
|
|
%dir %{_sysconfdir}/%{name}/ODBCDataSources
|
|
%dir %{_libdir}/%{name}
|
|
%config %{_sysconfdir}/%{name}/odbc.ini
|
|
%config %{_sysconfdir}/%{name}/odbcinst.ini
|
|
%{_bindir}/dltest
|
|
%{_bindir}/isql
|
|
%{_bindir}/iusql
|
|
%{_bindir}/odbcinst
|
|
%{_bindir}/odbc_config
|
|
%{_bindir}/slencheck
|
|
%{_libdir}/libodbc.so.*
|
|
%{_libdir}/libodbcinst.so.*
|
|
%{_libdir}/libodbccr.so.*
|
|
%{_libdir}/libodbc.so
|
|
%{_libdir}/libodbcinst.so
|
|
%{_libdir}/libodbccr.so
|
|
%{_libdir}/%{name}
|
|
|
|
# All .so files are in the main package as many ext apps
|
|
# dlopen those so you need these on regular package.
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%{_includedir}/*
|
|
|
|
%changelog
|