Accepting request 266848 from devel:libraries:c_c++
1 OBS-URL: https://build.opensuse.org/request/show/266848 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/freetds?expand=0&rev=12
This commit is contained in:
commit
9ca4fa3c5d
3
freetds-0.91.103.tar.gz
Normal file
3
freetds-0.91.103.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:895cdce6d2af65f79db5e7034d1eba5dd3b63369a0c6b5fbc890e606c699556b
|
||||||
|
size 2061912
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3603aee511c0774f640848db19eb94e7e382e5d249d11c350060b1b33e35e905
|
|
||||||
size 1641793
|
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 6 09:15:17 UTC 2014 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Update to new upstream release 0.91.103
|
||||||
|
* fix memleak when using REALM option in freetds.conf
|
||||||
|
* ODBC driver did not return parameters as rows
|
||||||
|
- freetds-devel had a dangling symlink due to lack of Require on
|
||||||
|
libtdsodbc0
|
||||||
|
- Shlib packaging guideline: put libct and libsybdb in separate
|
||||||
|
subpackages.
|
||||||
|
- Improve description for the different API libraries.
|
||||||
|
- Do not ignore output from odbcinst or ldconfig.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 7 08:05:54 UTC 2012 - coolo@suse.com
|
Tue Feb 7 08:05:54 UTC 2012 - coolo@suse.com
|
||||||
|
|
||||||
|
119
freetds.spec
119
freetds.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package freetds
|
# spec file for package freetds
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,69 +17,95 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: freetds
|
Name: freetds
|
||||||
Version: 0.91
|
Version: 0.91.103
|
||||||
Release: 0
|
Release: 0
|
||||||
%define dirver 0.91
|
Summary: A free re-implementation of the TDS (Tabular Data Stream) protocol
|
||||||
%define filever 0.91
|
|
||||||
Summary: A free re-implementation of the TDS (Tabular DataStream) protocol
|
|
||||||
License: LGPL-2.1+ and GPL-2.0+
|
License: LGPL-2.1+ and GPL-2.0+
|
||||||
Group: Productivity/Databases/Clients
|
Group: Productivity/Databases/Clients
|
||||||
Url: http://www.freetds.org/
|
Url: http://freetds.org/
|
||||||
Source: %{name}-%{filever}.tar.bz2
|
|
||||||
|
#Git-Web: https://gitorious.org/freetds
|
||||||
|
#Git-Clone: git://gitorious.org/freetds/freetds
|
||||||
|
Source: ftp://ftp.freetds.org/pub/freetds/stable/%name-%version.tar.gz
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: unixODBC
|
|
||||||
BuildRequires: unixODBC-devel
|
BuildRequires: unixODBC-devel
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Requires: glibc-locale
|
Requires: glibc-locale
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
FreeTDS is a project to document and implement the TDS (Tabular DataStream)
|
FreeTDS is a project to document and implement the TDS (Tabular Data Stream)
|
||||||
protocol. TDS is used by Sybase and Microsoft for client to database server
|
protocol. TDS is used by Sybase and Microsoft for client to database server
|
||||||
communications. FreeTDS includes call level interfaces for DB-Lib, CT-Lib,
|
communications. FreeTDS includes call level interfaces for DB-Lib, CT-Lib,
|
||||||
and ODBC.
|
and ODBC.
|
||||||
|
|
||||||
%package -n libfreetds
|
%package config
|
||||||
Summary: A free re-implementation of the TDS (Tabular DataStream) protocol
|
Summary: A free re-implementation of the TDS (Tabular Data Stream) protocol
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: System/Libraries
|
Group: Productivity/Databases/Clients
|
||||||
|
Obsoletes: libfreetds
|
||||||
Provides: %{name} = %{version}
|
Provides: %{name} = %{version}
|
||||||
|
Provides: libfreetds
|
||||||
Obsoletes: %{name} < %{version}
|
Obsoletes: %{name} < %{version}
|
||||||
|
|
||||||
%description -n libfreetds
|
%description config
|
||||||
FreeTDS is a project to document and implement the TDS (Tabular DataStream)
|
FreeTDS is a project to document and implement the TDS (Tabular Data Stream)
|
||||||
protocol. TDS is used by Sybase and Microsoft for client to database server
|
protocol. TDS is used by Sybase and Microsoft for client to database server
|
||||||
communications. FreeTDS includes call level interfaces for DB-Lib, CT-Lib,
|
communications.
|
||||||
and ODBC.
|
|
||||||
|
This subpackage contains default configuration files and documentation for
|
||||||
|
them.
|
||||||
|
|
||||||
%package tools
|
%package tools
|
||||||
Summary: Applications for working with the TDS (Tabular DataStream) protocol
|
Summary: Applications for working with the TDS (Tabular Data Stream) protocol
|
||||||
License: LGPL-2.1+ and GPL-2.0+
|
License: LGPL-2.1+ and GPL-2.0+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Productivity/Databases/Clients
|
||||||
Requires: libfreetds = %version
|
|
||||||
|
|
||||||
%description tools
|
%description tools
|
||||||
FreeTDS is a project to document and implement the TDS (Tabular DataStream)
|
FreeTDS is a project to document and implement the TDS (Tabular Data Stream)
|
||||||
protocol. TDS is used by Sybase and Microsoft for client to database server
|
protocol. TDS is used by Sybase and Microsoft for client to database server
|
||||||
communications. FreeTDS includes call level interfaces for DB-Lib, CT-Lib,
|
communications. FreeTDS includes call level interfaces for DB-Lib, CT-Lib,
|
||||||
and ODBC.
|
and ODBC.
|
||||||
|
|
||||||
This package provides application to allow users to make use of the protocol
|
This package provides application to allow users to make use of the protocol.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Include files needed for development with FreeTDS
|
Summary: Include files needed for development with FreeTDS
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libfreetds = %version
|
Requires: libct4 = %version
|
||||||
|
Requires: libsybdb5 = %version
|
||||||
|
Requires: libtdsodbc0 = %version
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The freetds-devel package contains the files necessary for development with
|
The freetds-devel package contains the files necessary for development with
|
||||||
the FreeTDS libraries.
|
the FreeTDS libraries.
|
||||||
|
|
||||||
|
%package -n libct4
|
||||||
|
Summary: FreeTDS standalone driver with modern API
|
||||||
|
License: LGPL-2.1+
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libct4
|
||||||
|
ct-lib refers to Sybase's second-generation API, which fixes a number
|
||||||
|
of implementation and conceptual gaps in db-lib (libsybdb). libct is
|
||||||
|
not the most complete implementation yet.
|
||||||
|
|
||||||
|
%package -n libsybdb5
|
||||||
|
Summary: FreeTDS standalone driver with classic API
|
||||||
|
License: LGPL-2.1+
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libsybdb5
|
||||||
|
db-lib is the oldest and simplest API, and the only API supported by
|
||||||
|
both vendors, which has some relevance when porting applications that
|
||||||
|
use the vendors' libraries. db-lib was the first API implemented by
|
||||||
|
FreeTDS, and is still the best one supported. Anything that can be
|
||||||
|
done in FreeTDS can be done through db-lib.
|
||||||
|
|
||||||
%package -n libtdsodbc0
|
%package -n libtdsodbc0
|
||||||
Summary: FreeTDS ODBC Driver for unixODBC
|
Summary: FreeTDS ODBC Driver for unixODBC
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
@ -87,19 +113,22 @@ Group: Productivity/Databases/Clients
|
|||||||
Requires: unixODBC >= 2.0.0
|
Requires: unixODBC >= 2.0.0
|
||||||
|
|
||||||
%description -n libtdsodbc0
|
%description -n libtdsodbc0
|
||||||
The freetds-unixodbc package contains ODBC driver build for unixODBC.
|
The ODBC drivers is the FreeTDS's project most recent addition. Its
|
||||||
|
chief advantage is that it makes FreeTDS servers look like other ODBC
|
||||||
|
servers, a big help to people who know ODBC and/or write applications
|
||||||
|
for several kinds of servers.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: User documentation for FreeTDS
|
Summary: User documentation for FreeTDS
|
||||||
License: LGPL-2.1+ and GPL-2.0+
|
License: LGPL-2.1+ and GPL-2.0+
|
||||||
Group: Productivity/Databases/Clients
|
Group: Documentation/HTML
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
The freetds-doc package contains the useguide and reference of FreeTDS
|
The freetds-doc package contains the useguide and reference of FreeTDS
|
||||||
and can be installed even if FreeTDS main package is not installed
|
and can be installed even if FreeTDS main package is not installed
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n %{name}-%{dirver}
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
ODBCDIR=$(odbc_config --prefix || true)
|
ODBCDIR=$(odbc_config --prefix || true)
|
||||||
@ -121,38 +150,37 @@ autoreconf --force --install
|
|||||||
make %{?_smp_flags} RPM_OPT_FLAGS="%{optflags}"
|
make %{?_smp_flags} RPM_OPT_FLAGS="%{optflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
%make_install
|
||||||
mkdir -p %{buildroot}%{_docdir}/freetds/
|
mkdir -p %{buildroot}%{_docdir}/freetds/
|
||||||
mv %{buildroot}%{_datadir}/doc/freetds-*/* %{buildroot}%{_docdir}/freetds/
|
mv %{buildroot}%{_datadir}/doc/freetds-*/* %{buildroot}%{_docdir}/freetds/
|
||||||
rm -rf %{buildroot}%{_docdir}/freetds-* %{buildroot}/%{_datadir}/doc/freetds-*
|
rm -rf %{buildroot}%{_docdir}/freetds-* %{buildroot}/%{_datadir}/doc/freetds-*
|
||||||
%fdupes %{buildroot}/%{_docdir}/freetds/userguide
|
cp AUTHORS "%buildroot/%_defaultdocdir/%name/"
|
||||||
|
%fdupes %buildroot/%_prefix
|
||||||
|
|
||||||
%post -n libfreetds -p /sbin/ldconfig
|
%post -n libct4 -p /sbin/ldconfig
|
||||||
|
%postun -n libct4 -p /sbin/ldconfig
|
||||||
%postun -n libfreetds -p /sbin/ldconfig
|
%post -n libsybdb5 -p /sbin/ldconfig
|
||||||
|
%postun -n libsybdb5 -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libtdsodbc0
|
%post -n libtdsodbc0
|
||||||
echo "[FreeTDS]
|
echo "[FreeTDS]
|
||||||
Description = FreeTDS unixODBC Driver
|
Description = FreeTDS unixODBC Driver
|
||||||
Driver = %{_libdir}/libtdsodbc.so.0
|
Driver = %{_libdir}/libtdsodbc.so.0
|
||||||
Setup = %{_libdir}/libtdsodbc.so.0" | odbcinst -i -d -r > /dev/null 2>&1 || true
|
Setup = %{_libdir}/libtdsodbc.so.0" | odbcinst -i -d -r || true
|
||||||
echo "[SQL Server]
|
echo "[SQL Server]
|
||||||
Description = FreeTDS unixODBC Driver
|
Description = FreeTDS unixODBC Driver
|
||||||
Driver = %{_libdir}/libtdsodbc.so.0
|
Driver = %{_libdir}/libtdsodbc.so.0
|
||||||
Setup = %{_libdir}/libtdsodbc.so.0" | odbcinst -i -d -r > /dev/null 2>&1 || true
|
Setup = %{_libdir}/libtdsodbc.so.0" | odbcinst -i -d -r || true
|
||||||
/sbin/ldconfig 2> /dev/null
|
/sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libtdsodbc0 -p /sbin/ldconfig
|
%postun -n libtdsodbc0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%preun -n libtdsodbc0
|
%preun -n libtdsodbc0
|
||||||
odbcinst -u -d -n 'FreeTDS' > /dev/null 2>&1 || true
|
odbcinst -u -d -n 'FreeTDS'
|
||||||
odbcinst -u -d -n 'SQL Server' > /dev/null 2>&1 || true
|
odbcinst -u -d -n 'SQL Server'
|
||||||
|
|
||||||
%files -n libfreetds
|
%files config
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS BUGS COPYING* ChangeLog INSTALL NEWS README TODO
|
|
||||||
%{_libdir}/libct.so.*
|
|
||||||
%{_libdir}/libsybdb.so.*
|
|
||||||
%config %{_sysconfdir}/*
|
%config %{_sysconfdir}/*
|
||||||
%{_mandir}/man5/*.5.gz
|
%{_mandir}/man5/*.5.gz
|
||||||
|
|
||||||
@ -163,16 +191,25 @@ odbcinst -u -d -n 'SQL Server' > /dev/null 2>&1 || true
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr (-,root,root)
|
%defattr (-,root,root)
|
||||||
|
%doc BUGS COPYING* NEWS README TODO
|
||||||
%exclude %{_libdir}/*.la
|
%exclude %{_libdir}/*.la
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
|
|
||||||
|
%files -n libct4
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%_libdir/libct.so.4*
|
||||||
|
|
||||||
|
%files -n libsybdb5
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%_libdir/libsybdb.so.5*
|
||||||
|
|
||||||
%files -n libtdsodbc0
|
%files -n libtdsodbc0
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libtdsodbc.so.*
|
%{_libdir}/libtdsodbc.so.*
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr (-,root,root)
|
%defattr (-,root,root)
|
||||||
%{_datadir}/doc/packages/freetds/
|
%_defaultdocdir/freetds/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user