Project

General

Profile

« Previous | Next » 

Revision 6d9f3d08

Added by specs-from-koji (Jenkins) almost 11 years ago

Update ruby193-rubygem-foreman_discovery to 1.0.2-7.el6

View differences:

rpms/epel-6/ruby193-rubygem-foreman_discovery/rubygem-foreman_discovery.spec
%global gem_name foreman_discovery
%define rubyabi 1.9.1
%global foreman_bundlerd_dir /usr/share/foreman/bundler.d
%global foreman_dir /usr/share/foreman
%global foreman_bundlerd_dir %{foreman_dir}/bundler.d
Summary: MaaS Discovery Plugin for Foreman
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 1.0.2
Release: 6%{?dist}
Release: 7%{?dist}
Group: Applications/System
License: GPLv3
URL: http://github.com/theforeman/foreman_discovery
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
Patch0: 2949_no_bundler.patch
Requires: foreman >= 1.2.0
Requires: %{?scl_prefix}rubygem(deface)
Requires: %{?scl_prefix}rubygem(open4)
Requires: %{?scl_prefix}rubygem(ftools)
Requires: advancecomp
Requires: squashfs-tools
Requires: sudo
%if 0%{?fedora} > 18
Requires: %{?scl_prefix}ruby(release)
......
BuildArch: noarch
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
Provides: %{?scl_prefix}foreman-plugin-discovery
Provides: foreman-plugin-discovery
%description
MaaS Discovery Plugin engine for Foreman.
......
gem '%{gem_name}'
GEMFILE
mkdir -p %{buildroot}/etc/sudoers.d
cat <<SUDOERS > %{buildroot}/etc/sudoers.d/%{gem_name}
# Required to run the discovery:build_image rake task as 'foreman'
foreman ALL = NOPASSWD : %{gem_instdir}/extra/build_iso.sh *, /bin/true
Defaults:foreman !requiretty
SUDOERS
# Output directory of the imgae build task
mkdir -p %{buildroot}/%{foreman_dir}/discovery_image
# workaround for http://projects.theforeman.org/issues/2876
rm -rf %{buildroot}/usr/share/gems/gems/foreman_discovery-1.0.1/test/foreman_app
rm -rf %{buildroot}/%{gem_instdir}/test/foreman_app
# workaround for http://projects.theforeman.org/issues/2949
patch -d %{buildroot}/%{gem_instdir} -p 1 -i %{PATCH0}
%files
%dir %{gem_instdir}
......
%exclude %{gem_cache}
%{gem_spec}
%{foreman_bundlerd_dir}/%{gem_name}.rb
%attr(0755,foreman,foreman) %{foreman_dir}/discovery_image
%config %attr(0440,root,root) /etc/sudoers.d/%{gem_name}
%doc %{gem_instdir}/LICENSE
%exclude %{gem_instdir}/test
......
%{gem_instdir}/Rakefile
%changelog
* Thu Aug 22 2013 Dominic Cleal <dcleal@redhat.com> 1.0.2-7
- Create ~foreman/discovery_dir for image building (dcleal@redhat.com)
- Add patch for #2949, don't use bundler to find build_iso.sh
(dcleal@redhat.com)
- Add dependencies and sudoers file for image building (dcleal@redhat.com)
- Remove SCL prefix from foreman-plugin-* provide (dcleal@redhat.com)
* Tue Aug 13 2013 Lukas Zapletal <lzap+git@redhat.com> 1.0.2-6
- adding SCL prefix to the provides statement (lzap+git@redhat.com)
- fixing dependency name (lzap+git@redhat.com)

Also available in: Unified diff