Project

General

Profile

« Previous | Next » 

Revision 40c76da0

Added by Dirk Götz almost 6 years ago

Add rubygem-smart_proxy_spacewalk package

View differences:

comps/comps-foreman-plugins-rhel7.xml
<packagereq type="default">rubygem-smart_proxy_realm_ad_plugin</packagereq>
<packagereq type="default">rubygem-smart_proxy_remote_execution_ssh</packagereq>
<packagereq type="default">rubygem-smart_proxy_salt</packagereq>
<packagereq type="default">rubygem-smart_proxy_spacewalk</packagereq>
<packagereq type="default">tfm-rubygem-angular-rails-templates</packagereq>
<packagereq type="default">tfm-rubygem-azure</packagereq>
<packagereq type="default">tfm-rubygem-azure-core</packagereq>
......
<packagereq type="default">rubygem-smart_proxy_realm_ad_plugin-doc</packagereq>
<packagereq type="default">rubygem-smart_proxy_remote_execution_ssh-doc</packagereq>
<packagereq type="default">rubygem-smart_proxy_salt-doc</packagereq>
<packagereq type="default">rubygem-smart_proxy_spacewalk-doc</packagereq>
<packagereq type="default">tfm-rubygem-angular-rails-templates-doc</packagereq>
<packagereq type="default">tfm-rubygem-azure-core-doc</packagereq>
<packagereq type="default">tfm-rubygem-azure-doc</packagereq>
package_manifest.yaml
rubygem-smart_proxy_realm_ad_plugin: {}
rubygem-smart_proxy_remote_execution_ssh: {}
rubygem-smart_proxy_salt: {}
rubygem-smart_proxy_spacewalk: {}
rubygem-systemu: {}
rubygem-ttfunk: {}
rubygem-wicked: {}
packages/plugins/rubygem-smart_proxy_spacewalk/rubygem-smart_proxy_spacewalk.spec
%global gem_name smart_proxy_spacewalk
%global plugin_name spacewalk
%global foreman_proxy_min_version 1.15
%global foreman_proxy_dir %{_datarootdir}/foreman-proxy
%global foreman_proxy_bundlerd_dir %{foreman_proxy_dir}/bundler.d
%global foreman_proxy_settingsd_dir %{_sysconfdir}/foreman-proxy/settings.d
Name: rubygem-%{gem_name}
Version: 0.1.0
Release: 1%{?foremandist}%{?dist}
Summary: Spacewalk integration support for smart-proxy
Group: Applications/Internet
License: GPLv3
URL: https://github.com/dm-drogeriemarkt/smart_proxy_spacewalk
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# start generated dependencies
Requires: foreman-proxy >= %{foreman_proxy_min_version}
Requires: ruby(release)
Requires: ruby
Requires: ruby(rubygems)
Requires: rubygem(json)
BuildRequires: ruby(release)
BuildRequires: ruby
BuildRequires: rubygems-devel
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
Provides: foreman-proxy-plugin-%{plugin_name}
# end generated dependencies
%description
This plug-in adds support for managing hosts registered at a spacewalk server
to Foreman's Smart Proxy.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build
# Create the gem as gem install only works on a gem file
gem build %{gem_name}.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
%gem_install
%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/spacewalk.yml.example \
%{buildroot}%{foreman_proxy_settingsd_dir}/spacewalk.yml
%files
%dir %{gem_instdir}
%config(noreplace) %attr(0640, root, foreman-proxy) %{foreman_proxy_settingsd_dir}/spacewalk.yml
%license %{gem_instdir}/LICENSE
%{gem_instdir}/MAINTAINERS
%{gem_instdir}/bundler.d
%{gem_libdir}
%{gem_instdir}/settings.d
%exclude %{gem_instdir}/smart_proxy_spacewalk.gemspec
%{foreman_proxy_bundlerd_dir}/%{plugin_name}.rb
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/test
%changelog
* Tue Jun 05 2018 Dirk Goetz <dirk.goetz@netways.de> 0.1.0-1
- Add rubygem-smart_proxy_spacewalk generated by gem2rpm using the smart_proxy_plugin template
packages/plugins/rubygem-smart_proxy_spacewalk/smart_proxy_spacewalk-0.1.0.gem
../../../.git/annex/objects/76/8F/SHA256E-s20992--362e399a08081ccc910ea34b963a36304deb2ec3408917e39d048aebe2338bd7.0.gem/SHA256E-s20992--362e399a08081ccc910ea34b963a36304deb2ec3408917e39d048aebe2338bd7.0.gem
rel-eng/tito.props
rubygem-rqrcode
rubygem-safe_yaml
rubygem-smart_proxy_dynflow_core
rubygem-smart_proxy_spacewalk
rubygem-systemu
rubygem-ttfunk
rubygem-wicked

Also available in: Unified diff