def METHOD_NAME(self, spec, prefix):
    """
    Build and install APComp
    """
    with working_dir("spack-build", create=True):
        host_cfg_fname = self.create_host_config(spec, prefix)
        cmake_args = []
        # if we have a static build, we need to avoid any of
        # spack's default cmake settings related to rpaths
        # (see: https://github.com/LLNL/spack/issues/2658)
        if "+shared" in spec:
            cmake_args.extend(std_cmake_args)
        else:
            for arg in std_cmake_args:
                if arg.count("RPATH") == 0:
                    cmake_args.append(arg)
        cmake_args.extend(["-C", host_cfg_fname, "../src"])
        print("Configuring APComp...")
        cmake(*cmake_args)
        print("Building APComp...")
        make()
        print("Installing APComp...")
        make("install")
        # install copy of host config for provenance
        METHOD_NAME(host_cfg_fname, prefix)