If the source package is compiled into a rpm package, how should the relevant dependent packages be obtained?

recently upgraded zlib, because there is no 1.2.11 rpm package, so the rpm package is made through the source package, but there are only two rpm packages, zlib and zlib-debuginfo, but the packages that are closed first are zlib-devel and zlib-static, but not. How should these two packages be made?

Menu