On 08/29/2017 01:48 PM, Robert Munteanu wrote: > Hi, > > For a rubygem-wdm [1] we need to remove some .c and .h files included > in the original gem file. I tried to remove them using the > post_install section of the gem2rpm.yml file: > > post_install: |- > rm -rf %{buildroot}%{gem_base}/gems/%{mod_full_name}/ext > > However, that works only for 1 version of ruby, and since TW contains > both 2.4 and 2.5 only removes the 2.4 version. > > How can I remove the ext directory for all ruby versions the gem is > packaged for?
rubygem-highline has this: rm -rf %{buildroot}%{_libdir}/ruby/gems/*/gems/%{mod_name}-%{version}/example Greetings, Stephan -- To unsubscribe, e-mail: opensuse-ruby+unsubscr...@opensuse.org To contact the owner, e-mail: opensuse-ruby+ow...@opensuse.org