Revision d2718ada
Added by Dominic Cleal almost 9 years ago
rubygem-hammer_cli_foreman_tasks/rubygem-hammer_cli_foreman_tasks.spec | ||
---|---|---|
%{?scl:%scl_package rubygem-%{gem_name}}
|
||
%{!?scl:%global pkg_name %{name}}
|
||
|
||
%{!?_root_sysconfdir:%global _root_sysconfdir %{_sysconfdir}}
|
||
|
||
%global gem_name hammer_cli_foreman_tasks
|
||
%global confdir hammer
|
||
|
||
Summary: Foreman CLI plugin for showing task information for resources and users
|
||
Name: rubygem-%{gem_name}
|
||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
||
Version: 0.0.6
|
||
Release: 1%{?dist}
|
||
Group: Applications/Systems
|
||
... | ... | |
URL: http://github.com/theforeman/hammer-cli-foreman-tasks
|
||
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||
|
||
%if 0%{?rhel} == 6
|
||
Requires: ruby(abi)
|
||
%if 0%{?fedora} > 18
|
||
Requires: %{?scl_prefix}ruby(release)
|
||
%else
|
||
Requires: ruby(release)
|
||
Requires: %{?scl_prefix}ruby(abi)
|
||
%endif
|
||
|
||
Requires: ruby(rubygems)
|
||
Requires: rubygem(hammer_cli_foreman) > 0.1.1
|
||
Requires: rubygem(hammer_cli_foreman) < 0.3.0
|
||
Requires: rubygem(powerbar) >= 1.0.11
|
||
Requires: rubygem(powerbar) < 1.1.0
|
||
BuildRequires: ruby(rubygems)
|
||
BuildRequires: rubygems-devel
|
||
BuildRequires: ruby
|
||
Requires: %{?scl_prefix}ruby(rubygems)
|
||
Requires: %{?scl_prefix}rubygem(hammer_cli_foreman) > 0.1.1
|
||
Requires: %{?scl_prefix}rubygem(hammer_cli_foreman) < 0.3.0
|
||
Requires: %{?scl_prefix}rubygem(powerbar) >= 1.0.11
|
||
Requires: %{?scl_prefix}rubygem(powerbar) < 1.1.0
|
||
BuildRequires: %{?scl_prefix}ruby(rubygems)
|
||
BuildRequires: %{?scl_prefix}rubygems-devel
|
||
BuildRequires: %{?scl_prefix}ruby
|
||
BuildArch: noarch
|
||
Provides: rubygem(%{gem_name}) = %{version}
|
||
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
||
%if 0%{?scl:1}
|
||
Obsoletes: rubygem-%{gem_name} < 0.0.6-2
|
||
%endif
|
||
|
||
%description
|
||
Foreman CLI plugin for showing task information for resources and users
|
||
|
||
%package doc
|
||
Summary: Documentation for %{name}
|
||
Summary: Documentation for %{pkg_name}
|
||
Group: Documentation
|
||
Requires: %{name} = %{version}-%{release}
|
||
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
||
BuildArch: noarch
|
||
%if 0%{?scl:1}
|
||
Obsoletes: rubygem-%{gem_name}-doc < 0.0.6-2
|
||
%endif
|
||
|
||
%description doc
|
||
Documentation for %{name}
|
||
Documentation for %{pkg_name}
|
||
|
||
%prep
|
||
%setup -q -c -T
|
||
%setup -n %{pkg_name}-%{version} -q -c -T
|
||
mkdir -p .%{gem_dir}
|
||
%{?scl:scl enable %{scl} - << \EOF}
|
||
gem install --local --install-dir .%{gem_dir} \
|
||
--force %{SOURCE0}
|
||
%{?scl:EOF}
|
||
|
||
%install
|
||
mkdir -p %{buildroot}%{gem_dir}
|
||
cp -pa .%{gem_dir}/* \
|
||
%{buildroot}%{gem_dir}/
|
||
|
||
mkdir -p %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d
|
||
mkdir -p %{buildroot}%{_root_sysconfdir}/%{confdir}/cli.modules.d
|
||
install -m 755 .%{gem_instdir}/config/foreman_tasks.yml \
|
||
%{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/foreman_tasks.yml
|
||
%{buildroot}%{_root_sysconfdir}/%{confdir}/cli.modules.d/foreman_tasks.yml
|
||
|
||
%files
|
||
%dir %{gem_instdir}
|
||
%{gem_instdir}/lib
|
||
%config(noreplace) %{_sysconfdir}/%{confdir}/cli.modules.d/foreman_tasks.yml
|
||
%config(noreplace) %{_root_sysconfdir}/%{confdir}/cli.modules.d/foreman_tasks.yml
|
||
%{gem_spec}
|
||
%exclude %{gem_cache}
|
||
%doc %{gem_instdir}/LICENSE
|
||
... | ... | |
|
||
* Mon Mar 23 2015 Dominic Cleal <dcleal@redhat.com> 0.0.5-1
|
||
- new package built with tito
|
||
|
Also available in: Unified diff
fixes #8979 - convert hammer packages to SCL