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
|
|
|
#
|
2013-01-04 13:05:22 +01:00
|
|
|
# Copyright (c) 2013 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 15:35:40 +02:00
|
|
|
|
2007-01-16 00:40:12 +01:00
|
|
|
Name: unixODBC
|
2013-01-04 13:52:31 +01:00
|
|
|
BuildRequires: bison gcc-c++ libtool
|
2012-11-06 10:45:33 +01:00
|
|
|
Version: 2.3.1
|
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+
|
2008-04-10 15:35:40 +02:00
|
|
|
Url: http://www.unixodbc.org/
|
2007-01-16 00:40:12 +01:00
|
|
|
Group: Productivity/Databases/Tools
|
2009-01-09 02:05:29 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: unixODBC-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:40:12 +01:00
|
|
|
Provides: libodbcinst.so, libodbc.so
|
|
|
|
%ifarch ia64 x86_64 s390x ppc64
|
|
|
|
Provides: libodbcinst.so()(64bit), libodbc.so()(64bit)
|
|
|
|
%endif
|
|
|
|
Source: unixODBC-%{version}.tar.bz2
|
|
|
|
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
|
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-12-03 09:28:25 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
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++
|
2008-04-10 15:35:40 +02:00
|
|
|
AutoReqProv: on
|
2009-01-09 02:05:29 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: unixODBC-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:40:12 +01:00
|
|
|
Obsoletes: libiodbc-devel
|
|
|
|
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
|
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
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
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
|
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
|
|
|
|
%{_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
|