Build: exclude rc version from LAST_RELEASE and NEXT_RELEASE

I made rpm files.
But their version was 1.0.11 in spite of 1.0.10.