Skip to content

Commit

Permalink
Regenerate spec file for foreman_azure_rm
Browse files Browse the repository at this point in the history
  • Loading branch information
nofaralfasi authored and ekohl committed Mar 11, 2024
1 parent 335595e commit 712fb77
Showing 1 changed file with 10 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# template: foreman_plugin
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}

%global gem_name foreman_azure_rm
%global plugin_name azure_rm
%global foreman_min_version 3.7

Name: %{?scl_prefix}rubygem-%{gem_name}
Name: rubygem-%{gem_name}
Version: 2.2.11
Release: 1%{?foremandist}%{?dist}
Release: 2%{?foremandist}%{?dist}
Summary: Azure Resource Manager as a compute resource for The Foreman
Group: Applications/Systems
License: GPLv3
URL: https://github.com/theforeman/foreman_azure_rm
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Expand All @@ -37,36 +33,23 @@ Foreman.


%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}
Expand Down Expand Up @@ -99,6 +82,9 @@ cp -a .%{gem_dir}/* \
%{foreman_plugin_log}

%changelog
* Sun Mar 10 2024 nofaralfasi <[email protected]> 2.2.11-2
- Regenerate spec file based on the latest template

* Mon Jan 08 2024 Leos Stejskal <[email protected]> - 2.2.11-1
- Update to 2.2.11

Expand Down

0 comments on commit 712fb77

Please sign in to comment.