diff --git a/1.10.0.tar.gz b/1.10.0.tar.gz new file mode 100644 index 0000000..1b0f72b Binary files /dev/null and b/1.10.0.tar.gz differ diff --git a/ffi-1.10.0.gem b/ffi-1.10.0.gem new file mode 100644 index 0000000..e75b906 Binary files /dev/null and b/ffi-1.10.0.gem differ diff --git a/rubygem-ffi.spec b/rubygem-ffi.spec new file mode 100644 index 0000000..c95d94f --- /dev/null +++ b/rubygem-ffi.spec @@ -0,0 +1,74 @@ +%global gem_name ffi +Name: rubygem-%{gem_name} +Version: 1.10.0 +Release: 1 +Summary: FFI Extensions for Ruby +License: BSD +URL: https://www.github.com/ffi/ffi +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Source1: https://www.github.com/ffi/%{gem_name}/archive/%{version}.tar.gz +BuildRequires: ruby(release) rubygems-devel ruby-devel gcc libffi-devel rubygem(rspec) +%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]. + +%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 +ln -s %{gem_name}-%{version}/test test +ln -s %{gem_name}-%{version}/spec spec + +%build +gem build ../%{gem_name}-%{version}.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ +mkdir -p %{buildroot}%{gem_extdir_mri} +cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/ +rm -rf %{buildroot}%{gem_instdir}/ext/ + +%check +pushd .%{gem_instdir} +ln -s %{_builddir}/%{gem_name}-%{version}/spec spec +pushd spec/ffi/fixtures +make JFLAGS="%{optflags}" +popd +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 +%license %{gem_instdir}/LICENSE.SPECS +%exclude %{gem_instdir}/appveyor.yml +%{gem_libdir} +%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 + +%changelog +* Thu Aug 20 2020 xiezheng - 1.10.0-1 +- package init diff --git a/rubygem-ffi.yaml b/rubygem-ffi.yaml new file mode 100644 index 0000000..ae31db2 --- /dev/null +++ b/rubygem-ffi.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: ffi/ffi +tag_prefix: "" +separator: "."