Skip to content

Commit

Permalink
Add fog-opennebula package
Browse files Browse the repository at this point in the history
  • Loading branch information
pyslarvt committed Aug 20, 2024
1 parent 45414b9 commit 7f2f3b5
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 0 deletions.
2 changes: 2 additions & 0 deletions comps/comps-foreman-plugins-el8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<packagereq type="default">rubygem-faraday_middleware</packagereq>
<packagereq type="default">rubygem-ffi-compiler</packagereq>
<packagereq type="default">rubygem-fog-kubevirt</packagereq>
<packagereq type="default">rubygem-fog-opennebula</packagereq>
<packagereq type="default">rubygem-fog-proxmox</packagereq>
<packagereq type="default">rubygem-foreman-tasks</packagereq>
<packagereq type="default">rubygem-foreman_acd</packagereq>
Expand Down Expand Up @@ -236,6 +237,7 @@
<packagereq type="default">rubygem-faraday_middleware-doc</packagereq>
<packagereq type="default">rubygem-ffi-compiler-doc</packagereq>
<packagereq type="default">rubygem-fog-kubevirt-doc</packagereq>
<packagereq type="default">rubygem-fog-opennebula-doc</packagereq>
<packagereq type="default">rubygem-fog-proxmox-doc</packagereq>
<packagereq type="default">rubygem-foreman_acd-doc</packagereq>
<packagereq type="default">rubygem-foreman_ansible-doc</packagereq>
Expand Down
2 changes: 2 additions & 0 deletions comps/comps-foreman-plugins-el9.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<packagereq type="default">rubygem-faraday_middleware</packagereq>
<packagereq type="default">rubygem-ffi-compiler</packagereq>
<packagereq type="default">rubygem-fog-kubevirt</packagereq>
<packagereq type="default">rubygem-fog-opennebula</packagereq>
<packagereq type="default">rubygem-fog-proxmox</packagereq>
<packagereq type="default">rubygem-foreman-tasks</packagereq>
<packagereq type="default">rubygem-foreman_acd</packagereq>
Expand Down Expand Up @@ -236,6 +237,7 @@
<packagereq type="default">rubygem-faraday_middleware-doc</packagereq>
<packagereq type="default">rubygem-ffi-compiler-doc</packagereq>
<packagereq type="default">rubygem-fog-kubevirt-doc</packagereq>
<packagereq type="default">rubygem-fog-opennebula-doc</packagereq>
<packagereq type="default">rubygem-fog-proxmox-doc</packagereq>
<packagereq type="default">rubygem-foreman_acd-doc</packagereq>
<packagereq type="default">rubygem-foreman_ansible-doc</packagereq>
Expand Down
1 change: 1 addition & 0 deletions package_manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ ruby_plugin_packages:
rubygem-faraday-detailed_logger: {}
rubygem-ffi-compiler: {}
rubygem-fog-kubevirt: {}
rubygem-fog-opennebula: {}
rubygem-fog-proxmox: {}
rubygem-fugit: {}
rubygem-gapic-common: {}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# template: default
%global gem_name fog-opennebula

Name: rubygem-%{gem_name}
Version: 0.0.5
Release: 1%{?dist}
Summary: Module for the fog gem to support OpenNebula
License: MIT
URL: https://github.com/fog/fog-opennebula
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

# start specfile generated dependencies
Requires: ruby >= 2.7.0
BuildRequires: ruby >= 2.7.0
BuildRequires: rubygems-devel
BuildArch: noarch
# end specfile generated dependencies

%description
This library can be used as a module for fog or as standalone provider.


%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}/

%files
%dir %{gem_instdir}
%{gem_instdir}/.directory
%exclude %{gem_instdir}/.github
%exclude %{gem_instdir}/.gitignore
%license %{gem_instdir}/LICENSE.md
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CONTRIBUTORS.md
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%exclude %{gem_instdir}/fog-opennebula.gemspec
%{gem_instdir}/tests

%changelog
* Mon Aug 19 2024 root 0.0.5-1
- Add rubygem-fog-opennebula generated by gem2rpm using the default template

0 comments on commit 7f2f3b5

Please sign in to comment.