1.9.10
This commit is contained in:
parent
7728118764
commit
503a177cdb
|
@ -2,3 +2,4 @@ ffi-ffi-b69a5e3.tar.gz
|
||||||
/ffi-ffi-1.0.9-0-gb79eb61.tar.gz
|
/ffi-ffi-1.0.9-0-gb79eb61.tar.gz
|
||||||
/ffi-1.4.0.gem
|
/ffi-1.4.0.gem
|
||||||
/ffi-1.9.3.gem
|
/ffi-1.9.3.gem
|
||||||
|
/ffi-1.9.10.gem
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,15 +1,14 @@
|
||||||
%global gem_name ffi
|
%global gem_name ffi
|
||||||
|
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.9.3
|
Version: 1.9.10
|
||||||
Release: 7%{?dist}
|
Release: 1{?dist}
|
||||||
Summary: FFI Extensions for Ruby
|
Summary: FFI Extensions for Ruby
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://wiki.github.com/ffi/ffi
|
URL: http://wiki.github.com/ffi/ffi
|
||||||
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
Patch0: ffi-aarch64.patch
|
|
||||||
|
|
||||||
BuildRequires: ruby-devel
|
BuildRequires: ruby-devel
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel
|
||||||
|
@ -30,12 +29,19 @@ from Ruby code. Moreover, a Ruby-FFI extension works without changes
|
||||||
on Ruby and JRuby. Discover why should you write your next extension
|
on Ruby and JRuby. Discover why should you write your next extension
|
||||||
using Ruby-FFI here[http://wiki.github.com/ffi/ffi/why-use-ffi].
|
using Ruby-FFI here[http://wiki.github.com/ffi/ffi/why-use-ffi].
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Group: Documentation
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
This package contains documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
gem unpack %{SOURCE0}
|
gem unpack %{SOURCE0}
|
||||||
%setup -q -D -T -n %{gem_name}-%{version}
|
%setup -q -D -T -n %{gem_name}-%{version}
|
||||||
|
|
||||||
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
@ -49,7 +55,6 @@ mkdir -p %{buildroot}%{gem_dir}
|
||||||
cp -pa .%{gem_dir}/* \
|
cp -pa .%{gem_dir}/* \
|
||||||
%{buildroot}%{gem_dir}/
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
%if 0%{?fedora} >= 21
|
|
||||||
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}/
|
||||||
|
|
||||||
|
@ -57,51 +62,49 @@ 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
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
make -f libtest/GNUmakefile
|
make -f libtest/GNUmakefile \
|
||||||
|
JFLAGS="%{optflags}"
|
||||||
|
|
||||||
# test dies on arm, disabling on the arch
|
# test dies on arm, disabling on the arch
|
||||||
%if 0%{?fedora} >= 21
|
|
||||||
ruby -Ilib:ext/ffi_c -S \
|
ruby -Ilib:ext/ffi_c -S \
|
||||||
%endif
|
|
||||||
%if 0%{?fedora} >= 22
|
%if 0%{?fedora} >= 22
|
||||||
rspec2 spec \
|
rspec2 spec \
|
||||||
%else
|
%else
|
||||||
rspec spec \
|
rspec spec \
|
||||||
%endif
|
%endif
|
||||||
%ifarch %{arm}
|
|
||||||
|| echo "Please investigate this"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc %{gem_instdir}/COPYING
|
%doc %{gem_instdir}/COPYING
|
||||||
%doc %{gem_instdir}/README.md
|
%doc %{gem_instdir}/README.md
|
||||||
%doc %{gem_instdir}/LICENSE
|
%license %{gem_instdir}/LICENSE
|
||||||
%doc %{gem_docdir}
|
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
%{gem_instdir}/Rakefile
|
|
||||||
%{gem_instdir}/gen
|
%exclude %{gem_instdir}/Rakefile
|
||||||
|
%exclude %{gem_instdir}/gen
|
||||||
%exclude %{gem_instdir}/libtest
|
%exclude %{gem_instdir}/libtest
|
||||||
%{gem_instdir}/ffi.gemspec
|
%exclude %{gem_instdir}/ffi.gemspec
|
||||||
|
|
||||||
%{gem_libdir}
|
%{gem_libdir}
|
||||||
%{gem_instdir}/spec
|
|
||||||
%{gem_extdir_mri}/
|
%{gem_extdir_mri}/
|
||||||
%exclude %{gem_cache}
|
%exclude %{gem_cache}
|
||||||
%{gem_spec}
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%exclude %{gem_instdir}/spec
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Oct 3 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.10-1
|
||||||
|
- 1.9.10
|
||||||
|
|
||||||
* Mon Jul 20 2015 Vít Ondruch <vondruch@redhat.com> - 1.9.3-7
|
* Mon Jul 20 2015 Vít Ondruch <vondruch@redhat.com> - 1.9.3-7
|
||||||
- Fix dangling symlinks in -debuginfo package.
|
- Fix dangling symlinks in -debuginfo package.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue