If you want to look into our package building process here are our sources: https://build.opensuse.org/package/show/X11:XOrg/xorgproto