Revision 4ad40594
Added by Lukas Zapletal over 2 years ago
comps/comps-foreman-plugins-el8.xml | ||
---|---|---|
<packagereq type="default">rubygem-smart_proxy_dns_route53</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_dynflow</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_dynflow_core</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_host_reports</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_m2</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_monitoring</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_omaha</packagereq>
|
||
... | ... | |
<packagereq type="default">rubygem-smart_proxy_dns_route53-doc</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_dynflow_core-doc</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_dynflow-doc</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_host_reports-doc</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_m2-doc</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_monitoring-doc</packagereq>
|
||
<packagereq type="default">rubygem-smart_proxy_omaha-doc</packagereq>
|
comps/comps-foreman-plugins-rhel7.xml | ||
---|---|---|
<packagereq type="default">tfm-rubygem-smart_proxy_dns_route53</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_dynflow</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_dynflow_core</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_host_reports</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_m2</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_monitoring</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_omaha</packagereq>
|
||
... | ... | |
<packagereq type="default">tfm-rubygem-smart_proxy_dns_route53-doc</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_dynflow_core-doc</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_dynflow-doc</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_host_reports-doc</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_m2-doc</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_monitoring-doc</packagereq>
|
||
<packagereq type="default">tfm-rubygem-smart_proxy_omaha-doc</packagereq>
|
package_manifest.yaml | ||
---|---|---|
rubygem-smart_proxy_dns_powerdns: {}
|
||
rubygem-smart_proxy_dns_route53: {}
|
||
rubygem-smart_proxy_dynflow: {}
|
||
rubygem-smart_proxy_host_reports: {}
|
||
rubygem-smart_proxy_m2: {}
|
||
rubygem-smart_proxy_monitoring: {}
|
||
rubygem-smart_proxy_omaha: {}
|
packages/plugins/rubygem-smart_proxy_host_reports/rubygem-smart_proxy_host_reports.spec | ||
---|---|---|
# template: smart_proxy_plugin
|
||
%{?scl:%scl_package rubygem-%{gem_name}}
|
||
%{!?scl:%global pkg_name %{name}}
|
||
|
||
%{!?_root_datadir:%global _root_datadir %{_datadir}}
|
||
%{!?_root_localstatedir:%global _root_localstatedir %{_localstatedir}}
|
||
%{!?_root_sysconfdir:%global _root_sysconfdir %{_sysconfdir}}
|
||
|
||
%global gem_name smart_proxy_host_reports
|
||
%global plugin_name host_reports
|
||
|
||
%global foreman_proxy_min_version 2.5
|
||
%global foreman_proxy_dir %{_root_datadir}/foreman-proxy
|
||
%global foreman_proxy_statedir %{_root_localstatedir}/lib/foreman-proxy
|
||
%global foreman_proxy_bundlerd_dir %{foreman_proxy_dir}/bundler.d
|
||
%global foreman_proxy_settingsd_dir %{_root_sysconfdir}/foreman-proxy/settings.d
|
||
|
||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
||
Version: 0.0.3
|
||
Release: 1%{?foremandist}%{?dist}
|
||
Summary: Transform and forward reports from config management or hosts
|
||
Group: Applications/Internet
|
||
License: GPLv3
|
||
URL: https://github.com/theforeman/%{gem_name}
|
||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||
|
||
# start specfile generated dependencies
|
||
Requires: foreman-proxy >= %{foreman_proxy_min_version}
|
||
Requires: %{?scl_prefix_ruby}ruby(release)
|
||
Requires: %{?scl_prefix_ruby}ruby
|
||
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
||
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
||
BuildRequires: %{?scl_prefix_ruby}ruby
|
||
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
||
BuildArch: noarch
|
||
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
||
Provides: foreman-proxy-plugin-%{plugin_name} = %{version}
|
||
# end specfile generated dependencies
|
||
|
||
%description
|
||
Foreman Host Reports provides an API for configuration management platforms
|
||
like Ansible or Puppet, or managed hosts, to upload reports and facts.
|
||
|
||
|
||
%package doc
|
||
Summary: Documentation for %{name}
|
||
Group: Documentation
|
||
Requires: %{name} = %{version}-%{release}
|
||
BuildArch: noarch
|
||
|
||
%description doc
|
||
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}
|
||
cp -a .%{gem_dir}/* \
|
||
%{buildroot}%{gem_dir}/
|
||
|
||
# bundler file
|
||
mkdir -p %{buildroot}%{foreman_proxy_bundlerd_dir}
|
||
mv %{buildroot}%{gem_instdir}/bundler.d/%{plugin_name}.rb \
|
||
%{buildroot}%{foreman_proxy_bundlerd_dir}
|
||
|
||
# sample config
|
||
mkdir -p %{buildroot}%{foreman_proxy_settingsd_dir}
|
||
mv %{buildroot}%{gem_instdir}/settings.d/%{plugin_name}.yml.example \
|
||
%{buildroot}%{foreman_proxy_settingsd_dir}/%{plugin_name}.yml
|
||
|
||
# data dir
|
||
install -d -m755 %{buildroot}%{foreman_proxy_statedir}/%{plugin_name}
|
||
|
||
%files
|
||
%dir %{gem_instdir}
|
||
%config(noreplace) %attr(0640, root, foreman-proxy) %{foreman_proxy_settingsd_dir}/%{plugin_name}.yml
|
||
%license %{gem_instdir}/LICENSE
|
||
%exclude %{gem_instdir}/settings.d
|
||
%{gem_libdir}
|
||
%{foreman_proxy_bundlerd_dir}/%{plugin_name}.rb
|
||
%exclude %{gem_cache}
|
||
%{gem_spec}
|
||
%attr(0755, foreman-proxy, foreman-proxy) %{foreman_proxy_statedir}/%{plugin_name}
|
||
|
||
%files doc
|
||
%doc %{gem_docdir}
|
||
%doc %{gem_instdir}/README.md
|
||
|
||
%changelog
|
||
* Fri Oct 15 2021 Lukas Zapletal <lzap+rpm@redhat.com> 0.0.3-1
|
||
- Initial version
|
packages/plugins/rubygem-smart_proxy_host_reports/smart_proxy_host_reports-0.0.3.gem | ||
---|---|---|
../../../.git/annex/objects/kF/fZ/SHA256E-s23552--4b37cb44309b8823c2de7dac742528e116d242cddab53597f7d7c3d662c55a82.3.gem/SHA256E-s23552--4b37cb44309b8823c2de7dac742528e116d242cddab53597f7d7c3d662c55a82.3.gem
|
rel-eng/tito.props | ||
---|---|---|
rubygem-smart_proxy_dns_route53
|
||
rubygem-smart_proxy_dynflow
|
||
rubygem-smart_proxy_dynflow_core
|
||
rubygem-smart_proxy_host_reports
|
||
rubygem-smart_proxy_m2
|
||
rubygem-smart_proxy_monitoring
|
||
rubygem-smart_proxy_omaha
|
||
... | ... | |
rubygem-smart_proxy_dns_route53
|
||
rubygem-smart_proxy_dynflow
|
||
rubygem-smart_proxy_dynflow_core
|
||
rubygem-smart_proxy_host_reports
|
||
rubygem-smart_proxy_m2
|
||
rubygem-smart_proxy_monitoring
|
||
rubygem-smart_proxy_omaha
|
Also available in: Unified diff
Added smart_proxy_host_reports new package