2012-02-02 15:20:23 +00:00
|
|
|
%global gem_name ffi
|
2010-02-22 14:13:24 +00:00
|
|
|
|
2017-01-04 15:30:18 +00:00
|
|
|
Name: rubygem-%{gem_name}
|
2019-11-29 17:22:00 +00:00
|
|
|
Version: 1.12.1
|
|
|
|
Release: 1%{?dist}
|
2017-01-04 15:30:18 +00:00
|
|
|
Summary: FFI Extensions for Ruby
|
|
|
|
License: BSD
|
2019-11-29 17:22:00 +00:00
|
|
|
URL: https://github.com/ffi/ffi/wiki
|
2017-01-04 15:30:18 +00:00
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
2019-11-29 17:22:00 +00:00
|
|
|
# git clone https://github.com/ffi/ffi.git --no-checkout
|
|
|
|
# cd ffi && git archive -v -o ffi-1.12.1-spec.txz 1.12.1 spec/
|
|
|
|
Source1: %{gem_name}-%{version}-spec.txz
|
2017-01-04 15:30:18 +00:00
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby-devel
|
2018-02-28 14:39:15 +00:00
|
|
|
# Compiler is required for build of gem binary extension.
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires
|
|
|
|
BuildRequires: gcc
|
2017-01-04 15:30:18 +00:00
|
|
|
BuildRequires: libffi-devel
|
2018-02-28 14:39:15 +00:00
|
|
|
BuildRequires: rubygem(rspec)
|
2010-02-22 14:13:24 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Ruby-FFI is a ruby extension for programmatically loading dynamic
|
|
|
|
libraries, binding functions within them, and calling those functions
|
|
|
|
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].
|
|
|
|
|
2017-01-04 15:30:18 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
2015-10-03 14:20:13 +00:00
|
|
|
|
2017-01-04 15:30:18 +00:00
|
|
|
%description doc
|
|
|
|
Documentation for %{name}.
|
2015-10-03 14:20:13 +00:00
|
|
|
|
2010-02-22 14:13:24 +00:00
|
|
|
%prep
|
2018-02-28 14:39:15 +00:00
|
|
|
%setup -q -n %{gem_name}-%{version} -b 1
|
2010-02-22 14:13:24 +00:00
|
|
|
|
|
|
|
%build
|
2013-02-20 13:25:29 +00:00
|
|
|
# Create the gem as gem install only works on a gem file
|
2018-02-28 14:39:15 +00:00
|
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
2013-02-20 13:37:12 +00:00
|
|
|
%gem_install
|
2010-02-22 14:13:24 +00:00
|
|
|
|
|
|
|
%install
|
2013-02-20 13:25:29 +00:00
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
2017-01-04 15:30:18 +00:00
|
|
|
cp -a .%{gem_dir}/* \
|
2013-02-20 13:25:29 +00:00
|
|
|
%{buildroot}%{gem_dir}/
|
2010-02-22 14:13:24 +00:00
|
|
|
|
2014-05-03 07:36:47 +00:00
|
|
|
mkdir -p %{buildroot}%{gem_extdir_mri}
|
2017-01-04 15:30:18 +00:00
|
|
|
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
|
2014-05-03 07:36:47 +00:00
|
|
|
|
2017-01-04 15:30:18 +00:00
|
|
|
# Prevent dangling symlink in -debuginfo (rhbz#878863).
|
|
|
|
rm -rf %{buildroot}%{gem_instdir}/ext/
|
|
|
|
|
|
|
|
|
2013-02-20 13:25:29 +00:00
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
2018-02-28 14:39:15 +00:00
|
|
|
ln -s %{_builddir}/spec spec
|
|
|
|
|
2017-01-04 15:30:18 +00:00
|
|
|
# Build the test library with Fedora build options.
|
|
|
|
pushd spec/ffi/fixtures
|
|
|
|
make JFLAGS="%{optflags}"
|
|
|
|
popd
|
2014-05-03 08:03:50 +00:00
|
|
|
|
2019-11-29 17:22:00 +00:00
|
|
|
RUBYOPT="-I$(dirs +1)%{gem_extdir_mri}" rspec spec
|
2013-02-20 13:25:29 +00:00
|
|
|
popd
|
2010-02-22 14:13:24 +00:00
|
|
|
|
|
|
|
%files
|
2012-02-02 15:20:23 +00:00
|
|
|
%dir %{gem_instdir}
|
2017-01-04 15:30:18 +00:00
|
|
|
%{gem_extdir_mri}
|
2018-02-28 14:39:15 +00:00
|
|
|
%exclude %{gem_instdir}/.*
|
2017-01-04 15:30:18 +00:00
|
|
|
%license %{gem_instdir}/COPYING
|
|
|
|
%license %{gem_instdir}/LICENSE
|
2018-02-28 14:39:15 +00:00
|
|
|
%license %{gem_instdir}/LICENSE.SPECS
|
|
|
|
%exclude %{gem_instdir}/appveyor.yml
|
2012-02-02 15:20:23 +00:00
|
|
|
%{gem_libdir}
|
2013-02-20 13:25:29 +00:00
|
|
|
%exclude %{gem_cache}
|
2012-02-02 15:20:23 +00:00
|
|
|
%{gem_spec}
|
2010-02-22 14:13:24 +00:00
|
|
|
|
2015-10-03 14:20:13 +00:00
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
2019-01-23 01:59:49 +00:00
|
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
2018-02-28 14:39:15 +00:00
|
|
|
%{gem_instdir}/Gemfile
|
2017-01-04 15:30:18 +00:00
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%{gem_instdir}/Rakefile
|
2018-02-28 14:39:15 +00:00
|
|
|
%{gem_instdir}/samples
|
|
|
|
%{gem_instdir}/ffi.gemspec
|
2010-02-22 14:13:24 +00:00
|
|
|
|
|
|
|
%changelog
|
2019-11-29 17:22:00 +00:00
|
|
|
* Mon Jan 20 2020 Pavel Valena <pvalena@redhat.com> - 1.12.1-1
|
|
|
|
- Update to ffi 1.12.1.
|
|
|
|
|
2019-07-26 19:19:29 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-02 12:10:27 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2019-01-23 01:59:49 +00:00
|
|
|
* Wed Jan 23 2019 Pavel Valena <pvalena@redhat.com> - 1.10.0-1
|
|
|
|
- Update to FFI 1.10.0.
|
|
|
|
|
2019-01-17 12:28:54 +00:00
|
|
|
* Thu Jan 17 2019 Vít Ondruch <vondruch@redhat.com> - 1.9.23-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.6
|
|
|
|
|
2018-07-14 04:09:17 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.23-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-28 14:39:15 +00:00
|
|
|
* Wed Feb 28 2018 Vít Ondruch <vondruch@redhat.com> - 1.9.23-1
|
|
|
|
- Update to FFI 1.9.23.
|
|
|
|
|
2018-02-09 13:55:15 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.18-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-20 22:07:57 +00:00
|
|
|
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 1.9.18-6
|
|
|
|
- Rebuilt for switch to libxcrypt
|
|
|
|
|
2018-01-09 14:06:35 +00:00
|
|
|
* Tue Jan 09 2018 Vít Ondruch <vondruch@redhat.com> - 1.9.18-5
|
|
|
|
- Re-enable rdoc generation.
|
|
|
|
|
2018-01-05 12:20:05 +00:00
|
|
|
* 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
|
|
|
|
|
2017-08-03 07:53:49 +00:00
|
|
|
* 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
|
|
|
|
|
2017-07-27 17:08:41 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.18-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-03-31 05:28:08 +00:00
|
|
|
* Fri Mar 31 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.18-1
|
|
|
|
- 1.9.18
|
|
|
|
|
2017-02-10 14:51:59 +00:00
|
|
|
* Fri Feb 10 2017 Jun Aruga <jaruga@redhat.com> - 1.9.14-3
|
|
|
|
- Suppress deprecated Fixnum warnings on Ruby 2.4.0.
|
|
|
|
|
2017-01-10 09:25:28 +00:00
|
|
|
* Tue Jan 10 2017 Vít Ondruch <vondruch@redhat.com> - 1.9.14-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
|
|
|
|
|
2017-01-04 15:30:18 +00:00
|
|
|
* Tue Jan 03 2017 Vít Ondruch <vondruch@redhat.com> - 1.9.14-1
|
|
|
|
- Update to FFI 1.9.14.
|
|
|
|
|
2016-02-04 22:42:10 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.10-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-08 12:12:16 +00:00
|
|
|
* Fri Jan 08 2016 Vít Ondruch <vondruch@redhat.com> - 1.9.10-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
|
|
|
|
|
2015-10-03 14:20:13 +00:00
|
|
|
* Sat Oct 3 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.10-1
|
|
|
|
- 1.9.10
|
|
|
|
|
2015-07-20 16:41:11 +00:00
|
|
|
* Mon Jul 20 2015 Vít Ondruch <vondruch@redhat.com> - 1.9.3-7
|
|
|
|
- Fix dangling symlinks in -debuginfo package.
|
|
|
|
|
2015-06-18 23:04:38 +00:00
|
|
|
* 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
|
|
|
|
|
2015-01-26 12:24:24 +00:00
|
|
|
* Fri Jan 23 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.9.3-5
|
|
|
|
- fixed to build on aarch64
|
|
|
|
|
2015-01-16 02:52:10 +00:00
|
|
|
* Fri Jan 16 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.3-4
|
|
|
|
- Rebuild for ruby 2.2 again
|
|
|
|
|
2015-01-15 13:09:57 +00:00
|
|
|
* Thu Jan 15 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.3-3
|
|
|
|
- Rebuild for ruby 2.2
|
2015-01-15 13:25:25 +00:00
|
|
|
- Use rspec2 for now
|
2015-01-15 13:09:57 +00:00
|
|
|
|
2014-08-18 00:39:41 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-06 14:18:56 +00:00
|
|
|
* Thu Jun 05 2014 Dominic Cleal <dcleal@redhat.com> - 1.9.3-1
|
|
|
|
- Update to FFI 1.9.3
|
|
|
|
|
2014-05-03 07:36:47 +00:00
|
|
|
* Sat May 3 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.0-4
|
|
|
|
- F-21: rebuild for ruby 2.1 / rubygems 2.2
|
|
|
|
|
2013-08-04 13:52:11 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-26 14:03:42 +00:00
|
|
|
* Tue Mar 26 2013 Vít Ondruch <vondruch@redhat.com> - 1.4.0-2
|
|
|
|
- Use %%{gem_extdir_mri} instead of %%{gem_extdir}.
|
|
|
|
|
2013-02-20 13:25:29 +00:00
|
|
|
* Wed Feb 20 2013 Vít Ondruch <vondruch@redhat.com> - 1.4.0-1
|
2013-02-20 13:37:12 +00:00
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
2013-02-20 13:25:29 +00:00
|
|
|
- Update to FFI 1.4.0.
|
|
|
|
|
2013-02-14 22:37:10 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-21 17:51:59 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-02 15:20:23 +00:00
|
|
|
* Thu Feb 02 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.9-4
|
|
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
|
2012-01-14 03:09:35 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-06-14 16:02:30 +00:00
|
|
|
* Tue Jun 14 2011 Bryan Kearney <bkearney@redhat.com> - 1.0.9-2
|
|
|
|
- Fixed the License, it is actually LGPL
|
|
|
|
|
2011-06-13 16:18:06 +00:00
|
|
|
* Mon Jun 13 2011 Bryan Kearney <bkearney@redhat.com> - 1.0.9-1
|
|
|
|
- Bring in 1.0.9 from upstream.
|
|
|
|
|
2011-02-09 09:50:58 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-03-10 13:56:43 +00:00
|
|
|
* 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
|
|
|
|
|
2017-01-04 15:30:18 +00:00
|
|
|
* Mon Feb 22 2010 Bryan Kearney <bkearney@redhat.com> - 0.6.2-1
|
2010-03-08 17:30:38 +00:00
|
|
|
- Pull in 0.6.2 from upstream
|
|
|
|
|
2017-01-04 15:30:18 +00:00
|
|
|
* Mon Feb 22 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-3
|
2010-02-22 14:13:24 +00:00
|
|
|
- Final updates based on package review
|
|
|
|
|
|
|
|
* Tue Feb 16 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-2
|
|
|
|
- Updates Based on code review comments
|
|
|
|
|
|
|
|
* Mon Feb 15 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-1
|
|
|
|
- Initial specfile
|