Project

General

Profile

« Previous | Next » 

Revision f798654d

Added by Dirk Götz over 1 year ago

Update rubygem-foreman_monitoring to 3.0.0

View differences:

packages/plugins/rubygem-foreman_monitoring/rubygem-foreman_monitoring.spec
# template: foreman_plugin
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}
%global gem_name foreman_monitoring
%global plugin_name monitoring
%global foreman_min_version 2.2
%global foreman_min_version 3.0.0
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 2.1.0
Release: 4%{?foremandist}%{?dist}
Name: rubygem-%{gem_name}
Version: 3.0.0
Release: 1%{?foremandist}%{?dist}
Summary: Foreman plugin for monitoring system integration
Group: Applications/Systems
License: GPLv3
URL: https://github.com/theforeman/foreman_monitoring
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) < 2.0
Requires: ruby
BuildRequires: foreman-plugin >= %{foreman_min_version}
BuildRequires: %{?scl_prefix}rubygem(deface) < 2.0
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} = %{version}
# end specfile generated dependencies
......
%package doc
Summary: Documentation for %{pkg_name}
Group: Documentation
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%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}
%setup -q -n %{gem_name}-%{version}
%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 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
%{?scl:scl enable %{scl} - << \EOF}
%gem_install
%{?scl:EOF}
%install
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%foreman_bundlerd_file
......
%{foreman_plugin_log}
%changelog
* Wed Nov 02 2022 Dirk Goetz 3.0.0-1
- Update to 3.0.0
* Mon May 09 2022 Evgeni Golov - 2.1.0-4
- log plugin installation in posttrans

Also available in: Unified diff