ctron / rpm-builder

Maven RPM builder plugin
https://ctron.github.io/rpm-builder
Eclipse Public License 2.0
56 stars 32 forks source link

CreateRepo detects Source RPM due to missing Source RPM Header #30

Closed DevFlorian closed 6 years ago

DevFlorian commented 6 years ago

rpms doesn't work with zypper or createRepo. Maybe add a default Entry for Source RPM Header like gradle RPM Plugin does.

// need a source package because createrepo will assume your package is a source package without it

https://github.com/nebula-plugins/gradle-ospackage-plugin/blob/master/src/main/groovy/com/netflix/gradle/plugins/rpm/RpmCopyAction.groovy

ctron commented 6 years ago

Which version of the plugin do you use? There was a bug in the 0.9.x versions which made "yum" detect RPMs are source RPMs although they were not. This should be fixes in 0.10.x releases.

From the link you provide I am not really sure what you are pointing to.

Maybe you could also add a bit more context of what is not working. Like something to reproduce.

DevFlorian commented 6 years ago

I'm using 0.10.2 and createrepo to create a repomd.xml. This is my configuration: `true

false default ${project.version} x86_64 vendor LINUX AARCH64` In my repomd.xml it says `src` The gradle Plugin sets something as Source RPM Header to prevent this. if (!sourcePackage) { // need a source package because createrepo will assume your package is a source package without it sourcePackage = builder.defaultSourcePackage }
ctron commented 6 years ago

Ok I see … thanks for the update. I guess that could be a quick fix.

ctron commented 6 years ago

This should be fixed in version 1.0.0 which I just released. Please re-open otherwise.