rpms/libofx/F-9 libofx-version.patch,1.2,1.3 libofx.spec,1.35,1.36

Bill Nottingham notting at fedoraproject.org
Thu Jan 22 17:34:44 UTC 2009


Author: notting

Update of /cvs/extras/rpms/libofx/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25769

Modified Files:
	libofx-version.patch libofx.spec 
Log Message:
Fix versioning some more, using the 0.9.0 code.

This will teach me to touch this code with backports...


libofx-version.patch:

Index: libofx-version.patch
===================================================================
RCS file: /cvs/extras/rpms/libofx/F-9/libofx-version.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- libofx-version.patch	10 Sep 2008 17:55:24 -0000	1.2
+++ libofx-version.patch	22 Jan 2009 17:34:14 -0000	1.3
@@ -1,20 +1,70 @@
---- libofx-0.8.3/lib/ofx_request.cpp	2005/07/12 04:32:04	1.2
-+++ libofx-0.8.3/lib/ofx_request.cpp	2007/10/26 18:46:42	1.3
-@@ -52,7 +52,7 @@
- {
-   return string("OFXHEADER:100\r\n"
-                  "DATA:OFXSGML\r\n"
+--- libofx-0.8.3/lib/ofx_request.cpp	2009-01-22 12:31:08.000000000 -0500
++++ ../devel/libofx-0.9.0/lib/ofx_request.cpp	2009-01-22 12:30:35.000000000 -0500
+@@ -49,19 +49,35 @@
+   return string(buffer);
+ }
+ 
+-string OfxHeader(void)
+-{
+-  return string("OFXHEADER:100\r\n"
+-                 "DATA:OFXSGML\r\n"
 -                 "VERSION:102\r\n"
-+                 "VERSION:103\r\n"
-                  "SECURITY:NONE\r\n"
-                  "ENCODING:USASCII\r\n"
-                  "CHARSET:1252\r\n"
-@@ -77,7 +77,7 @@
+-                 "SECURITY:NONE\r\n"
+-                 "ENCODING:USASCII\r\n"
+-                 "CHARSET:1252\r\n"
+-                 "COMPRESSION:NONE\r\n"
+-                 "OLDFILEUID:NONE\r\n"
+-                 "NEWFILEUID:")
+-                 + time_t_to_ofxdatetime( time(NULL) )
+-                 + string("\r\n\r\n");
++string OfxHeader(const char *hver){
++  if (hver==NULL || hver[0]==0)
++    hver="102";
++
++  if (strcmp(hver, "103")==0)
++    /* TODO: check for differences in version 102 and 103 */
++    return string("OFXHEADER:100\r\n"
++		  "DATA:OFXSGML\r\n"
++		  "VERSION:103\r\n"
++		  "SECURITY:NONE\r\n"
++		  "ENCODING:USASCII\r\n"
++		  "CHARSET:1252\r\n"
++		  "COMPRESSION:NONE\r\n"
++		  "OLDFILEUID:NONE\r\n"
++		  "NEWFILEUID:")
++      + time_t_to_ofxdatetime( time(NULL) )
++      + string("\r\n\r\n");
++  else
++    return string("OFXHEADER:100\r\n"
++		  "DATA:OFXSGML\r\n"
++		  "VERSION:102\r\n"
++		  "SECURITY:NONE\r\n"
++		  "ENCODING:USASCII\r\n"
++		  "CHARSET:1252\r\n"
++		  "COMPRESSION:NONE\r\n"
++		  "OLDFILEUID:NONE\r\n"
++		  "NEWFILEUID:")
++      + time_t_to_ofxdatetime( time(NULL) )
++      + string("\r\n\r\n");
+ }
+ 
+ OfxAggregate OfxRequest::SignOnRequest(void) const
+@@ -77,9 +93,15 @@
+   sonrqTag.Add( "USERPASS", m_login.userpass);
    sonrqTag.Add( "LANGUAGE","ENG");
    sonrqTag.Add( fiTag );
-   sonrqTag.Add( "APPID","QWIN");
+-  sonrqTag.Add( "APPID","QWIN");
 -  sonrqTag.Add( "APPVER","1200");
-+  sonrqTag.Add( "APPVER","1600");
-   
+-  
++  if ( strlen(m_login.appid) > 0 )
++      sonrqTag.Add( "APPID", m_login.appid);
++  else
++      sonrqTag.Add( "APPID","QWIN");
++  if ( strlen(m_login.appver) > 0 )
++    sonrqTag.Add( "APPVER", m_login.appver);
++  else
++    sonrqTag.Add( "APPVER","1400");
++
    OfxAggregate signonmsgTag("SIGNONMSGSRQV1");
    signonmsgTag.Add( sonrqTag );
+ 


Index: libofx.spec
===================================================================
RCS file: /cvs/extras/rpms/libofx/F-9/libofx.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- libofx.spec	10 Sep 2008 17:55:24 -0000	1.35
+++ libofx.spec	22 Jan 2009 17:34:14 -0000	1.36
@@ -3,7 +3,7 @@
 Summary: A library for supporting Open Financial Exchange (OFX)
 Name: libofx
 Version: 0.8.3
-Release: 7
+Release: 8
 Source: http://downloads.sourceforge.net/libofx/%{name}-%{version}.tar.gz
 URL: http://libofx.sourceforge.net/
 Group:	System Environment/Libraries
@@ -99,6 +99,9 @@
 %{_libdir}/*.so
 
 %changelog
+* Thu Jan 22 2009 Bill Nottingham <notting at redhat.com> - 0.8.3-8
+- fix versioning, some more (#481084)
+
 * Wed Sep 10 2008 Bill Nottingham <notting at redhat.com> - 0.8.3-7
 - fix account types patch (#415961, revisited)
 




More information about the fedora-extras-commits mailing list