Description: Fix the path of the *.mtx files in the examples
Author: Rafael Laboissiere <rafael@debian.org>
Forwarded: no
Last-Update: 2016-10-08

--- librsb-1.2.0-rc5.orig/examples/io-spblas.c
+++ librsb-1.2.0-rc5/examples/io-spblas.c
@@ -40,7 +40,7 @@ int main(const int argc, char * const ar
 #else /* RSB_NUMERICAL_TYPE_DOUBLE */
 	blas_sparse_matrix A = blas_invalid_handle;
 	rsb_type_t typecode = RSB_NUMERICAL_TYPE_DOUBLE;
-	rsb_char_t * filename = argc > 1 ? argv[1] : "../pd.mtx";
+	rsb_char_t * filename = argc > 1 ? argv[1] : "pd.mtx";
 
 	printf("Hello, RSB!\n");
 	if((rsb_perror(NULL,
--- librsb-1.2.0-rc5.orig/examples/transpose.c
+++ librsb-1.2.0-rc5/examples/transpose.c
@@ -86,7 +86,7 @@ int main(const int argc, char * const ar
 	rsb_mtx_free(mtxAp);
 
 	/* doing the same after load from file */
-	mtxAp = rsb_file_mtx_load("../pd.mtx",
+	mtxAp = rsb_file_mtx_load("pd.mtx",
 		RSB_FLAG_NOFLAGS,typecode,NULL);
 	if(!mtxAp)
 	{
@@ -102,7 +102,7 @@ int main(const int argc, char * const ar
 
 	/* one can see dimensions in advance, also */
 	if(RSB_ERR_NO_ERROR!=(errval =
-		rsb_file_mtx_get_dims("../pd.mtx",&nrA,&ncA,&nnzA,NULL)))
+		rsb_file_mtx_get_dims("pd.mtx",&nrA,&ncA,&nnzA,NULL)))
 	{
 		if(errval != RSB_ERR_UNSUPPORTED_FEATURE)
 			goto err;
@@ -119,7 +119,7 @@ int main(const int argc, char * const ar
 
 	/* also vectors can be loaded */
 	if(RSB_ERR_NO_ERROR!=(errval = 
-		rsb_file_vec_load("../vf.mtx",typecode,NULL,&vl )))
+		rsb_file_vec_load("vf.mtx",typecode,NULL,&vl )))
 		goto err;
 	/* we expecy vf.mtx to be 6 rows long */
 	if( vl != 6 )
@@ -128,7 +128,7 @@ int main(const int argc, char * const ar
 	}
 
 	if(RSB_ERR_NO_ERROR!=(errval = 
-		rsb_file_vec_load("../vf.mtx",typecode,XV, NULL )))
+		rsb_file_vec_load("vf.mtx",typecode,XV, NULL )))
 		goto err;
 
 	/* matrices can be rendered from file to a pixelmap as well */
@@ -136,7 +136,7 @@ int main(const int argc, char * const ar
 		unsigned char pixmap[3*2*2];
 
 		if(RSB_ERR_NO_ERROR!=(errval =
-		rsb_file_mtx_rndr(pixmap,"../pd.mtx",2,2,2,RSB_MARF_RGB)))
+		rsb_file_mtx_rndr(pixmap,"pd.mtx",2,2,2,RSB_MARF_RGB)))
 			goto err;
 	}
 
