diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-12 19:02:24 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-12 19:02:24 +0000 |
commit | 013d98b1fd589a5b318f71e8ba9d4f2bc9181005 (patch) | |
tree | c7efb002c92a85929becee8ed43f8d42ae9c4f86 | |
parent | 8b7e870ea6f3e930ee6748b6f788e38b0a8ed308 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-anonymous_active_record.spec | 81 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +/anonymous_active_record-1.0.8.gem diff --git a/rubygem-anonymous_active_record.spec b/rubygem-anonymous_active_record.spec new file mode 100644 index 0000000..6b0a40e --- /dev/null +++ b/rubygem-anonymous_active_record.spec @@ -0,0 +1,81 @@ +# Generated from anonymous_active_record-1.0.8.gem by gem2rpm -*- rpm-spec -*- +%global gem_name anonymous_active_record + +Name: rubygem-%{gem_name} +Version: 1.0.8 +Release: 1%{?dist} +Summary: Almost Anonymous ActiveRecord classes +License: MIT +URL: https://github.com/pboling/anonymous_active_record +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby >= 2.4 +# BuildRequires: rubygem(rspec) >= 3 +# BuildRequires: rubygem(rspec) < 4 +# BuildRequires: rubygem(rspec-block_is_expected) >= 1 +# BuildRequires: rubygem(rspec-block_is_expected) < 2 +# BuildRequires: rubygem(rubocop) >= 1.9 +# BuildRequires: rubygem(rubocop) < 2 +# BuildRequires: rubygem(rubocop-md) +# BuildRequires: rubygem(rubocop-minitest) +# BuildRequires: rubygem(rubocop-packaging) +# BuildRequires: rubygem(rubocop-performance) +# BuildRequires: rubygem(rubocop-rake) +# BuildRequires: rubygem(rubocop-rspec) +# BuildRequires: rubygem(simplecov) +# BuildRequires: rubygem(sqlite3) >= 1 +# BuildRequires: rubygem(sqlite3) < 2 +BuildArch: noarch + +%description +Replacement for broken Class.new(ActiveRecord::Base). + + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +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 +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + + + +%check +pushd .%{gem_instdir} +# rspec spec +popd + +%files +%dir %{gem_instdir} +%{gem_instdir}/CODE_OF_CONDUCT.md +%license %{gem_instdir}/LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.md +%{gem_instdir}/spec + +%changelog +* Sun Sep 12 2021 mockbuilder - 1.0.8-1 +- Initial package @@ -0,0 +1 @@ +5774677295b763619d2cb05f9fd9a035 anonymous_active_record-1.0.8.gem |