diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-16 18:55:28 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-16 18:55:28 +0000 |
commit | 5c9d22e5f65b5301be680cd00578fc18978641cd (patch) | |
tree | 03399ce47b56596d1a357ddd49d3832734c00f5a | |
parent | 13fa4c89a0f372bae09202bcd817586c2c755cb8 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-woocommerce.spec | 69 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 71 insertions, 0 deletions
@@ -0,0 +1 @@ +/woocommerce-0.0.3.gem diff --git a/rubygem-woocommerce.spec b/rubygem-woocommerce.spec new file mode 100644 index 0000000..9938fca --- /dev/null +++ b/rubygem-woocommerce.spec @@ -0,0 +1,69 @@ +# Generated from woocommerce-0.0.3.gem by gem2rpm -*- rpm-spec -*- +%global gem_name woocommerce + +Name: rubygem-%{gem_name} +Version: 0.0.3 +Release: 1%{?dist} +Summary: Ruby WooCommerce client library +License: MIT +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +# BuildRequires: rubygem(rspec) +# BuildRequires: rubygem(awesome_print) +BuildArch: noarch + +%description +Ruby WooCommerce client library. + + +%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} +%exclude %{gem_instdir}/.gitignore +%license %{gem_instdir}/LICENSE.txt +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/Gemfile +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%{gem_instdir}/woocommerce.gemspec + +%changelog +* Thu Sep 16 2021 mockbuilder - 0.0.3-1 +- Initial package @@ -0,0 +1 @@ +81b683ea48c4751b469cea35e9c689e1 woocommerce-0.0.3.gem |