From 7f2f3b527a0286df722224334ed2560c885421c9 Mon Sep 17 00:00:00 2001 From: Vitaly Pyslar Date: Mon, 19 Aug 2024 21:23:10 +0300 Subject: [PATCH] Add fog-opennebula package --- comps/comps-foreman-plugins-el8.xml | 2 + comps/comps-foreman-plugins-el9.xml | 2 + package_manifest.yaml | 1 + .../fog-opennebula-0.0.5.gem | 1 + .../rubygem-fog-opennebula.spec | 69 +++++++++++++++++++ 5 files changed, 75 insertions(+) create mode 120000 packages/plugins/rubygem-fog-opennebula/fog-opennebula-0.0.5.gem create mode 100644 packages/plugins/rubygem-fog-opennebula/rubygem-fog-opennebula.spec diff --git a/comps/comps-foreman-plugins-el8.xml b/comps/comps-foreman-plugins-el8.xml index a0583df0ff0..edda2b3ce4f 100644 --- a/comps/comps-foreman-plugins-el8.xml +++ b/comps/comps-foreman-plugins-el8.xml @@ -61,6 +61,7 @@ rubygem-faraday_middleware rubygem-ffi-compiler rubygem-fog-kubevirt + rubygem-fog-opennebula rubygem-fog-proxmox rubygem-foreman-tasks rubygem-foreman_acd @@ -236,6 +237,7 @@ rubygem-faraday_middleware-doc rubygem-ffi-compiler-doc rubygem-fog-kubevirt-doc + rubygem-fog-opennebula-doc rubygem-fog-proxmox-doc rubygem-foreman_acd-doc rubygem-foreman_ansible-doc diff --git a/comps/comps-foreman-plugins-el9.xml b/comps/comps-foreman-plugins-el9.xml index a0583df0ff0..edda2b3ce4f 100644 --- a/comps/comps-foreman-plugins-el9.xml +++ b/comps/comps-foreman-plugins-el9.xml @@ -61,6 +61,7 @@ rubygem-faraday_middleware rubygem-ffi-compiler rubygem-fog-kubevirt + rubygem-fog-opennebula rubygem-fog-proxmox rubygem-foreman-tasks rubygem-foreman_acd @@ -236,6 +237,7 @@ rubygem-faraday_middleware-doc rubygem-ffi-compiler-doc rubygem-fog-kubevirt-doc + rubygem-fog-opennebula-doc rubygem-fog-proxmox-doc rubygem-foreman_acd-doc rubygem-foreman_ansible-doc diff --git a/package_manifest.yaml b/package_manifest.yaml index 74cedb9372b..711a4b069e6 100644 --- a/package_manifest.yaml +++ b/package_manifest.yaml @@ -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: {} diff --git a/packages/plugins/rubygem-fog-opennebula/fog-opennebula-0.0.5.gem b/packages/plugins/rubygem-fog-opennebula/fog-opennebula-0.0.5.gem new file mode 120000 index 00000000000..890e39700b0 --- /dev/null +++ b/packages/plugins/rubygem-fog-opennebula/fog-opennebula-0.0.5.gem @@ -0,0 +1 @@ +../../../.git/annex/objects/jv/vz/SHA256E-s20480--6bc27627b24cb074d4197d374e635c2645b349a46bd5e08d0bbb0b50f520532e.5.gem/SHA256E-s20480--6bc27627b24cb074d4197d374e635c2645b349a46bd5e08d0bbb0b50f520532e.5.gem \ No newline at end of file diff --git a/packages/plugins/rubygem-fog-opennebula/rubygem-fog-opennebula.spec b/packages/plugins/rubygem-fog-opennebula/rubygem-fog-opennebula.spec new file mode 100644 index 00000000000..272afcab45b --- /dev/null +++ b/packages/plugins/rubygem-fog-opennebula/rubygem-fog-opennebula.spec @@ -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 +