-
Notifications
You must be signed in to change notification settings - Fork 148
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
Refs #18539 - Introduce foreman_plugin_files in foreman.macros #11190
base: rpm/develop
Are you sure you want to change the base?
Refs #18539 - Introduce foreman_plugin_files in foreman.macros #11190
Conversation
But this also means we need to adjust every single plugin spec, while just adjusting the existing macros does not require it? |
True, but the idea I have is to and up with less logic in Perhaps it's better to separate that out, but I wanted to see. Friday always has time for a bit of experimentation, right? |
This allows plugins to use %files -f foreman_plugin_files and automatically get the correct files section, based on the foreman_bundlerd_file and foreman_precompile_plugin macros (and their options).
5198019
to
133fd0e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've become convinced this is getting too complex and we should really take it as a bigger step.
@@ -678,6 +678,7 @@ cat > %{buildroot}%{_sysconfdir}/rpm/macros.%{name}-plugin << EOF | |||
# -n<plugin_name> Overrides default of gem_name | |||
%%%{name}_bundlerd_file(n:) \\ | |||
mkdir -p %%{buildroot}%%{%{name}_bundlerd_dir} \\ | |||
echo %%{%{name}_bundlerd_dir}/%%{-n*}%%{!?-n:%%{gem_name}} >> %%%{name}_plugin_files \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: this and other cases need to be
echo %%{%{name}_bundlerd_dir}/%%{-n*}%%{!?-n:%%{gem_name}} >> %%%{name}_plugin_files \\ | |
echo %%{%{name}_bundlerd_dir}/%%{-n*}%%{!?-n:%%{gem_name}} >> %{name}_plugin_files \\ |
This allows plugins to use
%files -f foreman_plugin_files
and automatically get the correct files section, based on theforeman_bundlerd_file
andforeman_precompile_plugin
macros (and their options).