First, prepare the roasted pumpkin cubes with oregano. Recipe here. Put the frozen spinach in a saucepan. Pour a little water over it and add a teaspoon of salt. Bring to the boil and cook until tender. Then drain.
Dice the ham. Peel and finely dice the onion. Peel and slice the garlic. Place these ingredients near the stove so that they are close at hand and ready to be added to the pan.
Take a high-sided frying pan and pour in the olive oil. Add the onion and garlic and fry until golden brown. Add the ham and fry it as well. Add the flour. Stir and fry. Pour in the water and stir immediately. Allow to thicken slightly, then pour in the cream. Stir immediately.
Add the spinach and pumpkin cubes. Season with salt, pepper, and nutmeg. Stir and it will be ready in a few minutes.
Cook durum spaghetti in salted water.