rpms/freetds/devel freetds-0.64-makefile-doc.patch, NONE, 1.1 freetds.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Dmitry Butskoy (buc) fedora-extras-commits at redhat.com
Wed Jun 13 15:35:30 UTC 2007


Author: buc

Update of /cvs/extras/rpms/freetds/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28397/devel

Modified Files:
	.cvsignore sources 
Added Files:
	freetds-0.64-makefile-doc.patch freetds.spec 
Log Message:


freetds-0.64-makefile-doc.patch:

--- NEW FILE freetds-0.64-makefile-doc.patch ---
diff -Nrbu freetds-0.64/doc/Makefile.am freetds-0.64-OK/doc/Makefile.am
--- freetds-0.64/doc/Makefile.am	2006-02-25 00:14:19.000000000 +0300
+++ freetds-0.64-OK/doc/Makefile.am	2006-08-01 16:31:51.000000000 +0400
@@ -193,10 +193,10 @@
 		</row></thead> \
 		<tbody>' \
 			>> .dblib.api
-	grep '^dblib' $(srcdir)/api_status.txt | sed -e' s!^dblib[	]!<row><entry>!; \
-		s![	][	]*!</> <entry>!g; \
-		s!$$!</></row>!; \
-	      ' >> .dblib.api
+	grep '^dblib' $(srcdir)/api_status.txt | \
+		sed -e 's!^dblib[	]!<row><entry>!' \
+		    -e 's![	][	]*!</> <entry>!g' \
+		    -e 's!$$!</></row>!' >> .dblib.api
 	echo '</tbody></tgroup></table>' >> .dblib.api
 	mv .dblib.api $@
 
@@ -212,10 +212,11 @@
 		</row></thead> \
 		<tbody>' \
 			>> .ctlib.api
-	grep '^ctlib' $(srcdir)/api_status.txt | sed -e' s!^ctlib[	]!<row><entry>!; \
-		s![	]!</> <entry>!g; \
-		s!$$!</></row>!; \
-	      ' >> .ctlib.api
+	grep '^ctlib' $(srcdir)/api_status.txt | \
+		sed -e 's!^ctlib[	]!<row><entry>!' \
+		    -e 's![	]!</> <entry>!g' \
+		    -e 's!$$!</></row>!' \
+			>> .ctlib.api
 	echo '</tbody></tgroup></table>' \
 			>> .ctlib.api
 	mv .ctlib.api $@
@@ -236,11 +237,12 @@
 # The mean RE below (with "ulink" in it) forms a URL to Microsoft's reference page
 # for the function.  It assumes a word starting with "SQL" is an ODBC function. 
 # Let's hope they don't change their site too often.  
-	grep '^odbc' $(srcdir)/api_status.txt | sed -e' s!^odbc[	]!<row><entry>!; \
-		s![	][	]*!</> <entry>!g; \
-		s!\(SQL[[:alpha:]]*\)!<ulink url="$(MSDN_ODBC)\1.asp">\1</ulink>!g; \
-		s!$$!</></row>!; \
-	      ' >> .odbc.api
+	grep '^odbc' $(srcdir)/api_status.txt | \
+		sed -e 's!^odbc[	]!<row><entry>!' \
+		    -e 's![	][	]*!</> <entry>!g' \
+		    -e 's!\(SQL[[:alpha:]]*\)!<ulink url="$(MSDN_ODBC)\1.asp">\1</ulink>!g' \
+		    -e 's!$$!</></row>!' \
+			>> .odbc.api
 	echo '</tbody></tgroup></table>' \
 			>> .odbc.api
 	mv .odbc.api $@
diff -Nrbu freetds-0.64/doc/Makefile.in freetds-0.64-OK/doc/Makefile.in
--- freetds-0.64/doc/Makefile.in	2006-07-01 19:10:33.000000000 +0400
+++ freetds-0.64-OK/doc/Makefile.in	2006-08-01 16:35:04.000000000 +0400
@@ -607,10 +607,10 @@
 		</row></thead> \
 		<tbody>' \
 			>> .dblib.api
-	grep '^dblib' $(srcdir)/api_status.txt | sed -e' s!^dblib[	]!<row><entry>!; \
-		s![	][	]*!</> <entry>!g; \
-		s!$$!</></row>!; \
-	      ' >> .dblib.api
+	grep '^dblib' $(srcdir)/api_status.txt | \
+		sed -e 's!^dblib[	]!<row><entry>!' \
+		    -e 's![	][	]*!</> <entry>!g' \
+		    -e 's!$$!</></row>!' >> .dblib.api
 	echo '</tbody></tgroup></table>' >> .dblib.api
 	mv .dblib.api $@
 
