An unhappy spouse is often bored and does not know how to manage each day. Spouses become unhappy with their own lives. In the process their partners are affected by their unhappiness.
Try to speak to your spouse about the unhappiness atmosphere created by him/her is a discomfort for you. You can let them know that the two of you are one and anything affecting either of you, needs to be discussed and sorted out. Do this in a loving way so that they don't see it as an attack to them.
The best way to resolve this is to sit with your partner and have an open forum with him. In this way, you can express and show how you feel in the current situation and your partner can also share without hesitation as to the cause of such.
I think the best way to get your spouse out of that unhappy attitude and behaviour is trough communication, i know it will be hard but try to find out what their problem is.
This is very simple. do sex with your wife daily in night, do kiss and hug your wife. develop physical relation perfectly with your wife. you will be able to cope with your unhappy spouse. same formula applies on male and females.
One way to cope with an unhappy spouse is to like them even less and to make it clear that you are not going to help them deal with their unhappiness. Another way of coping with an unhappy spouse is to get involved with activism and/or with groups that support or are fighting for the unhappy spouse's rights.
Sometimes the essence of relationships is to impact on the other person's life. Just like a positive and negative wire makes it possible for the appliance to work. If you have a partner who is most often sad, try and find out the reason, it could be a past event, look for ways to motivate him, tune his mind to something else. Understanding helps.