Modules with Copr packages
dev copr fedora modularity
In the last article, we have talked about Fedora modularity project and how to submit a module to be built in Copr. If you choose to write a modulemd file manually, you may be puzzled on how to have a package which has been built in Copr as the part of the module. This is exactly what this article is going to be about.
Let's assume that you have your modulemd yaml file created and you want to add a package from Copr into it. We are going to modify the
components section, which should so far look like this
components: rpms: ed: rationale: A build dependency of mksh. ref: master mksh: rationale: The main package of the module. buildorder: 1 ref: master
We can append a Copr package like this
hello: rationale: An example package built in Copr ref: 9d1ced1 repository: 'http://copr-dist-git.fedorainfracloud.org/git/frostyx/hello/hello.git'
wait, wait, wait ... but, where can I find the
repository for my package? Follow this short image tutorial.
Now you can see the Copr dist git. Use the first part of the URL as the
repository, just replace
Simple as that. Go and try :-)