Not able to find the package in the directory

Try this:

// Similar to package example shown below
`include "spi_test_lib_pkg_file_includes.sv"

module tb;

   // All package imports
   import uvm_pkg::*;
   import spi_test_lib_pkg::*;
...
...

Example (uvm_pkg.sv) of how a package looks:

`ifndef UVM_PKG_SV
`define UVM_PKG_SV

`include "uvm_macros.svh"

package uvm_pkg;

  `include "dpi/uvm_dpi.svh"
  `include "base/uvm_base.svh"
  `include "tlm1/uvm_tlm.svh"
  `include "comps/uvm_comps.svh"
  `include "seq/uvm_seq.svh"
  `include "tlm2/uvm_tlm2.svh"
  `include "reg/uvm_reg_model.svh"

endpackage

`endif