Epidemic spreading in temporal and adaptive networks with static backbone