Commit 6b534252 authored by mh's avatar mh
Browse files

fix build

parent fb601be9
Pipeline #9053 passed with stages
in 1 minute and 50 seconds
......@@ -35,11 +35,16 @@ Documentation for %{name}.
%install
mkdir -p %{buildroot}%{gem_dir}
mkdir -p %{buildroot}%{gem_extdir_mri}/lib/%{gem_name}
mkdir -p %{buildroot}%{gem_extdir_mri}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mv %{buildroot}%{gem_libdir}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/lib/%{gem_name}
if [ -d .%{gem_extdir_mri}/%{gem_name} ]; then
mv .%{gem_extdir_mri}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name}
else
mkdir -p %{buildroot}%{gem_extdir_mri}/lib/%{gem_name}
mv %{buildroot}%{gem_libdir}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/lib/%{gem_name}
fi
# Remove the binary extension sources and build leftovers.
rm -rf %{buildroot}%{gem_instdir}/ext
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment