2007-01-15 23:40:12 +00:00
|
|
|
#
|
2011-06-14 08:58:23 +00:00
|
|
|
# spec file for package unixODBC
|
2007-01-15 23:40:12 +00:00
|
|
|
#
|
2016-02-02 21:53:17 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:40:12 +00:00
|
|
|
#
|
2008-10-13 15:00:11 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:40:12 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-04-10 13:35:40 +00:00
|
|
|
|
2007-01-15 23:40:12 +00:00
|
|
|
Name: unixODBC
|
2015-09-01 12:03:21 +00:00
|
|
|
Version: 2.3.4
|
2011-11-28 10:18:01 +00:00
|
|
|
Release: 0
|
2007-01-15 23:40:12 +00:00
|
|
|
Summary: ODBC driver manager with some drivers included
|
2012-12-03 08:28:25 +00:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2007-01-15 23:40:12 +00:00
|
|
|
Group: Productivity/Databases/Tools
|
2013-04-05 12:41:47 +00:00
|
|
|
Url: http://www.unixodbc.org/
|
|
|
|
Source: ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-%{version}.tar.gz
|
2010-01-21 10:14:43 +00:00
|
|
|
Source2: baselibs.conf
|
2007-01-15 23:40:12 +00:00
|
|
|
Patch1: unixODBC-paths.patch
|
|
|
|
Patch5: unixODBC-iaddr.patch
|
|
|
|
Patch7: unixODBC-gccwarnings.patch
|
2012-11-06 09:54:44 +00:00
|
|
|
Patch10: %{name}-2.3.1-libodbcinst-exports.patch
|
2013-01-04 12:05:22 +00:00
|
|
|
Patch15: %{name}-2.3.1-bison.patch
|
2013-01-04 14:06:59 +00:00
|
|
|
Patch16: %{name}-2.3.1-declarations.patch
|
2014-12-01 10:13:30 +00:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: gcc-c++
|
2014-12-01 12:25:32 +00:00
|
|
|
BuildRequires: libltdl-devel
|
2014-12-01 10:13:30 +00:00
|
|
|
BuildRequires: libtool
|
2014-12-01 12:25:32 +00:00
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-04-10 13:35:40 +00:00
|
|
|
|
2007-01-15 23:40:12 +00:00
|
|
|
%package devel
|
2012-11-15 12:36:12 +00:00
|
|
|
Summary: Includes for ODBC Development
|
2007-01-15 23:40:12 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
2014-12-01 12:25:32 +00:00
|
|
|
Conflicts: libiodbc-devel
|
2007-01-15 23:40:12 +00:00
|
|
|
|
|
|
|
%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
|
2012-11-15 12:36:12 +00:00
|
|
|
Includes for ODBC development (based on unixODBC).
|
2007-01-15 23:40:12 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1
|
|
|
|
%patch5
|
|
|
|
%patch7
|
|
|
|
%patch10
|
2013-01-04 12:05:22 +00:00
|
|
|
%patch15
|
2013-01-04 14:06:59 +00:00
|
|
|
%patch16
|
2007-01-15 23:40:12 +00:00
|
|
|
|
|
|
|
%build
|
2014-12-01 10:13:30 +00:00
|
|
|
perl -i -pe 's{^ACLOCAL_AMFLAGS.*}{}' Makefile.am
|
2007-01-15 23:40:12 +00:00
|
|
|
export -n LANG LINGUAS LC_ALL
|
|
|
|
rm -rf libltdl
|
2014-12-01 12:25:32 +00:00
|
|
|
autoreconf -fvi
|
2011-10-06 07:51:45 +00:00
|
|
|
%configure \
|
2014-12-01 12:25:32 +00:00
|
|
|
--with-gnu-ld \
|
|
|
|
--enable-ltdllib \
|
|
|
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
|
|
|
--enable-iconv \
|
|
|
|
--with-iconv-char-enc=UTF8 \
|
|
|
|
--with-iconv-ucode-enc=UTF16LE \
|
|
|
|
--enable-threads \
|
|
|
|
--enable-gui=no \
|
|
|
|
--disable-stats \
|
|
|
|
--enable-driverc \
|
|
|
|
--enable-drivers \
|
|
|
|
--enable-driver-conf
|
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:40:12 +00:00
|
|
|
|
|
|
|
%install
|
2014-12-01 12:25:32 +00:00
|
|
|
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"
|
2007-01-15 23:40:12 +00:00
|
|
|
# packaged in gui-gtk
|
2014-12-01 12:25:32 +00:00
|
|
|
rm -f "%{buildroot}/%{_libdir}"/libmimerS.*
|
|
|
|
rm -f %{buildroot}/%{_libdir}/*.la
|
2007-01-15 23:40:12 +00:00
|
|
|
|
2007-05-26 08:58:00 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2014-12-01 12:25:32 +00:00
|
|
|
%files
|
2007-01-15 23:40:12 +00:00
|
|
|
%defattr(-, root, root)
|
2014-12-01 12:25:32 +00:00
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README doc/*.html doc/*.gif
|
2014-02-14 12:48:39 +00:00
|
|
|
%docdir %{_mandir}
|
2015-08-25 07:01:15 +00:00
|
|
|
%{_mandir}/man1/dltest.1.*
|
2014-02-14 12:48:39 +00:00
|
|
|
%{_mandir}/man1/isql.1.*
|
2015-08-25 07:01:15 +00:00
|
|
|
%{_mandir}/man1/iusql.1.*
|
|
|
|
%{_mandir}/man1/odbc_config.1.*
|
2014-02-14 12:48:39 +00:00
|
|
|
%{_mandir}/man1/odbcinst.1.*
|
|
|
|
%{_mandir}/man5/odbc.ini.5.*
|
|
|
|
%{_mandir}/man5/odbcinst.ini.5.*
|
2015-08-25 07:01:15 +00:00
|
|
|
%{_mandir}/man7/unixODBC.7.*
|
2007-01-15 23:40:12 +00:00
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%dir %{_sysconfdir}/%{name}/ODBCDataSources
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%config %{_sysconfdir}/%{name}/odbc.ini
|
|
|
|
%config %{_sysconfdir}/%{name}/odbcinst.ini
|
2014-12-01 12:25:32 +00:00
|
|
|
%{_bindir}/dltest
|
|
|
|
%{_bindir}/isql
|
|
|
|
%{_bindir}/iusql
|
|
|
|
%{_bindir}/odbcinst
|
|
|
|
%{_bindir}/odbc_config
|
|
|
|
%{_bindir}/slencheck
|
2007-01-15 23:40:12 +00:00
|
|
|
%{_libdir}/libodbc.so.*
|
|
|
|
%{_libdir}/libodbcinst.so.*
|
|
|
|
%{_libdir}/libodbccr.so.*
|
2014-12-01 12:25:32 +00:00
|
|
|
%{_libdir}/libodbc.so
|
|
|
|
%{_libdir}/libodbcinst.so
|
|
|
|
%{_libdir}/libodbccr.so
|
2012-11-07 10:48:30 +00:00
|
|
|
%{_libdir}/%{name}
|
2007-01-15 23:40:12 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_includedir}/*
|
|
|
|
|
2007-05-26 08:58:00 +00:00
|
|
|
%changelog
|