change to modern geminstall method

This commit is contained in:
Mamoru TASAKA 2022-12-01 13:47:16 +09:00
commit 4c80d55c42

View file

@ -35,9 +35,7 @@ BuildArch: noarch
Documentation for %{name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%setup -q -n %{gem_name}-%{version}
%patch1 -p1
%patch2 -p1
%patch0 -p1
@ -45,7 +43,7 @@ cp %{SOURCE1} .
%build
export CONFIGURE_ARGS="--with-cflags='%{optflags} -Werror=implicit-function-declaration'"
gem build %{gem_name}.gemspec
gem build ../%{gem_name}-%{version}.gemspec
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install