Now everything should work. Removed root user from Dockerfile and fixed build script with failed to build source RPMs.
Full description from the previous pull request:
Main script doesn't support define variables. I do work on the single spec files but they build differently depends on the defines I set. Mock has an option to use defines so I added them to the script. However I had to change the way the script runs as by passing an environment variable to docker Mock didn't actually recognising them or rather it did but from some reason it was wrapping them around the single quotes what broke the syntax. I had to use the main script as a helper to generate final temporary script which runs Mock and compiles the package.
Now everything should work. Removed root user from Dockerfile and fixed build script with failed to build source RPMs.
Full description from the previous pull request: Main script doesn't support define variables. I do work on the single spec files but they build differently depends on the defines I set. Mock has an option to use defines so I added them to the script. However I had to change the way the script runs as by passing an environment variable to docker Mock didn't actually recognising them or rather it did but from some reason it was wrapping them around the single quotes what broke the syntax. I had to use the main script as a helper to generate final temporary script which runs Mock and compiles the package.