-
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.
Regenerate spec file for foreman_azure_rm
- Loading branch information
1 parent
335595e
commit 712fb77
Showing
1 changed file
with
10 additions
and
24 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
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 | ||
|
@@ -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} | ||
|
@@ -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 | ||
|
||
|