From d3e24e389a4faa96878059fc7b3f29ca61627eb6 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 17 May 2016 15:21:13 -0500 Subject: [PATCH] Restore spec compatibility with EPEL. --- rubygem-ffi.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rubygem-ffi.spec b/rubygem-ffi.spec index 669eb23..2a742e5 100644 --- a/rubygem-ffi.spec +++ b/rubygem-ffi.spec @@ -2,7 +2,7 @@ Name: rubygem-%{gem_name} Version: 1.9.10 -Release: 1%{?dist} +Release: 2%{?dist} Summary: FFI Extensions for Ruby Group: Development/Languages @@ -55,6 +55,7 @@ mkdir -p %{buildroot}%{gem_dir} cp -pa .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ +%if 0%{?fedora} || 0%{?rhel} > 7 mkdir -p %{buildroot}%{gem_extdir_mri} cp -a ./%{gem_extdir_mri}/* %{buildroot}%{gem_extdir_mri}/ @@ -62,6 +63,12 @@ pushd %{buildroot} rm -f .%{gem_extdir_mri}/{gem_make.out,mkmf.log} popd +%else +mkdir -p %{buildroot}%{gem_extdir_mri}/lib +mv %{buildroot}%{gem_instdir}/lib/ffi_c.so %{buildroot}%{gem_extdir_mri}/lib/ + +%endif + # Remove the binary extension sources and build leftovers. rm -rf %{buildroot}%{gem_instdir}/ext @@ -102,6 +109,9 @@ popd %changelog +* Thu Dec 10 2015 Yaakov Selkowitz - 1.9.10-2 +- Restore spec compatibility with EPEL. + * Sat Oct 3 2015 Mamoru TASAKA - 1.9.10-1 - 1.9.10