Accepting request 330591 from devel:libraries:c_c++

1

OBS-URL: https://build.opensuse.org/request/show/330591
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/freetds?expand=0&rev=15
This commit is contained in:
Dominique Leuenberger 2015-09-17 07:18:21 +00:00 committed by Git OBS Bridge
commit 9875b7104d
4 changed files with 35 additions and 15 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be4f04ee57328c32e7e7cd7e2e1483e535071cec6101e46b9dd15b857c5078ed
size 2374916

3
freetds-0.95.8.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e31eec13907e0bb5e8fb86237b59f4b3cb44d6a91652a1bc8b0d86aaa0ba5ab5
size 4516120

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Sep 11 08:35:10 UTC 2015 - mpluskal@suse.com
- Update to 0.95.8
- See NEWS for complete list of changes
- Update dependencies
- Enable gnutls support
-------------------------------------------------------------------
Sat Apr 11 08:22:48 UTC 2015 - tchvatal@suse.com

View File

@ -17,7 +17,7 @@
Name: freetds
Version: 0.91.112
Version: 0.95.8
Release: 0
Summary: A free re-implementation of the TDS (Tabular Data Stream) protocol
License: LGPL-2.1+ and GPL-2.0+
@ -27,9 +27,15 @@ Source: ftp://ftp.freetds.org/pub/freetds/stable/%{name}-%{version}.tar.
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: readline-devel
BuildRequires: unixODBC-devel
Requires: glibc-locale
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1310
BuildRequires: libgcrypt-devel
BuildRequires: libgnutls-devel
%endif
%description
FreeTDS is a project to document and implement the TDS (Tabular Data Stream)
@ -127,23 +133,29 @@ and can be installed even if FreeTDS main package is not installed
%build
%configure \
--with-unixodbc=%{_prefix} \
--enable-threadsafe \
--sysconfdir=%{_sysconfdir} \
--with-tdsver=4.2 \
--disable-static \
--with-pic
--with-unixodbc=%{_prefix} \
--enable-threadsafe \
--sysconfdir=%{_sysconfdir} \
--with-tdsver=4.2 \
--disable-static \
%if 0%{?suse_version} >= 1310
--with-gnutls \
%endif
--with-pic
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}"
%install
%make_install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
# Fix docu location
mkdir -p %{buildroot}%{_docdir}/freetds/
mv %{buildroot}%{_datadir}/doc/freetds-*/* %{buildroot}%{_docdir}/freetds/
rm -rf %{buildroot}%{_docdir}/freetds-* %{buildroot}/%{_datadir}/doc/freetds-*
cp AUTHORS "%{buildroot}/%{_defaultdocdir}/%{name}/"
install -d %{buildroot}%{_docdir}/freetds
mv %{buildroot}%{_datadir}/doc/freetds/* %{buildroot}%{_docdir}/freetds/
rm -rf %{buildroot}%{_docdir}/freetds* %{buildroot}%{_datadir}/doc/freetds-*
install -D AUTHORS %{buildroot}%{_defaultdocdir}/%{name}/AUTHORS
# Fix permissions
find %{buildroot}%{_datadir} -type f -print0 | xargs -0 chmod -x
find %{buildroot}%{_sysconfdir} -type f -print0 | xargs -0 chmod -x
%fdupes %{buildroot}/%{_prefix}