|
|
c37fed6 |
%global gem_name ffi
|
|
|
5e1beb5 |
|
|
|
c84076a |
Name: rubygem-%{gem_name}
|
|
|
2dda1cc |
Version: 1.12.1
|
|
|
9bfc3bb |
Release: 2%{?dist}
|
|
|
c84076a |
Summary: FFI Extensions for Ruby
|
|
|
c84076a |
License: BSD
|
|
|
2dda1cc |
URL: https://github.com/ffi/ffi/wiki
|
|
|
c84076a |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
2dda1cc |
# git clone https://github.com/ffi/ffi.git --no-checkout
|
|
|
2dda1cc |
# cd ffi && git archive -v -o ffi-1.12.1-spec.txz 1.12.1 spec/
|
|
|
2dda1cc |
Source1: %{gem_name}-%{version}-spec.txz
|
|
|
c84076a |
BuildRequires: ruby(release)
|
|
|
c84076a |
BuildRequires: rubygems-devel
|
|
|
c84076a |
BuildRequires: ruby-devel
|
|
|
381efce |
# Compiler is required for build of gem binary extension.
|
|
|
381efce |
# https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires
|
|
|
381efce |
BuildRequires: gcc
|
|
|
c84076a |
BuildRequires: libffi-devel
|
|
|
381efce |
BuildRequires: rubygem(rspec)
|
|
|
5e1beb5 |
|
|
|
5e1beb5 |
%description
|
|
|
5e1beb5 |
Ruby-FFI is a ruby extension for programmatically loading dynamic
|
|
|
5e1beb5 |
libraries, binding functions within them, and calling those functions
|
|
|
5e1beb5 |
from Ruby code. Moreover, a Ruby-FFI extension works without changes
|
|
|
5e1beb5 |
on Ruby and JRuby. Discover why should you write your next extension
|
|
|
5e1beb5 |
using Ruby-FFI here[http://wiki.github.com/ffi/ffi/why-use-ffi].
|
|
|
5e1beb5 |
|
|
|
c84076a |
%package doc
|
|
|
c84076a |
Summary: Documentation for %{name}
|
|
|
c84076a |
Requires: %{name} = %{version}-%{release}
|
|
|
c84076a |
BuildArch: noarch
|
|
|
503a177 |
|
|
|
c84076a |
%description doc
|
|
|
c84076a |
Documentation for %{name}.
|
|
|
503a177 |
|
|
|
5e1beb5 |
%prep
|
|
|
381efce |
%setup -q -n %{gem_name}-%{version} -b 1
|
|
|
5e1beb5 |
|
|
|
5e1beb5 |
%build
|
|
|
010f03d |
# Create the gem as gem install only works on a gem file
|
|
|
381efce |
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
90545f5 |
%gem_install
|
|
|
5e1beb5 |
|
|
|
5e1beb5 |
%install
|
|
|
010f03d |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
c84076a |
cp -a .%{gem_dir}/* \
|
|
|
010f03d |
%{buildroot}%{gem_dir}/
|
|
|
5e1beb5 |
|
|
|
29e7020 |
mkdir -p %{buildroot}%{gem_extdir_mri}
|
|
|
c84076a |
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
|
|
|
29e7020 |
|
|
|
c84076a |
# Prevent dangling symlink in -debuginfo (rhbz#878863).
|
|
|
c84076a |
rm -rf %{buildroot}%{gem_instdir}/ext/
|
|
|
c84076a |
|
|
|
c84076a |
|
|
|
010f03d |
%check
|
|
|
010f03d |
pushd .%{gem_instdir}
|
|
|
381efce |
ln -s %{_builddir}/spec spec
|
|
|
381efce |
|
|
|
c84076a |
# Build the test library with Fedora build options.
|
|
|
c84076a |
pushd spec/ffi/fixtures
|
|
|
c84076a |
make JFLAGS="%{optflags}"
|
|
|
c84076a |
popd
|
|
|
aac116f |
|
|
|
2dda1cc |
RUBYOPT="-I$(dirs +1)%{gem_extdir_mri}" rspec spec
|
|
|
010f03d |
popd
|
|
|
5e1beb5 |
|
|
|
5e1beb5 |
%files
|
|
|
c37fed6 |
%dir %{gem_instdir}
|
|
|
c84076a |
%{gem_extdir_mri}
|
|
|
381efce |
%exclude %{gem_instdir}/.*
|
|
|
c84076a |
%license %{gem_instdir}/COPYING
|
|
|
c84076a |
%license %{gem_instdir}/LICENSE
|
|
|
381efce |
%license %{gem_instdir}/LICENSE.SPECS
|
|
|
381efce |
%exclude %{gem_instdir}/appveyor.yml
|
|
|
c37fed6 |
%{gem_libdir}
|
|
|
010f03d |
%exclude %{gem_cache}
|
|
|
c37fed6 |
%{gem_spec}
|
|
|
5e1beb5 |
|
|
|
503a177 |
%files doc
|
|
|
503a177 |
%doc %{gem_docdir}
|
|
|
67910cb |
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
381efce |
%{gem_instdir}/Gemfile
|
|
|
c84076a |
%doc %{gem_instdir}/README.md
|
|
|
c84076a |
%{gem_instdir}/Rakefile
|
|
|
381efce |
%{gem_instdir}/samples
|
|
|
381efce |
%{gem_instdir}/ffi.gemspec
|
|
|
5e1beb5 |
|
|
|
5e1beb5 |
%changelog
|
|
|
9bfc3bb |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-2
|
|
|
9bfc3bb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
9bfc3bb |
|
|
|
2dda1cc |
* Mon Jan 20 2020 Pavel Valena <pvalena@redhat.com> - 1.12.1-1
|
|
|
2dda1cc |
- Update to ffi 1.12.1.
|
|
|
2dda1cc |
|
|
|
02ea395 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
|
|
|
02ea395 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
02ea395 |
|
|
|
79ccb76 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
|
|
|
79ccb76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
79ccb76 |
|
|
|
67910cb |
* Wed Jan 23 2019 Pavel Valena <pvalena@redhat.com> - 1.10.0-1
|
|
|
67910cb |
- Update to FFI 1.10.0.
|
|
|
67910cb |
|
|
|
9da9601 |
* Thu Jan 17 2019 Vít Ondruch <vondruch@redhat.com> - 1.9.23-3
|
|
|
9da9601 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.6
|
|
|
9da9601 |
|
|
|
2fb0abf |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.23-2
|
|
|
2fb0abf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
2fb0abf |
|
|
|
381efce |
* Wed Feb 28 2018 Vít Ondruch <vondruch@redhat.com> - 1.9.23-1
|
|
|
381efce |
- Update to FFI 1.9.23.
|
|
|
381efce |
|
|
|
8ffa624 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.18-7
|
|
|
8ffa624 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
8ffa624 |
|
|
|
3fcbbb9 |
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 1.9.18-6
|
|
|
3fcbbb9 |
- Rebuilt for switch to libxcrypt
|
|
|
3fcbbb9 |
|
|
|
f53727d |
* Tue Jan 09 2018 Vít Ondruch <vondruch@redhat.com> - 1.9.18-5
|
|
|
f53727d |
- Re-enable rdoc generation.
|
|
|
f53727d |
|
|
|
e60bb4e |
* Fri Jan 05 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.18-4
|
|
|
e60bb4e |
- F-28: rebuild for ruby25
|
|
|
e60bb4e |
- Disabling rdoc generation for now to avoid segfault
|
|
|
e60bb4e |
|
|
|
127839a |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.18-3
|
|
|
127839a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
127839a |
|
|
|
bc2e195 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.18-2
|
|
|
bc2e195 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
bc2e195 |
|
|
|
bb5e588 |
* Fri Mar 31 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.18-1
|
|
|
bb5e588 |
- 1.9.18
|
|
|
bb5e588 |
|
|
|
1b59849 |
* Fri Feb 10 2017 Jun Aruga <jaruga@redhat.com> - 1.9.14-3
|
|
|
1b59849 |
- Suppress deprecated Fixnum warnings on Ruby 2.4.0.
|
|
|
1b59849 |
|
|
|
28aacfb |
* Tue Jan 10 2017 Vít Ondruch <vondruch@redhat.com> - 1.9.14-2
|
|
|
28aacfb |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
|
|
|
28aacfb |
|
|
|
c84076a |
* Tue Jan 03 2017 Vít Ondruch <vondruch@redhat.com> - 1.9.14-1
|
|
|
c84076a |
- Update to FFI 1.9.14.
|
|
|
c84076a |
|
|
|
4bd9250 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.10-3
|
|
|
4bd9250 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
4bd9250 |
|
|
|
6cdb845 |
* Fri Jan 08 2016 Vít Ondruch <vondruch@redhat.com> - 1.9.10-2
|
|
|
6cdb845 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
|
|
|
6cdb845 |
|
|
|
503a177 |
* Sat Oct 3 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.10-1
|
|
|
503a177 |
- 1.9.10
|
|
|
503a177 |
|
|
|
7728118 |
* Mon Jul 20 2015 Vít Ondruch <vondruch@redhat.com> - 1.9.3-7
|
|
|
7728118 |
- Fix dangling symlinks in -debuginfo package.
|
|
|
7728118 |
|
|
|
d8c3b0f |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.3-6
|
|
|
d8c3b0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
d8c3b0f |
|
|
Dominic Cleal |
51af046 |
* Fri Jan 23 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.9.3-5
|
|
Dominic Cleal |
51af046 |
- fixed to build on aarch64
|
|
Dominic Cleal |
51af046 |
|
|
|
d68b1a5 |
* Fri Jan 16 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.3-4
|
|
|
d68b1a5 |
- Rebuild for ruby 2.2 again
|
|
|
d68b1a5 |
|
|
|
58acc6f |
* Thu Jan 15 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.3-3
|
|
|
58acc6f |
- Rebuild for ruby 2.2
|
|
|
b9b44a0 |
- Use rspec2 for now
|
|
|
58acc6f |
|
|
|
272f43d |
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.3-2
|
|
|
272f43d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
272f43d |
|
|
|
9110602 |
* Thu Jun 05 2014 Dominic Cleal <dcleal@redhat.com> - 1.9.3-1
|
|
|
9110602 |
- Update to FFI 1.9.3
|
|
|
9110602 |
|
|
|
29e7020 |
* Sat May 3 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.0-4
|
|
|
29e7020 |
- F-21: rebuild for ruby 2.1 / rubygems 2.2
|
|
|
29e7020 |
|
|
|
3ee91ac |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
|
|
|
3ee91ac |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
3ee91ac |
|
|
|
49e0be5 |
* Tue Mar 26 2013 Vít Ondruch <vondruch@redhat.com> - 1.4.0-2
|
|
|
49e0be5 |
- Use %%{gem_extdir_mri} instead of %%{gem_extdir}.
|
|
|
49e0be5 |
|
|
|
010f03d |
* Wed Feb 20 2013 Vít Ondruch <vondruch@redhat.com> - 1.4.0-1
|
|
|
90545f5 |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
010f03d |
- Update to FFI 1.4.0.
|
|
|
010f03d |
|
|
|
a2c26d5 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-6
|
|
|
a2c26d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
a2c26d5 |
|
|
|
c24b6cf |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-5
|
|
|
c24b6cf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
c24b6cf |
|
|
|
c37fed6 |
* Thu Feb 02 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.9-4
|
|
|
c37fed6 |
- Rebuilt for Ruby 1.9.3.
|
|
|
c37fed6 |
|
|
|
4dc8eea |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-3
|
|
|
4dc8eea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
4dc8eea |
|
|
|
aa85df8 |
* Tue Jun 14 2011 Bryan Kearney <bkearney@redhat.com> - 1.0.9-2
|
|
|
aa85df8 |
- Fixed the License, it is actually LGPL
|
|
|
aa85df8 |
|
|
|
fa312d0 |
* Mon Jun 13 2011 Bryan Kearney <bkearney@redhat.com> - 1.0.9-1
|
|
|
fa312d0 |
- Bring in 1.0.9 from upstream.
|
|
|
fa312d0 |
|
|
|
e0c0b5a |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
|
|
|
e0c0b5a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
e0c0b5a |
|
|
|
08a56bc |
* Wed Mar 10 2010 Bryan Kearney <bkearney@redhat.com> - 0.6.2-1
|
|
|
08a56bc |
- Power PC fixes from upstream which were found testing 0.6.2
|
|
|
08a56bc |
|
|
|
c84076a |
* Mon Feb 22 2010 Bryan Kearney <bkearney@redhat.com> - 0.6.2-1
|
|
|
6991807 |
- Pull in 0.6.2 from upstream
|
|
|
6991807 |
|
|
|
c84076a |
* Mon Feb 22 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-3
|
|
|
5e1beb5 |
- Final updates based on package review
|
|
|
5e1beb5 |
|
|
|
5e1beb5 |
* Tue Feb 16 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-2
|
|
|
5e1beb5 |
- Updates Based on code review comments
|
|
|
5e1beb5 |
|
|
|
5e1beb5 |
* Mon Feb 15 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-1
|
|
|
5e1beb5 |
- Initial specfile
|