Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builddep similar to dnf #462

Open
ssahani opened this issue Jan 4, 2024 · 5 comments
Open

builddep similar to dnf #462

ssahani opened this issue Jan 4, 2024 · 5 comments

Comments

@ssahani
Copy link
Contributor

ssahani commented Jan 4, 2024

Is your feature request related to a problem? Please describe.

Install whatever is needed to build the given .src.rpm, .nosrc.rpm or .spec file.

Describe the solution you'd like

similar to dnf see https://dnf-plugins-core.readthedocs.io/en/latest/builddep.html

Describe alternatives you've considered

No response

Additional context

No response

@oliverkurth
Copy link
Contributor

This is already implemented: tdnf supports the options --builddeps and --source for the install command, see https://github.com/vmware/tdnf/wiki/Common-command-line-options#--builddeps . It was implemented with this PR: #394 , which also shows usage examples in the description.

It does not work however with *.spec files. Is that what you need?

@ssahani
Copy link
Contributor Author

ssahani commented Jan 4, 2024

Precisily that we require for this while building a spec file .

@oliverkurth
Copy link
Contributor

oliverkurth commented Jan 4, 2024

Have you tried rpmspec (installed along with rpmbuild)? See:

$ rpmspec -q --srpm --requires tdnf.spec
warning: line 51: It's not recommended to have unversioned Obsoletes: Obsoletes:      yum
cmake
curl-devel
expat-devel
gpgme-devel
libsolv-devel >= 0.7.19
openssl-devel >= 1.1.1
popt-devel
python3-devel
python3-setuptools
rpm-devel
systemd
systemd-rpm-macros
zlib-devel

@oliverkurth
Copy link
Contributor

Usage with xargs:

rpmspec -q --srpm --requires tdnf.spec | xargs -d '\n' tdnf -y install

@ssahani
Copy link
Contributor Author

ssahani commented Jan 5, 2024

that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants