Created
January 13, 2024 03:34
-
-
Save pvalena/9c279943f50d9875e516c74653cc0be3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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-awesome_print/.generated.spec 2024-01-13 04:26:04.110187685 +0100 | |
+++ rubygem-awesome_print/rubygem-awesome_print.spec 2024-01-13 04:16:38.584274737 +0100 | |
@@ -1,24 +1,19 @@ | |
-Downloaded awesome_print-1.9.2 | |
-# Generated from awesome_print-2.0.0.pre2.gem by gem2rpm -*- rpm-spec -*- | |
+# Generated from awesome_print-1.0.2.gem by gem2rpm -*- rpm-spec -*- | |
%global gem_name awesome_print | |
+Summary: Pretty print Ruby objects with proper indentation and colors | |
Name: rubygem-%{gem_name} | |
-Version: 2.0.0.pre2 | |
+Version: 1.9.2 | |
Release: 1%{?dist} | |
-Summary: Pretty print Ruby objects with proper indentation and colors | |
License: MIT | |
URL: https://github.com/awesome-print/awesome_print | |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | |
BuildRequires: ruby(release) | |
-BuildRequires: rubygems-devel > 1.3.1 | |
+BuildRequires: rubygems-devel | |
BuildRequires: ruby | |
-# BuildRequires: rubygem(rspec) >= 3.0.0 | |
-# BuildRequires: rubygem(fuubar) | |
-# BuildRequires: rubygem(appraisal) | |
-# BuildRequires: rubygem(byebug) | |
-# BuildRequires: rubygem(fakefs) >= 0.2.1 | |
-# BuildRequires: rubygem(sqlite3) | |
-# BuildRequires: rubygem(nokogiri) >= 1.6.5 | |
+BuildRequires: rubygem-rspec | |
+BuildRequires: rubygem-nokogiri | |
+BuildRequires: rubygem-bigdecimal | |
BuildArch: noarch | |
%description | |
@@ -25,24 +20,19 @@ | |
Great Ruby debugging companion: pretty print Ruby objects to visualize their | |
structure. Supports custom object formatting via plugins. | |
- | |
%package doc | |
Summary: Documentation for %{name} | |
Requires: %{name} = %{version}-%{release} | |
BuildArch: noarch | |
%description doc | |
-Documentation for %{name}. | |
+Documentation for %{name} | |
%prep | |
%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 | |
@@ -50,32 +40,113 @@ | |
cp -a .%{gem_dir}/* \ | |
%{buildroot}%{gem_dir}/ | |
- | |
- | |
%check | |
-pushd .%{gem_instdir} | |
-# rspec spec | |
+pushd ./%{gem_instdir} | |
+sed -i -e '/[sS]imple[cC]ov/ s/^/#/' spec/spec_helper.rb | |
+rspec -Ilib spec/ | |
popd | |
%files | |
%dir %{gem_instdir} | |
-%exclude %{gem_instdir}/.gitignore | |
-%{gem_instdir}/Appraisals | |
-%license %{gem_instdir}/LICENSE | |
%{gem_libdir} | |
-%exclude %{gem_cache} | |
+%{gem_cache} | |
%{gem_spec} | |
+%license %{gem_instdir}/LICENSE | |
+%exclude %{gem_instdir}/.* | |
+%exclude %{gem_instdir}/Gemfile.lock | |
%files doc | |
%doc %{gem_docdir} | |
-%doc %{gem_instdir}/CHANGELOG.md | |
-%doc %{gem_instdir}/CONTRIBUTING.md | |
%{gem_instdir}/Gemfile | |
-%{gem_instdir}/Gemfile.lock | |
+%doc %{gem_instdir}/Appraisals | |
+%doc %{gem_instdir}/CHANGELOG.md | |
%doc %{gem_instdir}/README.md | |
+%doc %{gem_instdir}/CONTRIBUTING.md | |
%{gem_instdir}/Rakefile | |
%{gem_instdir}/spec | |
+%{gem_instdir}/init.rb | |
+%{gem_instdir}/%{gem_name}.gemspec | |
%changelog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment