Restore spec compatibility with EPEL.
This commit is contained in:
parent
a41b95731e
commit
d3e24e389a
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.9.10
|
Version: 1.9.10
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: FFI Extensions for Ruby
|
Summary: FFI Extensions for Ruby
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
|
|
||||||
@ -55,6 +55,7 @@ mkdir -p %{buildroot}%{gem_dir}
|
|||||||
cp -pa .%{gem_dir}/* \
|
cp -pa .%{gem_dir}/* \
|
||||||
%{buildroot}%{gem_dir}/
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
mkdir -p %{buildroot}%{gem_extdir_mri}
|
mkdir -p %{buildroot}%{gem_extdir_mri}
|
||||||
cp -a ./%{gem_extdir_mri}/* %{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}
|
rm -f .%{gem_extdir_mri}/{gem_make.out,mkmf.log}
|
||||||
popd
|
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.
|
# Remove the binary extension sources and build leftovers.
|
||||||
rm -rf %{buildroot}%{gem_instdir}/ext
|
rm -rf %{buildroot}%{gem_instdir}/ext
|
||||||
|
|
||||||
@ -102,6 +109,9 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 10 2015 Yaakov Selkowitz <yselkowi@redhat.com> - 1.9.10-2
|
||||||
|
- Restore spec compatibility with EPEL.
|
||||||
|
|
||||||
* Sat Oct 3 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.10-1
|
* Sat Oct 3 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.10-1
|
||||||
- 1.9.10
|
- 1.9.10
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user