forked from pool/freetds
This commit is contained in:
commit
2c8b9a4a71
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
freetds-0.91rc.tar.bz2
Normal file
3
freetds-0.91rc.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:589913af606a8fa897cb2b3a395ce26ecbeb0a38a1189ee6cec042d0db3fba1e
|
||||
size 5002108
|
82
freetds.changes
Normal file
82
freetds.changes
Normal file
@ -0,0 +1,82 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 15 21:19:35 UTC 2011 - toddrme2178@gmail.com
|
||||
|
||||
- Updated to 0.91 rc2
|
||||
- Various spec file style cleanups
|
||||
- Changed to valid groups (fix for rpmlint warning)
|
||||
- Check for duplicate files (fix for rpmlint warning)
|
||||
- Move %changes contents to existing .changes file
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 15 21:19:35 UTC 2011 - crrodriguez@opensuse.org
|
||||
|
||||
- Update to version 0.9.2
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 13 00:00:00 UTC 2010 Matthias Eckermann <mge@arcor.de>
|
||||
|
||||
- update to 0.83.dev.20100512
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 19 00:00:00 UTC 2010 Matthias Eckermann <mge@arcor.de>
|
||||
|
||||
- update to 0.82.1.dev.20091223
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 8 00:00:00 UTC 2008 Matthias Eckermann <mge@arcor.de>
|
||||
|
||||
- adopted for openSUSE buildservice
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 28 00:00:00 UTC 2007 Frediano Ziglio <freddy77@gmail.com>
|
||||
|
||||
- removed libtdssrv
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 09 00:00:00 UTC 2004 Frediano Ziglio <freddy77@angelfire.com>
|
||||
|
||||
- remove dependency from freetds-unixodbc
|
||||
- fix field name (Copyright instead of License)
|
||||
- updated URL
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 30 21:19:35 UTC 2003 Frediano Ziglio <freddy77@angelfire.com>
|
||||
|
||||
- add reference to doc package
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 5 00:00:00 UTC 2003 Ian Grant <Ian.Grant@cl.cam.ac.uk>
|
||||
|
||||
- 0.61 tweaked. Added libtdssrv libraries and tools in /usr/bin + man pages
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 30 21:19:35 UTC 2002 David Hollis <dhollis@davehollis.com>
|
||||
|
||||
- 0.60 tweaked. Move .a & .la files to -devel package
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 20 00:00:00 UTC 2001 Brian Bruns <camber@ais.org>
|
||||
|
||||
- Modifications for 0.53 ver and removing interfaces file
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 28 00:00:00 UTC 2001 Brian Bruns <camber@ais.org>
|
||||
|
||||
- Modifications for 0.52 ver and ODBC drivers
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 14 00:00:00 UTC 2001 David Hollis <dhollis@emagisoft.com>
|
||||
|
||||
- First stab at RPM for 0.51 ver
|
128
freetds.spec
Normal file
128
freetds.spec
Normal file
@ -0,0 +1,128 @@
|
||||
Name: freetds
|
||||
Version: 0.9.1rc2
|
||||
%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
|
||||
%if 0%{?suse_version}
|
||||
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 devel
|
||||
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
|
||||
|
||||
%description -n libtdsodbc0
|
||||
The freetds-unixodbc package contains ODBC driver build for unixODBC.
|
||||
|
||||
%package doc
|
||||
Group: Productivity/Databases/Clients
|
||||
Summary: User documentation for FreeTDS
|
||||
|
||||
%description doc
|
||||
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`
|
||||
if test ! -r "$ODBCDIR/include/sql.h"; then
|
||||
ODBCDIR=/usr/local
|
||||
fi
|
||||
if test ! -r "$ODBCDIR/include/sql.h"; then
|
||||
ODBCDIR=/usr
|
||||
fi
|
||||
autoreconf --force --install
|
||||
%configure \
|
||||
--prefix=/usr \
|
||||
--with-unixodbc="$ODBCDIR" \
|
||||
--enable-threadsafe \
|
||||
--sysconfdir=%{_sysconfdir} \
|
||||
--with-tdsver=4.2 \
|
||||
--with-docdir=%{_docdir}/freetds \
|
||||
--disable-static \
|
||||
--with-pic
|
||||
make %{?_smp_flags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
||||
|
||||
%install
|
||||
%make_install
|
||||
mkdir -p %{buildroot}%{_docdir}/freetds/
|
||||
mv %{buildroot}/usr/share/doc/freetds-*/* %{buildroot}%{_docdir}/freetds/
|
||||
rm -rf %{buildroot}%{_docdir}/freetds-* %{buildroot}/%{_datadir}/doc/freetds-*
|
||||
%fdupes %{buildroot}/%{_docdir}/freetds/userguide
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%post -n libtdsodbc0
|
||||
echo "[FreeTDS]
|
||||
Description = FreeTDS unixODBC Driver
|
||||
Driver = %{_libdir}/libtdsodbc.so.0
|
||||
Setup = %{_libdir}/libtdsodbc.so.0" | odbcinst -i -d -r > /dev/null 2>&1 || true
|
||||
echo "[SQL Server]
|
||||
Description = FreeTDS unixODBC Driver
|
||||
Driver = %{_libdir}/libtdsodbc.so.0
|
||||
Setup = %{_libdir}/libtdsodbc.so.0" | odbcinst -i -d -r > /dev/null 2>&1 || true
|
||||
/sbin/ldconfig 2> /dev/null
|
||||
|
||||
%postun -n libtdsodbc0
|
||||
/sbin/ldconfig 2> /dev/null
|
||||
|
||||
%preun -n libtdsodbc0
|
||||
odbcinst -u -d -n 'FreeTDS' > /dev/null 2>&1 || true
|
||||
odbcinst -u -d -n 'SQL Server' > /dev/null 2>&1 || true
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%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)
|
||||
%exclude %{_libdir}/*.la
|
||||
%{_libdir}/*.so
|
||||
%{_includedir}/*
|
||||
|
||||
%files -n libtdsodbc0
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libtdsodbc.so.*
|
||||
|
||||
%files doc
|
||||
%defattr (-,root,root)
|
||||
/usr/share/doc/packages/freetds/
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user