RE: fedpkg: Failed to get repository name from Git url or pushurl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Artur Frenszek-Iwicki <suve@xxxxxxxxxxxxxxxxx>
> Sent: Tuesday, February 14, 2023 6:03 PM
> To: devel@xxxxxxxxxxxxxxxxxxxxxxx
> Subject: [EXTERNAL] Re: fedpkg: Failed to get repository name from Git url 
> or
> pushurl
>
> > Is there another argument to fedpkg?
> fedpkg has a --name argument, you can try using that.

I tried:

> fedpkg --release f37 --name hello mockbuild
sources file doesn't exist. Source files download skipped.
Could not execute mockbuild: Could not query n-v-r of hello: 'utf-8' codec 
can't decode byte 0x93 in position 194: invalid start byte

The spec file has this contents, right from the tutorial, and the tarball does 
exist there.

Version:        2.10
Source0:        https://ftp.gnu.org/gnu/hello/hello-%{version}.tar.gz

>
> Alternatively, if you're just taking your first steps with packaging, you 
> can try:
> $ rpmbuild -bs path/to/your.spec
> $ mock path/to/file-created-by-previous-command.srpm
>
> This will first build an SRPM ("source rpm"), and then build it in mock, 
> which is
> pretty much exactly what "fedpkg mockbuild" does.

My .spec file is the one from the tutorial at

https://docs.fedoraproject.org/en-US/package-maintainers/Packaging_Tutorial_GNU_Hello/

Should that tutorial work?  Is it perhaps obsolete?

My newbie understanding is that fedpkg should get the source from the Source0 
location and then follow the build instructions.  Is that even close?


<<attachment: smime.p7s>>

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux