diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-13 22:11:20 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-13 22:11:20 +0000 |
commit | 1445e64b251e5df9f62811e7ae386e7f28269493 (patch) | |
tree | 8c4fa1c6bb44cb4eb0a002819fd2f6cc1c362d68 | |
parent | b5efbf8fd59ba6ec3a050e0d377e8ad6c1403934 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-krpcx.spec | 66 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 68 insertions, 0 deletions
@@ -0,0 +1 @@ +/krpcx-0.0.1.gem diff --git a/rubygem-krpcx.spec b/rubygem-krpcx.spec new file mode 100644 index 0000000..818e2e9 --- /dev/null +++ b/rubygem-krpcx.spec @@ -0,0 +1,66 @@ +# Generated from krpcx-0.0.1.gem by gem2rpm -*- rpm-spec -*- +%global gem_name krpcx + +Name: rubygem-%{gem_name} +Version: 0.0.1 +Release: 1%{?dist} +Summary: Extending kRPC-rb +License: MIT +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby >= 2.1.0 +# BuildRequires: rubygem(rspec) >= 3.6 +# BuildRequires: rubygem(rspec) < 4 +BuildArch: noarch + +%description +Extending kRPC-rb. + + +%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}/Gemfile +%doc %{gem_instdir}/README.md +%{gem_instdir}/krpcx.gemspec + +%changelog +* Mon Sep 13 2021 mockbuilder - 0.0.1-1 +- Initial package @@ -0,0 +1 @@ +421814ecea129a3f45a2f1a841b170ca krpcx-0.0.1.gem |