is it possible to build RPM package from source code?
I hope the rpm package can be built from Koji system .
Is your feature request related to a problem? Please describe. The current RPM format of the upstream software is created by repackaging from the binary package instead of being directly compiled from the source code. As a result, it cannot be directly built into the koji compilation system. Describe the solution you'd like Is it possible for upstream software to provide an RPM package that is directly compiled from the source code? This would enable seamless building and integration within the koji compilation system
Describe alternatives you've considered
Additional context
Sorry, I don't understand the request. We compile the binaries from source and then create an RPM package. We internally have no need to use a different build system to create rpm packages unless there was a very significant benefit in doing so.
Dear Upstream, Thanks for your response! To clarify, we need source-based RPM packages (SRPMs) for integration with Koji, the official build system used in Fedora/RHEL-like distributions. Koji works by: Taking source code (e.g., .tar.gz) and an RPM spec file. Automatically compiling binaries from scratch in an isolated environment. Current binary-repackaged RPMs aren’t compatible with Koji. Could you provide: Source code archives (same as used for binaries). Optional: RPM spec file or build instructions. This allows us to build RPMs natively in our distro’s environment, ensuring compatibility and reproducibility. No need to change your workflow—we’ll handle the Koji integration. Let me know if you need help adapting specs! Best regards, Fanjun Kong
Hi Fanjun (@BH1SCW),
Source tar.gz can be provided. Right now, you can use release/1.3.4 branch to get the latest release source. Build instructions for Docker are on top here: https://github.com/kasmtech/KasmVNC/blob/master/BUILDING.md Would they be sufficient?
Spec for Oracle 9 is here https://github.com/kasmtech/KasmVNC/blob/master/oracle/kasmvncserver9.spec Build dependencies are in the spec, but just in case here's a different take on dependencies https://github.com/kasmtech/KasmVNC/blob/master/builder/dockerfile.oracle_9.build.
Does this help?
Dear Upstream, Thanks for your response! To clarify, we need source-based RPM packages (SRPMs) for integration with Koji, the official build system used in Fedora/RHEL-like distributions. Koji works by: Taking source code (e.g., .tar.gz) and an RPM spec file. Automatically compiling binaries from scratch in an isolated environment. Current binary-repackaged RPMs aren’t compatible with Koji. Could you provide: Source code archives (same as used for binaries). Optional: RPM spec file or build instructions. This allows us to build RPMs natively in our distro’s environment, ensuring compatibility and reproducibility. No need to change your workflow—we’ll handle the Koji integration. Let me know if you need help adapting specs! Best regards, Fanjun Kong
Hi ledestin @ledestin we use koji to build rpm packages rather than build with docker and then repack binaries to rpm package, hope you can understand why we need source rpm
@BH1SCW you can use these instructions to build KasmVNC https://github.com/kasmtech/KasmVNC/blob/master/BUILDING.md. They happen to be docker instructions, but docker isn't necessary to build.