greetings!

I am a filipino citizen living in the philippines who recently got married to a spanish citizen here in the philippines. I read that i have to live one year in spain to get my citizenship. we are planning to get a place in spain. I was wondering if the one year has to be uninterupted meaning i can not leave spain for the whole year even to go on vacation. we plan to live in spain but i need to go to the philippines two months every year to oversee me business in the philippines. would this be possible?