Created
February 6, 2022 22:17
-
-
Save pvalena/7cad66cbda9e18b172c4a34886e0ea98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- rubygem-msgpack/.generated.spec 2022-02-06 23:09:22.096882664 +0100 | |
+++ rubygem-msgpack/rubygem-msgpack.spec 2022-02-06 22:56:56.792933561 +0100 | |
@@ -1,25 +1,21 @@ | |
-Downloaded msgpack-1.4.4 | |
-# Generated from msgpack-1.4.4.gem by gem2rpm -*- rpm-spec -*- | |
+# Generated from msgpack-0.5.9.gem by gem2rpm -*- rpm-spec -*- | |
%global gem_name msgpack | |
Name: rubygem-%{gem_name} | |
Version: 1.4.4 | |
Release: 1%{?dist} | |
Summary: MessagePack, a binary-based efficient data interchange format | |
-License: Apache 2.0 | |
+License: ASL 2.0 | |
URL: http://msgpack.org/ | |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | |
+BuildRequires: gcc | |
BuildRequires: ruby(release) | |
BuildRequires: rubygems-devel | |
-BuildRequires: ruby-devel >= 2.4 | |
-# Compiler is required for build of gem binary extension. | |
-# https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires | |
-BuildRequires: gcc | |
-# BuildRequires: rubygem(rake-compiler) >= 1.1.9 | |
-# BuildRequires: rubygem(rspec) >= 3.3 | |
-# BuildRequires: rubygem(rspec) < 4 | |
-# BuildRequires: rubygem(yard) | |
-# BuildRequires: rubygem(json) | |
+BuildRequires: ruby-devel | |
+BuildRequires: rubygem(rspec) | |
+# BuildRequires: rubygem(rake-compiler) < 0.9 | |
+# BuildRequires: rubygem(json) < 2 | |
+# BuildRequires: rubygem(yard) < 0.9 | |
%description | |
MessagePack is a binary-based efficient object serialization library. It | |
@@ -39,11 +35,7 @@ | |
%setup -q -n %{gem_name}-%{version} | |
%build | |
-# Create the gem as gem install only works on a gem file | |
gem build ../%{gem_name}-%{version}.gemspec | |
- | |
-# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir | |
-# by default, so that we can move it into the buildroot in %%install | |
%gem_install | |
%install | |
@@ -52,25 +44,24 @@ | |
%{buildroot}%{gem_dir}/ | |
mkdir -p %{buildroot}%{gem_extdir_mri} | |
-cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/ | |
+cp -ar .%{gem_extdir_mri}/{gem.build_complete,%{gem_name}} %{buildroot}%{gem_extdir_mri}/ | |
# Prevent dangling symlink in -debuginfo (rhbz#878863). | |
rm -rf %{buildroot}%{gem_instdir}/ext/ | |
- | |
+# Run the test suite | |
%check | |
pushd .%{gem_instdir} | |
-# rspec spec | |
+rm -rf spec/jruby | |
+rspec -Ilib -I%{buildroot}%{gem_extdir_mri} spec | |
popd | |
%files | |
%dir %{gem_instdir} | |
%{gem_extdir_mri} | |
-%{gem_instdir}/.github | |
-%exclude %{gem_instdir}/.gitignore | |
-%exclude %{gem_instdir}/.rubocop.yml | |
+%exclude %{gem_instdir}/.* | |
%license %{gem_instdir}/LICENSE | |
-%{gem_instdir}/appveyor.yml | |
+%exclude %{gem_instdir}/appveyor.yml | |
%{gem_instdir}/bench | |
%{gem_libdir} | |
%{gem_instdir}/msgpack.org.md | |
@@ -89,4 +80,71 @@ | |
%changelog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment