Skip to content

Commit

Permalink
Update rubygem-foreman_dhcp_browser to 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Jan 24, 2025
1 parent 1dc402d commit 76e43c5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 31 deletions.

This file was deleted.

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
Expand All @@ -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}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 76e43c5

Please sign in to comment.