From 381efce6743f1085aba180081bbb5c5feabc106d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Wed, 28 Feb 2018 15:39:15 +0100 Subject: [PATCH] Update to FFI 1.9.23. --- .gitignore | 2 ++ rubygem-ffi.spec | 47 +++++++++++++++++++++++------------------------ sources | 3 ++- 3 files changed, 27 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 965e61a..bca864f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ ffi-ffi-b69a5e3.tar.gz /ffi-1.9.10.gem /ffi-1.9.14.gem /ffi-1.9.18.gem +/ffi-1.9.23-spec.tgz +/ffi-1.9.23.gem diff --git a/rubygem-ffi.spec b/rubygem-ffi.spec index ad9b6a1..70ff1af 100644 --- a/rubygem-ffi.spec +++ b/rubygem-ffi.spec @@ -1,20 +1,23 @@ %global gem_name ffi Name: rubygem-%{gem_name} -Version: 1.9.18 -Release: 7%{?dist} +Version: 1.9.23 +Release: 1%{?dist} Summary: FFI Extensions for Ruby -Group: Development/Languages - License: BSD URL: http://wiki.github.com/ffi/ffi Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem - +# git clone https://github.com/ffi/ffi.git && cd ffi +# git checkout 1.9.23 && tar czvf ffi-1.9.23-spec.tgz spec/ +Source1: %{gem_name}-%{version}-spec.tgz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby-devel +# Compiler is required for build of gem binary extension. +# https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires +BuildRequires: gcc BuildRequires: libffi-devel -BuildRequires: rubygem(rspec2) +BuildRequires: rubygem(rspec) %description Ruby-FFI is a ruby extension for programmatically loading dynamic @@ -25,7 +28,6 @@ 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} BuildArch: noarch @@ -33,15 +35,11 @@ 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} -b 1 %build # Create the gem as gem install only works on a gem file -gem build %{gem_name}.gemspec +gem build ../%{gem_name}-%{version}.gemspec %gem_install @@ -57,41 +55,42 @@ cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri} rm -rf %{buildroot}%{gem_instdir}/ext/ -# Fix the permissions. -# https://github.com/ffi/ffi/pull/545 -chmod a-x %{buildroot}%{gem_libdir}/ffi/platform/i386-cygwin/types.conf -chmod a-x %{buildroot}%{gem_libdir}/ffi/platform/x86_64-cygwin/types.conf - - %check pushd .%{gem_instdir} +ln -s %{_builddir}/spec spec + # Build the test library with Fedora build options. pushd spec/ffi/fixtures make JFLAGS="%{optflags}" popd -rspec2 -I$(dirs +1)%{gem_extdir_mri} spec +rspec -I$(dirs +1)%{gem_extdir_mri} spec popd %files %dir %{gem_instdir} %{gem_extdir_mri} +%exclude %{gem_instdir}/.* %license %{gem_instdir}/COPYING %license %{gem_instdir}/LICENSE -%exclude %{gem_instdir}/ffi.gemspec -%exclude %{gem_instdir}/gen +%license %{gem_instdir}/LICENSE.SPECS +%exclude %{gem_instdir}/appveyor.yml %{gem_libdir} -%exclude %{gem_instdir}/libtest -%exclude %{gem_instdir}/spec %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} +%{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile +%{gem_instdir}/samples +%{gem_instdir}/ffi.gemspec %changelog +* Wed Feb 28 2018 Vít Ondruch - 1.9.23-1 +- Update to FFI 1.9.23. + * Fri Feb 09 2018 Fedora Release Engineering - 1.9.18-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources index 8ad3756..5d6b82a 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -SHA512 (ffi-1.9.18.gem) = 957bdda13eb84bcda43280ee6025f13c6cff8b14090079f7bbb1296e13082c4d6027c25de2b0c6e1f9d9c2f020ef66d1e6db2c5d9cfa50e828e146ab83e7a6d9 +SHA512 (ffi-1.9.23-spec.tgz) = c0d27b851674806f45a3986a67213687e6fee0bca35edbac29c6abd3f3a32206865ff06fc9f6ba6128e5dd8703de315e63364148447adfc74653d66ce9320a75 +SHA512 (ffi-1.9.23.gem) = 6e4400872e5ea0b27a1406a334fd0aa1802c2fc0b99c41302369666da74991b8ee66ce1be08d2526e8c22e803d6f43a3181f4628d9bc87eccb572fb591c14b5f