- ran format_spec source service

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/freetds?expand=0&rev=5
This commit is contained in:
Stephan Kulow 2011-08-04 09:43:40 +00:00 committed by Git OBS Bridge
parent 2c8b9a4a71
commit ffc1d81561
2 changed files with 74 additions and 47 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 4 09:43:30 UTC 2011 - coolo@novell.com
- ran format_spec source service
-------------------------------------------------------------------
Fri Jul 15 21:19:35 UTC 2011 - toddrme2178@gmail.com

View File

@ -1,17 +1,39 @@
#
# spec file for package freetds
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: freetds
Version: 0.9.1rc2
Release: 10
%define dirver 0.91.dev.20110715RC2
%define filever 0.91rc
Release: 10
License: LGPL
URL: http://www.freetds.org/
Summary: A free re-implementation of the TDS (Tabular DataStream) protocol
Url: http://www.freetds.org/
Group: Productivity/Databases/Clients
Source: %{name}-%{filever}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%(version)-buildroot
Summary: A free re-implementation of the TDS (Tabular DataStream) protocol
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: unixODBC
BuildRequires: unixODBC-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: unixODBC-devel unixODBC gcc-c++ fdupes
%if 0%{?suse_version}
Requires: glibc-locale
%endif
@ -23,8 +45,8 @@ communications. FreeTDS includes call level interfaces for DB-Lib, CT-Lib,
and ODBC.
%package devel
Group: Development/Libraries/C and C++
Summary: Include files needed for development with FreeTDS
Group: Development/Libraries/C and C++
Requires: freetds = %{version}
%description devel
@ -32,16 +54,16 @@ The freetds-devel package contains the files necessary for development with
the FreeTDS libraries.
%package -n libtdsodbc0
Group: Productivity/Databases/Clients
Summary: FreeTDS ODBC Driver for unixODBC
Group: Productivity/Databases/Clients
Requires: unixODBC >= 2.0.0
%description -n libtdsodbc0
The freetds-unixodbc package contains ODBC driver build for unixODBC.
%package doc
Group: Productivity/Databases/Clients
Summary: User documentation for FreeTDS
Group: Productivity/Databases/Clients
%description doc
The freetds-doc package contains the useguide and reference of FreeTDS
@ -51,7 +73,7 @@ and can be installed even if FreeTDS main package is not installed
%setup -n %{name}-%{dirver}
%build
ODBCDIR=`odbc_config --prefix || true`
ODBCDIR=$(odbc_config --prefix || true)
if test ! -r "$ODBCDIR/include/sql.h"; then
ODBCDIR=/usr/local
fi
@ -68,12 +90,12 @@ autoreconf --force --install
--with-docdir=%{_docdir}/freetds \
--disable-static \
--with-pic
make %{?_smp_flags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
make %{?_smp_flags} RPM_OPT_FLAGS="%{optflags}"
%install
%make_install
mkdir -p %{buildroot}%{_docdir}/freetds/
mv %{buildroot}/usr/share/doc/freetds-*/* %{buildroot}%{_docdir}/freetds/
mv %{buildroot}%{_datadir}/doc/freetds-*/* %{buildroot}%{_docdir}/freetds/
rm -rf %{buildroot}%{_docdir}/freetds-* %{buildroot}/%{_datadir}/doc/freetds-*
%fdupes %{buildroot}/%{_docdir}/freetds/userguide
@ -123,6 +145,6 @@ rm -rf %{buildroot}
%files doc
%defattr (-,root,root)
/usr/share/doc/packages/freetds/
%{_datadir}/doc/packages/freetds/
%changelog