- 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 Fri Jul 15 21:19:35 UTC 2011 - toddrme2178@gmail.com

View File

@ -1,57 +1,79 @@
Name: freetds #
Version: 0.9.1rc2 # 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 dirver 0.91.dev.20110715RC2
%define filever 0.91rc %define filever 0.91rc
Release: 10
License: LGPL License: LGPL
URL: http://www.freetds.org/ Summary: A free re-implementation of the TDS (Tabular DataStream) protocol
Group: Productivity/Databases/Clients Url: http://www.freetds.org/
Source: %{name}-%{filever}.tar.bz2 Group: Productivity/Databases/Clients
BuildRoot: %{_tmppath}/%{name}-%(version)-buildroot Source: %{name}-%{filever}.tar.bz2
Summary: A free re-implementation of the TDS (Tabular DataStream) protocol BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: unixODBC-devel unixODBC gcc-c++ fdupes BuildRequires: unixODBC
BuildRequires: unixODBC-devel
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 DataStream)
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 devel %package devel
Group: Development/Libraries/C and C++ Summary: Include files needed for development with FreeTDS
Summary: Include files needed for development with FreeTDS Group: Development/Libraries/C and C++
Requires: freetds = %{version} Requires: freetds = %{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 libtdsodbc0 %package -n libtdsodbc0
Group: Productivity/Databases/Clients Summary: FreeTDS ODBC Driver for unixODBC
Summary: FreeTDS ODBC Driver for unixODBC 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 freetds-unixodbc package contains ODBC driver build for unixODBC.
%package doc %package doc
Group: Productivity/Databases/Clients Summary: User documentation for FreeTDS
Summary: User documentation for FreeTDS Group: Productivity/Databases/Clients
%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 -n %{name}-%{dirver}
%build %build
ODBCDIR=`odbc_config --prefix || true` ODBCDIR=$(odbc_config --prefix || true)
if test ! -r "$ODBCDIR/include/sql.h"; then if test ! -r "$ODBCDIR/include/sql.h"; then
ODBCDIR=/usr/local ODBCDIR=/usr/local
fi fi
@ -68,12 +90,12 @@ autoreconf --force --install
--with-docdir=%{_docdir}/freetds \ --with-docdir=%{_docdir}/freetds \
--disable-static \ --disable-static \
--with-pic --with-pic
make %{?_smp_flags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" make %{?_smp_flags} RPM_OPT_FLAGS="%{optflags}"
%install %install
%make_install %make_install
mkdir -p %{buildroot}%{_docdir}/freetds/ 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-* rm -rf %{buildroot}%{_docdir}/freetds-* %{buildroot}/%{_datadir}/doc/freetds-*
%fdupes %{buildroot}/%{_docdir}/freetds/userguide %fdupes %{buildroot}/%{_docdir}/freetds/userguide
@ -99,20 +121,20 @@ Setup = %{_libdir}/libtdsodbc.so.0" | odbcinst -i -d -r > /dev/null 2>&1 || true
odbcinst -u -d -n 'FreeTDS' > /dev/null 2>&1 || true odbcinst -u -d -n 'FreeTDS' > /dev/null 2>&1 || true
odbcinst -u -d -n 'SQL Server' > /dev/null 2>&1 || true odbcinst -u -d -n 'SQL Server' > /dev/null 2>&1 || true
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS BUGS COPYING* ChangeLog INSTALL NEWS README TODO %doc AUTHORS BUGS COPYING* ChangeLog INSTALL NEWS README TODO
%{_bindir}/* %{_bindir}/*
%{_mandir}/man?/* %{_mandir}/man?/*
%{_libdir}/libct.so.* %{_libdir}/libct.so.*
%{_libdir}/libsybdb.so.* %{_libdir}/libsybdb.so.*
%config %{_sysconfdir}/* %config %{_sysconfdir}/*
%files devel %files devel
%defattr (-,root,root) %defattr (-,root,root)
%exclude %{_libdir}/*.la %exclude %{_libdir}/*.la
%{_libdir}/*.so %{_libdir}/*.so
%{_includedir}/* %{_includedir}/*
@ -123,6 +145,6 @@ rm -rf %{buildroot}
%files doc %files doc
%defattr (-,root,root) %defattr (-,root,root)
/usr/share/doc/packages/freetds/ %{_datadir}/doc/packages/freetds/
%changelog %changelog