How can I make a spawner that summons Items?
You can use this command to /setblock
a spawner at the position where you are currently standing that will summon diamonds:
/setblock ~ ~ ~ minecraft:spawner{SpawnData:{id:"minecraft:item",Item:{id:"minecraft:diamond",Count:1b},Weight:1}}