Revision f6b74a82
Added by Leos Stejskal 12 months ago
packages/plugins/rubygem-foreman_puppet/rubygem-foreman_puppet.spec | ||
---|---|---|
# template: foreman_plugin
|
||
%{?scl:%scl_package rubygem-%{gem_name}}
|
||
%{!?scl:%global pkg_name %{name}}
|
||
%{!?_root_sysconfdir:%global _root_sysconfdir %{_sysconfdir}}
|
||
|
||
%global gem_name foreman_puppet
|
||
%global plugin_name puppet
|
||
%global foreman_min_version 3.7
|
||
%global release 1
|
||
|
||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
||
Name: rubygem-%{gem_name}
|
||
Version: 6.0.0
|
||
Release: %{?prerelease:0.}%{release}%{?prerelease}%{?foremandist}%{?dist}
|
||
Summary: Adds puppet ENC features
|
||
Group: Applications/Systems
|
||
Release: 2%{?foremandist}%{?dist}
|
||
Summary: Add Puppet features to Foreman
|
||
License: GPLv3
|
||
URL: https://theforeman.org
|
||
Source0: https://rubygems.org/downloads/%{gem_name}-%{version}%{?prerelease}.gem
|
||
|
||
Autoreq: 0
|
||
URL: https://github.com/theforeman/foreman_puppet
|
||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||
|
||
# start specfile generated dependencies
|
||
Requires: foreman >= %{foreman_min_version}
|
||
... | ... | |
BuildRequires: npm(jed) < 2.0.0
|
||
# end package.json devDependencies BuildRequires
|
||
|
||
# start package.json dependencies BuildRequires
|
||
# end package.json dependencies BuildRequires
|
||
|
||
%description
|
||
Allow assigning Puppet environmets and classes to the Foreman Hosts.
|
||
Allow assigning Puppet environments and classes to the Foreman Hosts.
|
||
|
||
|
||
%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}%{?prerelease}
|
||
|
||
%{?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}
|
||
... | ... | |
%{foreman_plugin_log}
|
||
|
||
%changelog
|
||
* Thu Jun 22 2023 Leos Stejskal <lstejska@redhat.com> 6.0.0-2
|
||
- Update spec file from latest template
|
||
|
||
* Mon Jun 12 2023 Leos Stejskal <lstejska@redhat.com> 6.0.0-1
|
||
- Update to 6.0.0
|
||
|
Also available in: Unified diff
foreman_puppet - Update spec file