rpms/igraph/devel igraph-cstdlib.patch,1.1,1.2 igraph.spec,1.5,1.6

Neal Becker (nbecker) fedora-extras-commits at redhat.com
Sat Feb 16 12:14:28 UTC 2008


Author: nbecker

Update of /cvs/pkgs/rpms/igraph/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10660

Modified Files:
	igraph-cstdlib.patch igraph.spec 
Log Message:
Still need patch1


igraph-cstdlib.patch:

Index: igraph-cstdlib.patch
===================================================================
RCS file: /cvs/pkgs/rpms/igraph/devel/igraph-cstdlib.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- igraph-cstdlib.patch	13 Feb 2008 20:25:01 -0000	1.1
+++ igraph-cstdlib.patch	16 Feb 2008 12:14:18 -0000	1.2
@@ -1,40 +1,10 @@
-diff --git a/src/walktrap_graph.cpp b/src/walktrap_graph.cpp
---- a/src/walktrap_graph.cpp
-+++ b/src/walktrap_graph.cpp
-@@ -28,6 +28,9 @@
- #include <iostream>
+--- src/walktrap_graph.cpp~	2008-02-12 18:03:52.000000000 -0500
++++ src/walktrap_graph.cpp	2008-02-16 07:11:49.000000000 -0500
+@@ -29,6 +29,7 @@
  #include <fstream>
  #include <sstream>
-+#include <cstdlib>		// exit
-+#include <cstring>		// strlen
-+#include <algorithm>		// sort
+ #include <algorithm>
++#include <cstdlib>		// strlen
  #include "walktrap_graph.h"
  
  using namespace std;
-@@ -144,7 +147,7 @@
-   for(int i = 0; i < G.nb_vertices; i++) {
-     if(G.vertices[i].degree == 0) {
-       cerr << "error : degree of vertex " << i << " is 0" << endl;
--      exit(0);
-+      std::exit(0);
-     }
-     G.vertices[i].edges = new Edge[G.vertices[i].degree + 1];
-     G.vertices[i].edges[0].neighbor = i;
-@@ -163,7 +166,7 @@
-   }  
-   
-   for(int i = 0; i < G.nb_vertices; i++)
--    sort(G.vertices[i].edges, G.vertices[i].edges+G.vertices[i].degree);
-+    std::sort(G.vertices[i].edges, G.vertices[i].edges+G.vertices[i].degree);
- 
-   for(int i = 0; i < G.nb_vertices; i++) {  // merge multi edges
-     int a = 0;
-@@ -186,7 +189,7 @@
-   if(index != 0) {
-     m += long(nb_vertices)*sizeof(char*);
-     for(int i = 0; i < nb_vertices; i++)
--      m += strlen(index[i]) + 1;
-+      m += std::strlen(index[i]) + 1;
-   }
-   return m;
- }


Index: igraph.spec
===================================================================
RCS file: /cvs/pkgs/rpms/igraph/devel/igraph.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- igraph.spec	16 Feb 2008 03:31:24 -0000	1.5
+++ igraph.spec	16 Feb 2008 12:14:18 -0000	1.6
@@ -1,13 +1,13 @@
 Name:		igraph
 Version:	0.5
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Library for creating and manipulating graphs
 
 Group:		System Environment/Libraries
 License:	GPLv2+
 URL:		http://cneurocvs.rmki.kfki.hu/igraph
 Source0:	http://igraph.googlecode.com/files/%{name}-%{version}.tar.gz
-#Patch1:		igraph-cstdlib.patch
+Patch1:		igraph-cstdlib.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 #BuildRequires:	gcc
@@ -34,7 +34,7 @@
 
 %prep
 %setup -q
-#%patch1 -p1
+%patch1 -p1
 
 %build
 %configure
@@ -85,6 +85,9 @@
 %doc examples
 
 %changelog
+* Sat Feb 16 2008 Neal Becker <ndbecker2 at gmail.com> - 0.5-2
+- Still need patch1
+
 * Fri Feb 15 2008 Neal Becker <ndbecker2 at gmail.com> - 0.5-1
 - update to 0.5
 




More information about the fedora-extras-commits mailing list