Project

General

Profile

Download (2.83 KB) Statistics
| Branch: | Tag: | Revision:
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}

%{!?_root_sysconfdir:%global _root_sysconfdir %{_sysconfdir}}

%global gem_name hammer_cli_foreman_remote_execution
%global confdir hammer

Summary: Foreman Remote Execution commands for Hammer CLI
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 0.0.5
Release: 2%{?foremandist}%{?dist}
Group: Applications/System
License: GPLv3
URL: http://github.com/theforeman/hammer_cli_foreman_remote_execution
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem

Requires: %{?scl_prefix_ruby}ruby(release)
Requires: %{?scl_prefix_ruby}ruby(rubygems)
Requires: %{?scl_prefix}rubygem(hammer_cli_foreman) >= 0.1.3
Requires: %{?scl_prefix}rubygem(hammer_cli_foreman) < 1.0.0
Requires: %{?scl_prefix}rubygem(hammer_cli_foreman_tasks) >= 0.0.3
Requires: %{?scl_prefix}rubygem(hammer_cli_foreman_tasks) < 0.1.0
BuildRequires: %{?scl_prefix_ruby}ruby(rubygems)
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
BuildRequires: %{?scl_prefix_ruby}ruby
BuildArch: noarch
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}

%description
This Hammer CLI plugin contains set of commands for foreman_remote_execution

%package doc
Summary: Documentation for %{pkg_name}
Group: Documentation
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{pkg_name}

%prep
%setup -n %{pkg_name}-%{version} -q -c -T
%{?scl:scl enable %{scl} - <<EOF}
%gem_install -n %{SOURCE0}
%{?scl:EOF}

%install
mkdir -p %{buildroot}%{_root_sysconfdir}/%{confdir}/cli.modules.d
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* %{buildroot}%{gem_dir}/
cp -pa .%{gem_instdir}/config/foreman_remote_execution.yml %{buildroot}%{_root_sysconfdir}/%{confdir}/cli.modules.d/foreman_remote_execution.yml

%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.*
%exclude %{gem_instdir}/%{gem_name}.gemspec
%exclude %{gem_instdir}/Gemfile
%exclude %{gem_instdir}/test
%{gem_instdir}/Rakefile
%{gem_instdir}/lib
%{gem_instdir}/locale
%{gem_instdir}/config
%config(noreplace) %{_root_sysconfdir}/%{confdir}/cli.modules.d/foreman_remote_execution.yml
%doc %{gem_instdir}/LICENSE
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md

%changelog
* Wed May 04 2016 Dominic Cleal <dominic@cleal.org> 0.0.5-2
- Use gem_install macro (dominic@cleal.org)

* Wed Feb 17 2016 Dominic Cleal <dominic@cleal.org> 0.0.5-1
- Release hammer_cli_foreman_remote_execution 0.0.5 (stbenjam@redhat.com)

* Mon Jan 25 2016 Dominic Cleal <dcleal@redhat.com> 0.0.4-1
- Release hammer_cli_foreman_remote_execution 0.0.4 (stbenjam@redhat.com)

* Wed Jan 06 2016 Dominic Cleal <dcleal@redhat.com> 0.0.2-2
- Add foremandist to plugin (dcleal@redhat.com)
- Fix spec filename to match RPM (dcleal@redhat.com)

* Fri Dec 11 2015 Stephen Benjamin <stephen@redhat.com> 0.0.2-1
- Initial release
(2-2/2)