@@ -626,10 +626,11 @@
 		</row></thead> \
 		<tbody>' \
 			>> .ctlib.api
-	grep '^ctlib' $(srcdir)/api_status.txt | sed -e' s!^ctlib[	]!<row><entry>!; \
-		s![	]!</> <entry>!g; \
-		s!$$!</></row>!; \
-	      ' >> .ctlib.api
+	grep '^ctlib' $(srcdir)/api_status.txt | \
+		sed -e 's!^ctlib[	]!<row><entry>!' \
+		    -e 's![	]!</> <entry>!g' \
+		    -e 's!$$!</></row>!' \
+			>> .ctlib.api
 	echo '</tbody></tgroup></table>' \
 			>> .ctlib.api
 	mv .ctlib.api $@
@@ -648,11 +649,12 @@
 # The mean RE below (with "ulink" in it) forms a URL to Microsoft's reference page
 # for the function.  It assumes a word starting with "SQL" is an ODBC function. 
 # Let's hope they don't change their site too often.  
-	grep '^odbc' $(srcdir)/api_status.txt | sed -e' s!^odbc[	]!<row><entry>!; \
-		s![	][	]*!</> <entry>!g; \
-		s!\(SQL[[:alpha:]]*\)!<ulink url="$(MSDN_ODBC)\1.asp">\1</ulink>!g; \
-		s!$$!</></row>!; \
-	      ' >> .odbc.api
+	grep '^odbc' $(srcdir)/api_status.txt | \
+		sed -e 's!^odbc[	]!<row><entry>!' \
+		    -e 's![	][	]*!</> <entry>!g' \
+		    -e 's!\(SQL[[:alpha:]]*\)!<ulink url="$(MSDN_ODBC)\1.asp">\1</ulink>!g' \
+		    -e 's!$$!</></row>!' \
+			>> .odbc.api
 	echo '</tbody></tgroup></table>' \
 			>> .odbc.api
 	mv .odbc.api $@


--- NEW FILE freetds.spec ---
Name: freetds
Summary: Implementation of the TDS (Tabular DataStream) protocol
Version: 0.64
Release: 5%{?dist}
Group: System Environment/Libraries
License: LGPL 
URL: http://www.freetds.org/
Source:	ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: unixODBC-devel
BuildRequires: doxygen, docbook-style-dsssl
Patch0: freetds-0.64-makefile-doc.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, libraries and development documentation for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the header files and development documentation
for %{name}. If you like to develop programs using %{name}, you will need
to install %{name}-devel.


%prep 
%setup -q
%patch0 -p1

# 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 \
	%{!?_with_static: --disable-static} \
	--with-tdsver="4.2" \
	--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 %{?_smp_mflags} 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

rm -f samples/Makefile* samples/*.in samples/README


%post -p /sbin/ldconfig

%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 doc/doc/freetds-%{version}/reference
%{?_with_static: %{_libdir}/*.a}
%{_libdir}/*.so
%{_includedir}/*
 

%changelog 
* Wed Jun 13 2007 Dmitry Butskoy <Dmitry at 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 at hhs.nl>)

* Wed Aug  2 2006 Dmitry Butskoy <Dmitry at Butskoy.name> - 0.64-4
- approved for Livna (review by Hans de Goede <j.w.r.degoede at hhs.nl>)

* Tue Aug  1 2006 Dmitry Butskoy <Dmitry at 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 at Butskoy.name> - 0.64-3
- rebuild userguide too.
- move reference docs to -devel

* Mon Jul 24 2006 Dmitry Butskoy <Dmitry at Butskoy.name> - 0.64-2
- Properly clear extra executable bit in source
- Regenerate docs using doxygen

* Thu Jul 20 2006 Dmitry Butskoy <Dmitry at Butskoy.name> - 0.64-1
- Upgrade to 0.64
- Some spec file and distro cleanups

* Tue Sep 20 2005 V.C.G.Yeah <VCGYeah at 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 at 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 at wieers.com> - 0.62.3-1
- Updated to release 0.62.3.

* Wed Feb 04 2004 Dag Wieers <dag at 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 at wieers.com> - 0.61-0
- Initial package. (using DAR)


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/freetds/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	13 Jun 2007 15:13:28 -0000	1.1
+++ .cvsignore	13 Jun 2007 15:34:56 -0000	1.2
@@ -0,0 +1 @@
+freetds-0.64.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/freetds/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	13 Jun 2007 15:13:28 -0000	1.1
+++ sources	13 Jun 2007 15:34:56 -0000	1.2
@@ -0,0 +1 @@
+ecfee5d6c96932172a1f29fb215c9d23  freetds-0.64.tar.gz




More information about the fedora-extras-commits mailing list