modified configure to generate pkgconfig and rpmbuild specs from templates