Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:snagview
freetds
freetds.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File freetds.spec of Package freetds
%if %_lib == lib64 %define bits 64 %else %define bits 32 %endif Name: freetds Summary: Implementation of the TDS (Tabular DataStream) protocol Version: 0.82 Release: csa7 Group: System Environment/Libraries License: LGPL-2.0-or-later GPL-2.0-or-later URL: http://www.freetds.org/ Source0: ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-%{version}.tar.gz Source1: freetds-tds_sysdep_public.h BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Requires: unixODBC Requires: /bin/mktemp BuildRequires: libtool BuildRequires: unixODBC-devel, readline-devel BuildRequires: doxygen %if %{defined fedora_version} BuildRequires: docbook-style-dsssl %endif %if %{defined suse_version} BuildRequires: docbook-dsssl-stylesheets %endif BuildRequires: patch Provides: freetds-ds Patch0: freetds-0.64-makefile-doc.patch Patch10: freetds-0.82-odbc-csa2.patch Patch11: freetds-ds-connect_timeout.patch %description FreeTDS is a project to document and implement the TDS (Tabular DataStream) protocol. TDS is used by Sybase(TM) and Microsoft(TM) for client to database server communications. FreeTDS includes call level interfaces for DB-Lib, CT-Lib, and ODBC. %package devel Summary: Header files and development libraries for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the header files and development libraries for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %package doc Summary: Development documentation for %{name} Group: Documentation %description doc This package contains the development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-doc. %prep %setup -q #SDS #patch0 -p1 %patch10 -p1 %patch11 -p1 #EDS # cleanup the initial source sed -i 's/\r//' doc/tds_ssl.html sed -i '1 s,#!.*/perl,#!%{__perl},' samples/*.pl doc/api_status.txt find doc/ samples/ COPYING* -type f -print0 | xargs -0 chmod -x find . -name "*.[ch]" -print0 | xargs -0 chmod -x # cause to rebuild docs rm doc/doc/freetds-%{version}/reference/index.html rm doc/doc/freetds-%{version}/userguide/index.htm %build %configure \ --disable-dependency-tracking \ --disable-static \ --with-tdsver="7.0" \ --with-unixodbc="%{_prefix}" \ --enable-msdblib \ --enable-sybase-compat # avoid any rpath sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make DOCBOOK_DSL="`rpm -ql docbook-style-dsssl | fgrep html/docbook.dsl`" chmod -x samples/*.template %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/*.la mv -f $RPM_BUILD_ROOT%{_includedir}/tds_sysdep_public.h \ $RPM_BUILD_ROOT%{_includedir}/tds_sysdep_public_%{bits}.h install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_includedir}/tds_sysdep_public.h rm -f samples/Makefile* samples/*.in samples/README mv -f samples/unixodbc.freetds.driver.template \ samples/unixodbc.freetds.driver.template-%{bits} rm -rf $RPM_BUILD_ROOT/%{_prefix}/share/doc/%{name}-%{version} %post /sbin/ldconfig tmpf=`/bin/mktemp` cat << EOF > $tmpf [FreeTDS] Description = v0.64 with protocol v8.0 Driver = /usr/lib64/libtdsodbc.so.0 EOF odbcinst -i -d -f $tmpf rm -f $tmpf %preun odbcinst -u -d -n FreeTDS %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root, -) %{_bindir}/* %{_libdir}/*.so.* %config(noreplace) %{_sysconfdir}/*.conf %doc AUTHORS BUGS COPYING* NEWS README TODO %doc doc/*.html doc/doc/freetds-%{version}/userguide %{_mandir}/*/* %files devel %defattr (-, root, root, -) %doc samples %{_libdir}/*.so %{_includedir}/* %files doc %defattr (-, root, root, -) %doc doc/doc/freetds-%{version}/reference %changelog * Tue Mar 28 2008 Suren A. Chilingaryan <csa@dside.dyndns.org> - 9csa3 - Automatically register ODBC driver * Tue Mar 28 2008 Suren A. Chilingaryan <csa@dside.dyndns.org> - 9csa2 - TDS version is changed to 7.0 * Tue Mar 27 2008 Suren A. Chilingaryan <csa@dside.dyndns.org> - 9csa1 - Removal of RHS specific stuff from SPEC * Mon Jan 28 2008 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-9 - drop "Obsoletes:" from -doc subpackage to avoid extra complexity. * Fri Jan 25 2008 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-8 - resolve multiarch conflicts (#341181): - split references to separate freetds-doc subpackage - add arch-specific suffixes for arch-specific filenames in -devel - add wrapper for tds_sysdep_public.h - add readline support (#430196) * Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.64-7 - Rebuild for selinux ppc32 issue. * Thu Aug 16 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - Change License tag to "LGPLv2+ and GPLv2+" * Fri Jun 15 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-6 - bump release to provide update path over Livna * Wed Jun 13 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-5 - spec file cleanups - allowed for Fedora (no patent issues exist), clarification by James K. Lowden <jklowden [AT] freetds.org> - approved for Fedora (review by Hans de Goede <j.w.r.degoede@hhs.nl>) * Wed Aug 2 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-4 - approved for Livna (review by Hans de Goede <j.w.r.degoede@hhs.nl>) * Tue Aug 1 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-4 - add patch to fix sed scripts in the doc/ Makefile - avoid using rpath in binaries - cleanup in samples/ dir * Thu Jul 27 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-3 - rebuild userguide too. - move reference docs to -devel * Mon Jul 24 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-2 - Properly clear extra executable bit in source - Regenerate docs using doxygen * Thu Jul 20 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-1 - Upgrade to 0.64 - Some spec file and distro cleanups * Tue Sep 20 2005 V.C.G.Yeah <VCGYeah@iname.com> - 0.63-1 - Upgrade to 0.63 - spec file cleanups - build static libs conditional * Thu Sep 2 2004 V.C.G.Yeah <VCGYeah@iname.com> - 0.62.4-1Y - Updated to release 0.62.4. - Leave includes in system default include dir (needed for php-mssql build) * Mon May 17 2004 Dag Wieers <dag@wieers.com> - 0.62.3-1 - Updated to release 0.62.3. * Wed Feb 04 2004 Dag Wieers <dag@wieers.com> - 0.61.2-0 - Added --enable-msdblib configure option. (Dean Mumby) - Updated to release 0.61.2. * Fri Jun 13 2003 Dag Wieers <dag@wieers.com> - 0.61-0 - Initial package. (using DAR)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor