On Fri, 18 Dec 2020 at 15:53, James Szinger <jszin...@gmail.com> wrote:
>
> On Fri, 18 Dec 2020 03:04:01 +0100
> clime <cl...@fedoraproject.org> wrote:
>
> > I wouldn't call it "deprecating rpmbuild". That's certainly not at all
> > my intention.
> >
> > As a side-point, I think the cases where bare rpmbuild is used to
> > build an rpm/srpm from a dist-git repo are rather limited because you
> > probably need to first download sources from lookaside cache so you
> > probably need fedpkg/rpkg/centpkg/rfpkg or a similar dedicated tool.
> > These tools then offer the `srpm` and `local` commands so It would
> > make sense to rather use these commands or mock for subsequent
> > srpm/rpm building.
>
> No.  One can also download the sources from upstream using spectool or
> similar, even wget or curl.  My local work flow is typically get or
> create spec file and patches, spectool -g, rpmbuild -bs, mock.
>
> I could not find simple instructions for the *pkg tools the last time
> I looked.

It should be just `fedpkg srpm` for a Fedora package. Or `rpkg srpm`
with rpkg-util tool.

spectool could contain native support for preprocessing as well, I
will look at opening a PR for it.

I think with rpmbuild something like: `rpmbuild --define "%_sourcedir
$PWD" -bs file.spec` is needed, right?

There is also yum/dnf builddep command that I wanted to look at.

>
> Jim
> _______________________________________________
> 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
_______________________________________________
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

Reply via email to