2007-01-16 00:40:12 +01:00
|
|
|
#
|
2011-06-14 10:58:23 +02:00
|
|
|
# spec file for package unixODBC
|
2007-01-16 00:40:12 +01:00
|
|
|
#
|
2014-02-14 13:48:39 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:40:12 +01:00
|
|
|
#
|
2008-10-13 17:00:11 +02: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-16 00:40:12 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-04-10 15:35:40 +02:00
|
|
|
|
2007-01-16 00:40:12 +01:00
|
|
|
Name: unixODBC
|
2013-04-05 14:41:47 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
2014-02-14 13:48:39 +01:00
|
|
|
Version: 2.3.2
|
2011-11-28 11:18:01 +01:00
|
|
|
Release: 0
|
2007-01-16 00:40:12 +01:00
|
|
|
Summary: ODBC driver manager with some drivers included
|
2012-12-03 09:28:25 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2007-01-16 00:40:12 +01:00
|
|
|
Group: Productivity/Databases/Tools
|
2013-04-05 14:41:47 +02:00
|
|
|
Url: http://www.unixodbc.org/
|
2009-01-09 02:05:29 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: unixODBC-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2013-04-05 14:41:47 +02:00
|
|
|
Source: ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-%{version}.tar.gz
|
2007-01-16 00:40:12 +01:00
|
|
|
Source1: README.SuSE
|
2010-01-21 11:14:43 +01:00
|
|
|
Source2: baselibs.conf
|
2007-01-16 00:40:12 +01:00
|
|
|
Patch1: unixODBC-paths.patch
|
|
|
|
Patch5: unixODBC-iaddr.patch
|
|
|
|
Patch6: unixODBC-nonvoid.patch
|
|
|
|
Patch7: unixODBC-gccwarnings.patch
|
2012-11-06 10:54:44 +01:00
|
|
|
Patch10: %{name}-2.3.1-libodbcinst-exports.patch
|
|
|
|
Patch13: %{name}-2.3.1-uninitialized.patch
|
2013-01-04 13:05:22 +01:00
|
|
|
Patch15: %{name}-2.3.1-bison.patch
|
2013-01-04 15:06:59 +01:00
|
|
|
Patch16: %{name}-2.3.1-declarations.patch
|
2007-01-16 00:40:12 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-04-10 15:35:40 +02:00
|
|
|
|
2007-01-16 00:40:12 +01:00
|
|
|
%package devel
|
2012-11-15 13:36:12 +01:00
|
|
|
Summary: Includes for ODBC Development
|
2007-01-16 00:40:12 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-01-09 02:05:29 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: unixODBC-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2014-09-12 11:08:12 +02:00
|
|
|
Conflicts: libiodbc-devel
|
2007-01-16 00:40:12 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description
|
|
|
|
UnixODBC aims to provide a complete ODBC solution for the Linux
|
|
|
|
platform. Further drivers can be found at http://www.unixodbc.org/.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Peter Harvey <pharvey@codebydesigns.com>
|
|
|
|
Nick Gorham <nick@easysoft.com>
|
|
|
|
|
|
|
|
%description devel
|
2012-11-15 13:36:12 +01:00
|
|
|
Includes for ODBC development (based on unixODBC).
|
2007-01-16 00:40:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Peter Harvey <pharvey@codebydesigns.com>
|
|
|
|
Nick Gorham <nick@easysoft.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1
|
|
|
|
%patch5
|
|
|
|
%patch6
|
|
|
|
%patch7
|
|
|
|
%patch10
|
|
|
|
%patch13
|
2013-01-04 13:05:22 +01:00
|
|
|
%patch15
|
2013-01-04 15:06:59 +01:00
|
|
|
%patch16
|
2007-01-16 00:40:12 +01:00
|
|
|
install -m 644 %{S:1} .
|
|
|
|
|
|
|
|
%build
|
|
|
|
export -n LANG LINGUAS LC_ALL
|
|
|
|
rm -rf libltdl
|
2012-11-06 10:45:33 +01:00
|
|
|
libtoolize --ltdl
|
|
|
|
autoreconf --force --install
|
2012-11-15 14:29:34 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2011-10-06 09:51:45 +02:00
|
|
|
%configure \
|
2007-01-16 00:40:12 +01:00
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--infodir=%{_infodir} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
|
|
|
--enable-gui=no \
|
2012-11-07 11:48:30 +01:00
|
|
|
--disable-stats \
|
|
|
|
--enable-drivers \
|
|
|
|
--enable-driver-conf
|
2012-11-15 14:29:34 +01:00
|
|
|
make
|
2007-01-16 00:40:12 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/%{_libdir}/%{name}
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/libtool
|
|
|
|
# packaged in gui-gtk
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmimerS.*
|
2012-11-07 11:48:30 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/*.la
|
2007-01-16 00:40:12 +01:00
|
|
|
|
2007-05-26 10:58:00 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2007-01-16 00:40:12 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2012-11-06 10:45:33 +01:00
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README README.SuSE doc/*.html doc/*.gif
|
2014-02-14 13:48:39 +01:00
|
|
|
%docdir %{_mandir}
|
|
|
|
%{_mandir}/man1/isql.1.*
|
|
|
|
%{_mandir}/man1/odbcinst.1.*
|
|
|
|
%{_mandir}/man5/odbc.ini.5.*
|
|
|
|
%{_mandir}/man5/odbcinst.ini.5.*
|
2007-01-16 00:40:12 +01:00
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%dir %{_sysconfdir}/%{name}/ODBCDataSources
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%config %{_sysconfdir}/%{name}/odbc.ini
|
|
|
|
%config %{_sysconfdir}/%{name}/odbcinst.ini
|
|
|
|
%{_prefix}/bin/dltest
|
|
|
|
%{_prefix}/bin/isql
|
|
|
|
%{_prefix}/bin/iusql
|
|
|
|
%{_prefix}/bin/odbcinst
|
|
|
|
%{_prefix}/bin/odbc_config
|
2014-02-14 13:48:39 +01:00
|
|
|
%{_prefix}/bin/slencheck
|
2007-01-16 00:40:12 +01:00
|
|
|
%{_libdir}/libodbc.so.*
|
|
|
|
%{_libdir}/libodbcinst.so.*
|
|
|
|
%{_libdir}/libodbccr.so.*
|
2012-11-07 11:48:30 +01:00
|
|
|
%{_libdir}/%{name}
|
2007-01-16 00:40:12 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_includedir}/*
|
2012-11-06 10:45:33 +01:00
|
|
|
%{_libdir}/libodbc.so
|
|
|
|
%{_libdir}/libodbcinst.so
|
2007-01-16 00:40:12 +01:00
|
|
|
%{_libdir}/libodbc.la
|
|
|
|
%{_libdir}/libodbccr.la
|
|
|
|
%{_libdir}/libodbcinst.la
|
|
|
|
%{_libdir}/libodbccr.so
|
|
|
|
|
2007-05-26 10:58:00 +02:00
|
|
|
%changelog
|