Re: Fedora 34 Change: Enable spec file preprocessing (System-Wide Change proposal)

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

 



On Fri, 18 Dec 2020 at 15:53, James Szinger <jszinger@xxxxxxxxx> wrote:
>
> On Fri, 18 Dec 2020 03:04:01 +0100
> clime <clime@xxxxxxxxxxxxxxxxx> 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@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
_______________________________________________
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




[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