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

Please provide source package name to dependency generators #1736

Closed
fweimer-rh opened this issue Jun 27, 2021 · 2 comments
Closed

Please provide source package name to dependency generators #1736

fweimer-rh opened this issue Jun 27, 2021 · 2 comments

Comments

@fweimer-rh
Copy link

As far as I can see, rpmfcApply in build/rpmfc.c overwrites %name with the subpackage name. It would be nice to be able to pass the current source package name to a dependency generator as an argument. This will allow the dependency generator not to run for certain source packages (e.g., for the package that provides the generator but would otherwise trigger it during its own package build).

@mikhailnov
Copy link
Contributor

Wow! I thought that name of source package is passed to generators. If the name of subpackage is passed, it is easier to make generators in case that I wanted to.

@pmatilai
Copy link
Member

pmatilai commented Aug 4, 2021

You can get the main/source package information from uppercase macros, eg %{NAME}, %{VERSION} etc.

@pmatilai pmatilai closed this as completed Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants