On Thursday, January 9, 2020 4:17:51 PM CET Richard Shaw wrote:
I just had a thought and wondered if it were possible.
I have an upstream that posts alpha and beta releases to a specific URL.
What I'd like copr (or something) to do is:
1. Monitor those URLs so it knows when a new alpha is pushed
This part would be complicated on Copr side. We shouldn't be responsible
for polling (perhaps DoS'ing) external urls. If anything, we'd need to
let others to do this job for us carefully (e.g. anitya).
But copr is able to react on webhook call, which can be done by external
project (e.g. can be called by github - on tag event - automatically; from
upstream repo, if you tell upstream to do so):
Go to your project -> Settings -> Integrations -> Custom webhook
2. Pull the spec file from fedora rawhide (master)
3. Run rpmdev-bumpspec -n <version> -c "Update to <version>."
You probably want custom script, so go to
-> your project -> Packages -> (create one if you don't have it yet) ->
-> [Edit] package -> Custom method
There you can specify shell script which will be executed to obtain
SRC.RPM sources (from whatever destination you want):
So all this you should be able to do manually.
4. Create a build in my COPR project using the new source.
This is done automatically then.