- 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:
parent
2c8b9a4a71
commit
ffc1d81561
@ -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
|
||||
|
||||
|
116
freetds.spec
116
freetds.spec
@ -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 filever 0.91rc
|
||||
Release: 10
|
||||
|
||||
License: LGPL
|
||||
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: unixODBC-devel unixODBC gcc-c++ fdupes
|
||||
License: LGPL
|
||||
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
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: unixODBC
|
||||
BuildRequires: unixODBC-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%if 0%{?suse_version}
|
||||
Requires: glibc-locale
|
||||
Requires: glibc-locale
|
||||
%endif
|
||||
|
||||
%description
|
||||
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
|
||||
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
|
||||
Requires: freetds = %{version}
|
||||
|
||||
%description
|
||||
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
|
||||
communications. FreeTDS includes call level interfaces for DB-Lib, CT-Lib,
|
||||
and ODBC.
|
||||
|
||||
%package devel
|
||||
Summary: Include files needed for development with FreeTDS
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: freetds = %{version}
|
||||
|
||||
%description devel
|
||||
The freetds-devel package contains the files necessary for development with
|
||||
the FreeTDS libraries.
|
||||
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
|
||||
Requires: unixODBC >= 2.0.0
|
||||
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
|
||||
Summary: User documentation for FreeTDS
|
||||
Group: Productivity/Databases/Clients
|
||||
|
||||
%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
|
||||
|
||||
%prep
|
||||
%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"
|
||||
|
||||
%install
|
||||
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
|
||||
|
||||
@ -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 'SQL Server' > /dev/null 2>&1 || true
|
||||
|
||||
%clean
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS BUGS COPYING* ChangeLog INSTALL NEWS README TODO
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS BUGS COPYING* ChangeLog INSTALL NEWS README TODO
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man?/*
|
||||
%{_libdir}/libct.so.*
|
||||
%{_libdir}/libsybdb.so.*
|
||||
%config %{_sysconfdir}/*
|
||||
|
||||
%files devel
|
||||
%defattr (-,root,root)
|
||||
|
||||
%files devel
|
||||
%defattr (-,root,root)
|
||||
%exclude %{_libdir}/*.la
|
||||
%{_libdir}/*.so
|
||||
%{_includedir}/*
|
||||
@ -123,6 +145,6 @@ rm -rf %{buildroot}
|
||||
|
||||
%files doc
|
||||
%defattr (-,root,root)
|
||||
/usr/share/doc/packages/freetds/
|
||||
|
||||
%{_datadir}/doc/packages/freetds/
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user