diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-15 19:00:08 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-15 19:00:08 +0000 |
commit | 3aa665d118906710c90e182bca8bb7ac6d5f301b (patch) | |
tree | ac868add52b9f9ff9d9e99ccb9f9466ff16734c2 | |
parent | 4c8b02b2554040851798c5105517a106c1728e14 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-smart_sample.spec | 68 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 70 insertions, 0 deletions
@@ -0,0 +1 @@ +/smart_sample-0.0.0.gem diff --git a/rubygem-smart_sample.spec b/rubygem-smart_sample.spec new file mode 100644 index 0000000..6e2adf2 --- /dev/null +++ b/rubygem-smart_sample.spec @@ -0,0 +1,68 @@ +# Generated from smart_sample-0.0.0.gem by gem2rpm -*- rpm-spec -*- +%global gem_name smart_sample + +Name: rubygem-%{gem_name} +Version: 0.0.0 +Release: 1%{?dist} +Summary: Implementation of various selection strategies +License: MIT +URL: https://github.com/danmarcab/smart_sample +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +# BuildRequires: rubygem(rspec) >= 3.0 +# BuildRequires: rubygem(rspec) < 4 +# BuildRequires: rubygem(codeclimate-test-reporter) >= 0.9 +# BuildRequires: rubygem(codeclimate-test-reporter) < 1 +BuildArch: noarch + +%description +Implementation of various selection strategies, usually used in genetic +algorithms. + + +%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_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/spec + +%changelog +* Wed Sep 15 2021 mockbuilder - 0.0.0-1 +- Initial package @@ -0,0 +1 @@ +0c8f08fe5aecefb2fc62d83cace87fb7 smart_sample-0.0.0.gem |