Mystery is solved. Actually, doing autoreconf --force did fix the problem. rpm builds OK now. I need next to try building in mock environment, to find all the missing buildrequires.