Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fog-opennebula package #11138

Open
wants to merge 1 commit into
base: rpm/develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 Vitaly Pyslar <[email protected]> 0.0.5-1
- Add rubygem-fog-opennebula generated by gem2rpm using the default template