foreman-packaging/rubygem-hammer_cli_foreman_salt/rubygem-hammer_cli_foreman_salt.spec @ b319e683
d2718ada | Dominic Cleal | %{?scl:%scl_package rubygem-%{gem_name}}
|
|
%{!?scl:%global pkg_name %{name}}
|
|||
%{!?_root_sysconfdir:%global _root_sysconfdir %{_sysconfdir}}
|
|||
0525609d | Stephen Benjamin | %global gem_name hammer_cli_foreman_salt
|
|
%global confdir hammer
|
|||
Summary: Foreman Salt-related commands for Hammer CLI
|
|||
d2718ada | Dominic Cleal | Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
48dd37dd | Dominic Cleal | Version: 0.0.4
|
|
a48132e5 | Dominic Cleal | Release: 2%{?dist}
|
|
0525609d | Stephen Benjamin | Group: Applications/System
|
|
License: GPLv3
|
|||
URL: http://github.com/theforeman/hammer_cli_foreman_salt
|
|||
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|||
d2718ada | Dominic Cleal | %if 0%{?fedora} > 18
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(release)
|
|
0525609d | Stephen Benjamin | %else
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(abi)
|
|
0525609d | Stephen Benjamin | %endif
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
d2718ada | Dominic Cleal | Requires: %{?scl_prefix}rubygem(hammer_cli_foreman) >= 0.1.2
|
|
b319e683 | Dominic Cleal | BuildRequires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|||
BuildRequires: %{?scl_prefix_ruby}ruby
|
|||
0525609d | Stephen Benjamin | BuildArch: noarch
|
|
d2718ada | Dominic Cleal | Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
b319e683 | Dominic Cleal | %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}}
|
|
d2718ada | Dominic Cleal | %if 0%{?scl:1}
|
|
Obsoletes: rubygem-%{gem_name} < 0.0.4-2
|
|||
%endif
|
|||
0525609d | Stephen Benjamin | ||
%description
|
|||
This Hammer CLI plugin contains set of commands for foreman_salt, a plugin
|
|||
that provides Salt integration in Foreman.
|
|||
%package doc
|
|||
d2718ada | Dominic Cleal | Summary: Documentation for %{pkg_name}
|
|
0525609d | Stephen Benjamin | Group: Documentation
|
|
d2718ada | Dominic Cleal | Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
b319e683 | Dominic Cleal | %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc}
|
|
0525609d | Stephen Benjamin | BuildArch: noarch
|
|
d2718ada | Dominic Cleal | %if 0%{?scl:1}
|
|
Obsoletes: rubygem-%{gem_name}-doc < 0.0.4-2
|
|||
%endif
|
|||
0525609d | Stephen Benjamin | ||
%description doc
|
|||
d2718ada | Dominic Cleal | Documentation for %{pkg_name}
|
|
0525609d | Stephen Benjamin | ||
%prep
|
|||
d2718ada | Dominic Cleal | %setup -n %{pkg_name}-%{version} -q -c -T
|
|
0525609d | Stephen Benjamin | mkdir -p .%{gem_dir}
|
|
d2718ada | Dominic Cleal | %{?scl:scl enable %{scl} - << \EOF}
|
|
gem install --local --install-dir .%{gem_dir} \
|
|||
--force %{SOURCE0}
|
|||
%{?scl:EOF}
|
|||
0525609d | Stephen Benjamin | ||
%install
|
|||
d2718ada | Dominic Cleal | mkdir -p %{buildroot}%{_root_sysconfdir}/%{confdir}/cli.modules.d
|
|
0525609d | Stephen Benjamin | mkdir -p %{buildroot}%{gem_dir}
|
|
cp -pa .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|||
d2718ada | Dominic Cleal | cp -pa .%{gem_instdir}/config/foreman_salt.yml %{buildroot}%{_root_sysconfdir}/%{confdir}/cli.modules.d/foreman_salt.yml
|
|
0525609d | Stephen Benjamin | ||
%files
|
|||
%dir %{gem_instdir}
|
|||
%{gem_instdir}/lib
|
|||
%{gem_instdir}/config
|
|||
d2718ada | Dominic Cleal | %config(noreplace) %{_root_sysconfdir}/%{confdir}/cli.modules.d/foreman_salt.yml
|
|
0525609d | Stephen Benjamin | %exclude %{gem_cache}
|
|
%{gem_spec}
|
|||
%files doc
|
|||
%doc %{gem_docdir}
|
|||
%doc %{gem_instdir}/README.md
|
|||
%changelog
|
|||
a48132e5 | Dominic Cleal | * Tue Jul 28 2015 Dominic Cleal <dcleal@redhat.com> 0.0.4-2
|
|
- fixes #8979 - convert hammer packages to SCL (dcleal@redhat.com)
|
|||
018773c9 | Dominic Cleal | * Wed Mar 04 2015 Dominic Cleal <dcleal@redhat.com> 0.0.4-1
|
|
- Update hammer_cli_foreman_salt to 0.0.4 (dcleal@redhat.com)
|
|||
0525609d | Stephen Benjamin | * Tue Mar 03 2015 Stephen Benjamin <stephen@redhat.com> 0.0.3-1
|
|
- Release 0.0.3
|
|||
* Thu Jan 15 2015 Stephen Benjamin <stephen@redhat.com> 0.0.1-1
|
|||
- Initial release
|