-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/plugins/rubygem-foreman_opennebula/foreman_opennebula-2.3.0.gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../.git/annex/objects/6M/4W/SHA256E-s28672--dff9066b39b067d25c7c1c407d8c09c72934ac9633b77331510fb4c3ee2f151d.0.gem/SHA256E-s28672--dff9066b39b067d25c7c1c407d8c09c72934ac9633b77331510fb4c3ee2f151d.0.gem |
91 changes: 91 additions & 0 deletions
91
packages/plugins/rubygem-foreman_opennebula/rubygem-foreman_opennebula.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# template: foreman_plugin | ||
%global gem_name foreman_opennebula | ||
%global plugin_name opennebula | ||
%global foreman_min_version 3.7 | ||
|
||
Name: rubygem-%{gem_name} | ||
Version: 2.3.0 | ||
Release: 1%{?foremandist}%{?dist} | ||
Summary: Foreman OpenNebula compute resource plugin | ||
License: GPLv3 | ||
URL: https://github.com/theforeman/foreman_opennebula | ||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | ||
|
||
# start specfile generated dependencies | ||
Requires: foreman >= %{foreman_min_version} | ||
BuildRequires: foreman-assets >= %{foreman_min_version} | ||
BuildRequires: foreman-plugin >= %{foreman_min_version} | ||
Requires: ruby >= 2.7 | ||
BuildRequires: ruby >= 2.7 | ||
BuildRequires: rubygems-devel | ||
BuildRequires: (rubygem(fog-opennebula) with rubygem(fog-opennebula) < 1) | ||
BuildArch: noarch | ||
Provides: foreman-plugin-%{plugin_name} = %{version} | ||
# end specfile generated dependencies | ||
|
||
# start package.json devDependencies BuildRequires | ||
# end package.json devDependencies BuildRequires | ||
|
||
# start package.json dependencies BuildRequires | ||
# end package.json dependencies BuildRequires | ||
|
||
%description | ||
Provision and manage OpenNebula VMs from Foreman. | ||
|
||
|
||
%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}/ | ||
|
||
%foreman_bundlerd_file | ||
%foreman_precompile_plugin -s | ||
|
||
%files | ||
%dir %{gem_instdir} | ||
%license %{gem_instdir}/LICENSE | ||
%{gem_instdir}/app | ||
%{gem_instdir}/config | ||
%{gem_libdir} | ||
%{gem_instdir}/locale | ||
%exclude %{gem_instdir}/package.json | ||
%exclude %{gem_instdir}/webpack | ||
%exclude %{gem_cache} | ||
%{gem_spec} | ||
%{foreman_bundlerd_plugin} | ||
%{foreman_assets_plugin} | ||
%{foreman_assets_foreman} | ||
%{foreman_webpack_plugin} | ||
%{foreman_webpack_foreman} | ||
|
||
%files doc | ||
%doc %{gem_docdir} | ||
%doc %{gem_instdir}/README.md | ||
%{gem_instdir}/Rakefile | ||
%{gem_instdir}/test | ||
|
||
%posttrans | ||
%{foreman_plugin_log} | ||
|
||
%changelog | ||
* Mon Aug 19 2024 Vitaly Pyslar <[email protected]> 2.3.0-1 | ||
- Add rubygem-foreman_opennebula generated by gem2rpm using the foreman_plugin template |