On Mon, May 14, 2018 at 1:12 PM, Miro Hrončok <mhroncok@redhat.com> wrote:
On 14.5.2018 12:35, Michal Novotny wrote:
    Now to my problem: some packages update rawhide only and the
    fedpkg+rpkg integration works like a charm. Other packages however
    keep all the branches synced and they use the %{fedora} variable to
    determine different behavior. I'd like to tell copr: Set fedora to
    29 even if building for older Fedoras. Can I do that?


Thank you for the positive feedback. I need to admit I don't exactly understand the use-case. When a package keeps the branches synced, wouldn't it help to build e.g. for rawhide branch only and ignore incoming push events for all the other branches?

The use case for example:

fedpkg switches to python3 in rawhide only with a conditional (if fedora > 28).

I want to build a fedpkg package for f28 that uses python3.

Currently that would require:

 1. fedpkg clone fedpkg && cd fedpkg
 2. change the conditional in spec
 3. fedpkg srpm
 4. copr upload and build
 5. script the above or manually do it with every rawhide update

What I'd like to do:

 1. add fedpkg package with fedmsg+rpkg integration
 2. set fedora to 29 via a configuration dialog
 3. keep it running automatically

Can we cover it just by providing "with" and "without" fields for chroots/builds which would then basically translate to --with/--without options for mock, rpkg, and similar tools?
 



--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
copr-devel mailing list -- copr-devel@lists.fedorahosted.org
To unsubscribe send an email to copr-devel-leave@lists.fedorahosted.org