Dne 10. 01. 23 v 9:29 Vitaly Zaitsev via devel napsal(a):
On 10/01/2023 08:16, Zbigniew Jędrzejewski-Szmek wrote:
If rpmautospec is used in COPR, and the build is started in a
compatible way, the release field should be the same as in koji.

Steps to reproduce:

1. Create a new COPR project.
2. Add a new COPR package with building from SCM:
 - Type - Git
 - Clone URL: https://src.fedoraproject.org/rpms/protobuf-c.git (you can choose 
any other package with rpmautospec)
 - Commithash: rawhide
 - Spec File: protobuf-c.spec
 - How to build SRPM - rpkg (default choice)
3. Press Save and Rebuild.
4. Wait for the results. Check the final RPM. It will have Release: 1 and an 
empty %changelog.

rpmautospec should work with plain git - I will leave the defending for others.

But in your case you should rather use DistGit instead of SCM method (the first 
row of tabs):

https://docs.pagure.org/copr.copr/user_documentation.html#distgit

And it should start working.

Miroslav
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to