If you are younger than 70.5, you may be eligible for a spousal contribution if your spouse earns enough to cover your contribution. If your only income is from your pension, not from employment, then you have no earned income and must rely on your spouse to provide the basis for your contribution.
As far as the spouses' contribution, as long as she is under 70.5, she can make a contribution. Whether it is deductible or not depends on your total AGI.
You also must be filing jointly for both of these situations to apply.
Review IRS Pub 590 for details.