Compare commits
No commits in common. "rawhide" and "f22" have entirely different histories.
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
/ffi-*.gem
|
||||
/ffi-*-spec.txz
|
||||
ffi-ffi-b69a5e3.tar.gz
|
||||
/ffi-ffi-1.0.9-0-gb79eb61.tar.gz
|
||||
/ffi-1.4.0.gem
|
||||
/ffi-1.9.3.gem
|
||||
|
118
ffi-aarch64.patch
Normal file
118
ffi-aarch64.patch
Normal file
File diff suppressed because one or more lines are too long
231
rubygem-ffi.spec
231
rubygem-ffi.spec
@ -1,25 +1,27 @@
|
||||
%global gem_name ffi
|
||||
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.15.5
|
||||
Release: 4%{?dist}
|
||||
Version: 1.9.3
|
||||
Release: 5%{?dist}
|
||||
Summary: FFI Extensions for Ruby
|
||||
Group: Development/Languages
|
||||
|
||||
License: BSD
|
||||
URL: https://github.com/ffi/ffi/wiki
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
# git clone https://github.com/ffi/ffi.git --no-checkout
|
||||
# cd ffi && git archive -v -o ffi-1.15.5-spec.txz v1.15.5 spec/
|
||||
Source1: %{gem_name}-%{version}-spec.txz
|
||||
BuildRequires: make
|
||||
BuildRequires: ruby(release)
|
||||
BuildRequires: rubygems-devel
|
||||
URL: http://wiki.github.com/ffi/ffi
|
||||
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
Patch0: ffi-aarch64.patch
|
||||
|
||||
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: rubygems-devel
|
||||
BuildRequires: libffi-devel
|
||||
BuildRequires: rubygem(rspec) >= 3
|
||||
BuildRequires: rubygem(bigdecimal)
|
||||
%if 0%{?fedora} >= 22
|
||||
BuildRequires: rubygem(rspec2)
|
||||
%else
|
||||
BuildRequires: rubygem(rspec)
|
||||
%endif
|
||||
Requires: ruby(rubygems)
|
||||
Requires: ruby(release)
|
||||
Provides: rubygem(%{gem_name}) = %{version}
|
||||
|
||||
%description
|
||||
Ruby-FFI is a ruby extension for programmatically loading dynamic
|
||||
@ -28,185 +30,76 @@ from Ruby code. Moreover, a Ruby-FFI extension works without changes
|
||||
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].
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version} -b 1
|
||||
gem unpack %{SOURCE0}
|
||||
%setup -q -D -T -n %{gem_name}-%{version}
|
||||
|
||||
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
|
||||
# Create the gem as gem install only works on a gem file
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
gem build %{gem_name}.gemspec
|
||||
|
||||
%gem_install
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{gem_dir}
|
||||
cp -a .%{gem_dir}/* \
|
||||
cp -pa .%{gem_dir}/* \
|
||||
%{buildroot}%{gem_dir}/
|
||||
|
||||
%if 0%{?fedora} >= 21
|
||||
mkdir -p %{buildroot}%{gem_extdir_mri}
|
||||
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
|
||||
cp -a ./%{gem_extdir_mri}/* %{buildroot}%{gem_extdir_mri}/
|
||||
|
||||
# Prevent dangling symlink in -debuginfo (rhbz#878863).
|
||||
rm -rf %{buildroot}%{gem_instdir}/ext/
|
||||
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
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
ln -s %{_builddir}/spec spec
|
||||
make -f libtest/GNUmakefile
|
||||
# test dies on arm, disabling on the arch
|
||||
%if 0%{?fedora} >= 21
|
||||
ruby -Ilib:ext/ffi_c -S \
|
||||
%endif
|
||||
%if 0%{?fedora} >= 22
|
||||
rspec2 spec \
|
||||
%else
|
||||
rspec spec \
|
||||
%endif
|
||||
%ifarch %{arm}
|
||||
|| echo "Please investigate this"
|
||||
%endif
|
||||
|
||||
# Build the test library with Fedora build options.
|
||||
pushd spec/ffi/fixtures
|
||||
make JFLAGS="%{optflags}"
|
||||
popd
|
||||
|
||||
# Recent libffi corrupts dynamically allocated closures with call to fork.
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2040380
|
||||
mv spec/ffi/fork_spec.rb{,.disabled}
|
||||
|
||||
RUBYOPT="-I$(dirs +1)%{gem_extdir_mri}" rspec spec
|
||||
popd
|
||||
|
||||
%files
|
||||
%doc %{gem_instdir}/COPYING
|
||||
%doc %{gem_instdir}/README.md
|
||||
%doc %{gem_instdir}/LICENSE
|
||||
%doc %{gem_docdir}
|
||||
%dir %{gem_instdir}
|
||||
%{gem_extdir_mri}
|
||||
%exclude %{gem_instdir}/.*
|
||||
%license %{gem_instdir}/COPYING
|
||||
%license %{gem_instdir}/LICENSE
|
||||
%license %{gem_instdir}/LICENSE.SPECS
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/gen
|
||||
%exclude %{gem_instdir}/ext
|
||||
%exclude %{gem_instdir}/libtest
|
||||
%{gem_instdir}/ffi.gemspec
|
||||
%{gem_libdir}
|
||||
%{gem_instdir}/spec
|
||||
%{gem_extdir_mri}/
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/CHANGELOG.md
|
||||
%{gem_instdir}/Gemfile
|
||||
%doc %{gem_instdir}/README.md
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/samples
|
||||
%{gem_instdir}/ffi.gemspec
|
||||
%{gem_instdir}/rakelib/ffi_gem_helper.rb
|
||||
|
||||
%changelog
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.5-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Thu Jan 27 2022 Vít Ondruch <vondruch@redhat.com> - 1.15.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.1
|
||||
|
||||
* Thu Jan 27 2022 Vít Ondruch <vondruch@redhat.com> - 1.15.5-2
|
||||
- Disable fork spec broken by recent libffi.
|
||||
- Re-enable long double test fixed by FFI 1.15.5.
|
||||
|
||||
* Thu Jan 27 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.5-2
|
||||
- F-36: rebuild against ruby31
|
||||
|
||||
* Tue Jan 18 2022 Pavel Valena <pvalena@redhat.com> - 1.15.5-1
|
||||
- Update to ffi 1.15.5.
|
||||
Resolves: rhbz#2038923
|
||||
|
||||
* Sat Jan 08 2022 Miro Hrončok <mhroncok@redhat.com> - 1.15.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34
|
||||
|
||||
* Mon Sep 13 2021 Pavel Valena <pvalena@redhat.com> - 1.15.4-1
|
||||
- Update to ffi 1.15.4.
|
||||
Resolves: rhbz#1909309
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Jan 6 2021 Vít Ondruch <vondruch@redhat.com> - 1.13.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0
|
||||
|
||||
* Thu Dec 03 2020 Vít Ondruch <vondruch@redhat.com> - 1.13.1-1
|
||||
- Disable long double test failing on i686.
|
||||
|
||||
* Thu Nov 12 22:57:22 CET 2020 Pavel Valena <pvalena@redhat.com> - 1.13.1-1
|
||||
- Update to ffi 1.13.1.
|
||||
Resolves: rhbz#1797215
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Mon Jan 20 2020 Pavel Valena <pvalena@redhat.com> - 1.12.1-1
|
||||
- Update to ffi 1.12.1.
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Wed Jan 23 2019 Pavel Valena <pvalena@redhat.com> - 1.10.0-1
|
||||
- Update to FFI 1.10.0.
|
||||
|
||||
* Thu Jan 17 2019 Vít Ondruch <vondruch@redhat.com> - 1.9.23-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.6
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.23-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Feb 28 2018 Vít Ondruch <vondruch@redhat.com> - 1.9.23-1
|
||||
- Update to FFI 1.9.23.
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.18-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 1.9.18-6
|
||||
- Rebuilt for switch to libxcrypt
|
||||
|
||||
* Tue Jan 09 2018 Vít Ondruch <vondruch@redhat.com> - 1.9.18-5
|
||||
- Re-enable rdoc generation.
|
||||
|
||||
* Fri Jan 05 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.18-4
|
||||
- F-28: rebuild for ruby25
|
||||
- Disabling rdoc generation for now to avoid segfault
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.18-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.18-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Mar 31 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.18-1
|
||||
- 1.9.18
|
||||
|
||||
* Fri Feb 10 2017 Jun Aruga <jaruga@redhat.com> - 1.9.14-3
|
||||
- Suppress deprecated Fixnum warnings on Ruby 2.4.0.
|
||||
|
||||
* Tue Jan 10 2017 Vít Ondruch <vondruch@redhat.com> - 1.9.14-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
|
||||
|
||||
* Tue Jan 03 2017 Vít Ondruch <vondruch@redhat.com> - 1.9.14-1
|
||||
- Update to FFI 1.9.14.
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.10-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Fri Jan 08 2016 Vít Ondruch <vondruch@redhat.com> - 1.9.10-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
|
||||
|
||||
* 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
|
||||
- Fix dangling symlinks in -debuginfo package.
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.3-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Fri Jan 23 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.9.3-5
|
||||
- fixed to build on aarch64
|
||||
|
||||
@ -260,10 +153,10 @@ popd
|
||||
* Wed Mar 10 2010 Bryan Kearney <bkearney@redhat.com> - 0.6.2-1
|
||||
- Power PC fixes from upstream which were found testing 0.6.2
|
||||
|
||||
* Mon Feb 22 2010 Bryan Kearney <bkearney@redhat.com> - 0.6.2-1
|
||||
* Tue Feb 22 2010 Bryan Kearney <bkearney@redhat.com> - 0.6.2-1
|
||||
- Pull in 0.6.2 from upstream
|
||||
|
||||
* Mon Feb 22 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-3
|
||||
* Tue Feb 22 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-3
|
||||
- Final updates based on package review
|
||||
|
||||
* Tue Feb 16 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-2
|
||||
|
4
sources
4
sources
@ -1,2 +1,2 @@
|
||||
SHA512 (ffi-1.15.5.gem) = 074df34edffc7038ab08199350a97b32280d61ea15dd85d459b008bd3363ec5403b4e533621c8e460e5288f01fec944bff9b149851b819e85bab75ad2362227c
|
||||
SHA512 (ffi-1.15.5-spec.txz) = 746e69d9d9d43f53b165898c943b6acb6fea0bf5bf0669fade331a5a38bace4cf9de59dda09c57f4fc5ad8b22ead5aa72f07e61318d7ed794e9cefe76dee55a3
|
||||
5ce1c04c23267cb550250f6d94e03c12 ffi-1.4.0.gem
|
||||
1b5ab133fb1b861eeb7c7a8dbaa0acf4 ffi-1.9.3.gem
|
||||
|
Loading…
Reference in New Issue
Block a user