-
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.
Update rubygem-foreman_dhcp_browser to 0.1.1
- Loading branch information
Showing
3 changed files
with
16 additions
and
31 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
packages/plugins/rubygem-foreman_dhcp_browser/foreman_dhcp_browser-0.0.8.gem
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
packages/plugins/rubygem-foreman_dhcp_browser/foreman_dhcp_browser-0.1.1.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/FQ/K5/SHA256E-s18944--50624206539920afb9b251465c924602a5fc60e927ada0dcc591f3e7f58a1b63.1.gem/SHA256E-s18944--50624206539920afb9b251465c924602a5fc60e927ada0dcc591f3e7f58a1b63.1.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 |
---|---|---|
@@ -1,36 +1,27 @@ | ||
# template: foreman_plugin | ||
%{?scl:%scl_package rubygem-%{gem_name}} | ||
%{!?scl:%global pkg_name %{name}} | ||
|
||
%global gem_name foreman_dhcp_browser | ||
%global plugin_name dhcp_browser | ||
%global foreman_min_version 1.12.0 | ||
%global foreman_min_version 3.14.0 | ||
|
||
Summary: DHCP browser plugin for Foreman | ||
Name: %{?scl_prefix}rubygem-%{gem_name} | ||
Version: 0.0.8 | ||
Release: 6%{?foremandist}%{?dist} | ||
Name: rubygem-%{gem_name} | ||
Version: 0.1.1 | ||
Release: 1%{?foremandist}%{?dist} | ||
Group: Applications/Systems | ||
License: GPLv3 | ||
URL: https://github.com/theforeman/foreman_dhcp_browser | ||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | ||
|
||
# start specfile generated dependencies | ||
Requires: foreman >= %{foreman_min_version} | ||
Requires: %{?scl_prefix_ruby}ruby(release) | ||
Requires: %{?scl_prefix_ruby}ruby | ||
Requires: %{?scl_prefix_ruby}ruby(rubygems) | ||
Requires: %{?scl_prefix}rubygem(deface) | ||
BuildRequires: foreman-plugin >= %{foreman_min_version} | ||
BuildRequires: %{?scl_prefix_ruby}ruby(release) | ||
BuildRequires: %{?scl_prefix_ruby}ruby | ||
BuildRequires: %{?scl_prefix_ruby}rubygems-devel | ||
Requires: ruby | ||
BuildRequires: ruby | ||
BuildRequires: rubygems-devel | ||
BuildArch: noarch | ||
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} | ||
Provides: foreman-plugin-%{plugin_name} | ||
Provides: foreman-plugin-%{plugin_name} = %{version} | ||
# end specfile generated dependencies | ||
Provides: foreman-plugin-dhcp-browser | ||
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}} | ||
Provides: foreman-plugin-dhcp-browser = %{version} | ||
|
||
%description | ||
Plugin for Foreman to browse and add/edit/delete DHCP leases independent of | ||
|
@@ -40,35 +31,26 @@ Foreman's host creation. | |
%package doc | ||
BuildArch: noarch | ||
Group: Documentation | ||
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} | ||
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc} | ||
Summary: Documentation for %{pkg_name} | ||
Requires: %{name} = %{version}-%{release} | ||
Summary: Documentation for %{name} | ||
|
||
%description doc | ||
Documentation for %{pkg_name}. | ||
Documentation for %{name}. | ||
|
||
%prep | ||
%{?scl:scl enable %{scl} - << \EOF} | ||
gem unpack %{SOURCE0} | ||
%{?scl:EOF} | ||
|
||
%setup -q -D -T -n %{gem_name}-%{version} | ||
|
||
%{?scl:scl enable %{scl} - << \EOF} | ||
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec | ||
%{?scl:EOF} | ||
|
||
%build | ||
# Create the gem as gem install only works on a gem file | ||
%{?scl:scl enable %{scl} - << \EOF} | ||
gem build %{gem_name}.gemspec | ||
%{?scl:EOF} | ||
|
||
# %%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 | ||
%{?scl:scl enable %{scl} - << \EOF} | ||
%gem_install | ||
%{?scl:EOF} | ||
|
||
%install | ||
mkdir -p %{buildroot}%{gem_dir} | ||
|
@@ -96,6 +78,9 @@ cp -pa .%{gem_dir}/* \ | |
%{foreman_plugin_log} | ||
|
||
%changelog | ||
* Fri Jan 24 2025 Ewoud Kohl van Wijngaarden <[email protected]> - 0.1.1-1 | ||
- Update to 0.1.1 | ||
|
||
* Mon May 09 2022 Evgeni Golov - 0.0.8-6 | ||
- log plugin installation in posttrans | ||
|
||
|