foreman-packaging/rubygem-foreman_salt/rubygem-foreman_salt.spec @ b319e683
3cd2e0fe | Stephen Benjamin | # This package contains macros that provide functionality relating to
|
|
# Software Collections. These macros are not used in default
|
|||
# Fedora builds, and should not be blindly copied or enabled.
|
|||
# Specifically, the "scl" macro must not be defined in official Fedora
|
|||
# builds. For more information, see:
|
|||
# http://docs.fedoraproject.org/en-US/Fedora_Contributor_Documentation
|
|||
# /1/html/Software_Collections_Guide/index.html
|
|||
%{?scl:%scl_package rubygem-%{gem_name}}
|
|||
%{!?scl:%global pkg_name %{name}}
|
|||
%global gem_name foreman_salt
|
|||
%define rubyabi 1.9.1
|
|||
Summary: Plugin for Salt integration with Foreman
|
|||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|||
07e0fde3 | Stephen Benjamin | Version: 3.0.1
|
|
32ac056e | Dominic Cleal | Release: 1%{?foremandist}%{?dist}
|
|
3cd2e0fe | Stephen Benjamin | Group: Applications/System
|
|
License: GPLv3
|
|||
URL: http://github.com/theforeman/foreman_salt
|
|||
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
|||
83300ce0 | Stephen Benjamin | Requires: foreman >= 1.9.0
|
|
04a2b5ca | Michael Moll | Requires: %{?scl_prefix}rubygem(deface)
|
|
3cd2e0fe | Stephen Benjamin | ||
%if 0%{?fedora} > 18
|
|||
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(release)
|
|
3cd2e0fe | Stephen Benjamin | %else
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(abi) >= %{rubyabi}
|
|
3cd2e0fe | Stephen Benjamin | %endif
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}rubygems
|
|
83300ce0 | Stephen Benjamin | Requires: %{?scl_prefix}rubygem-foreman-tasks >= 0.7.1
|
|
Requires: %{?scl_prefix}rubygem-foreman-tasks < 0.8.0
|
|||
3cd2e0fe | Stephen Benjamin | ||
%if 0%{?fedora} > 18
|
|||
b319e683 | Dominic Cleal | BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
3cd2e0fe | Stephen Benjamin | %else
|
|
b319e683 | Dominic Cleal | BuildRequires: %{?scl_prefix_ruby}ruby(abi) >= %{rubyabi}
|
|
3cd2e0fe | Stephen Benjamin | %endif
|
|
48df96b8 | Stephen Benjamin | BuildRequires: foreman-plugin >= 1.8.0
|
|
a7fb1f85 | Stephen Benjamin | BuildRequires: foreman-assets
|
|
48df96b8 | Stephen Benjamin | BuildRequires: %{?scl_prefix}rubygem(deface)
|
|
b319e683 | Dominic Cleal | BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
BuildRequires: %{?scl_prefix_ruby}rubygems
|
|||
83300ce0 | Stephen Benjamin | BuildRequires: %{?scl_prefix}rubygem-foreman-tasks >= 0.7.1
|
|
BuildRequires: %{?scl_prefix}rubygem-foreman-tasks < 0.8.0
|
|||
3cd2e0fe | Stephen Benjamin | ||
BuildArch: noarch
|
|||
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|||
Provides: foreman-plugin-salt
|
|||
b319e683 | Dominic Cleal | %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}}
|
|
3cd2e0fe | Stephen Benjamin | ||
%description
|
|||
Foreman extensions that provide Salt support
|
|||
%package doc
|
|||
BuildArch: noarch
|
|||
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|||
b319e683 | Dominic Cleal | %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc}
|
|
3cd2e0fe | Stephen Benjamin | Summary: Documentation for rubygem-%{gem_name}
|
|
%description doc
|
|||
This package contains documentation for rubygem-%{gem_name}.
|
|||
%prep
|
|||
%setup -n %{pkg_name}-%{version} -q -c -T
|
|||
mkdir -p .%{gem_dir}
|
|||
%{?scl:scl enable %{scl} "}
|
|||
gem install --local --install-dir .%{gem_dir} \
|
|||
--force %{SOURCE0} --no-rdoc --no-ri
|
|||
%{?scl:"}
|
|||
%build
|
|||
%install
|
|||
mkdir -p %{buildroot}%{gem_dir}
|
|||
cp -a .%{gem_dir}/* \
|
|||
%{buildroot}%{gem_dir}/
|
|||
a7fb1f85 | Stephen Benjamin | %foreman_bundlerd_file
|
|
%foreman_precompile_plugin -a -s
|
|||
48df96b8 | Stephen Benjamin | ||
3cd2e0fe | Stephen Benjamin | %posttrans
|
|
# We need to run the db:migrate after the install transaction
|
|||
/usr/sbin/foreman-rake db:migrate >/dev/null 2>&1 || :
|
|||
/usr/sbin/foreman-rake db:seed >/dev/null 2>&1 || :
|
|||
48df96b8 | Stephen Benjamin | %{foreman_apipie_cache}
|
|
3cd2e0fe | Stephen Benjamin | (/sbin/service foreman status && /sbin/service foreman restart) >/dev/null 2>&1
|
|
exit 0
|
|||
%files
|
|||
%dir %{gem_instdir}
|
|||
%{gem_instdir}/app
|
|||
%{gem_instdir}/db
|
|||
%{gem_instdir}/lib
|
|||
%{gem_instdir}/config
|
|||
48df96b8 | Stephen Benjamin | %{gem_instdir}/public
|
|
3cd2e0fe | Stephen Benjamin | %exclude %{gem_cache}
|
|
%{gem_spec}
|
|||
%doc %{gem_instdir}/LICENSE
|
|||
a7fb1f85 | Stephen Benjamin | %{foreman_bundlerd_plugin}
|
|
48df96b8 | Stephen Benjamin | %foreman_apipie_cache_foreman
|
|
a7fb1f85 | Stephen Benjamin | %{foreman_apipie_cache_plugin}
|
|
%{foreman_assets_plugin}
|
|||
3cd2e0fe | Stephen Benjamin | ||
%exclude %{gem_instdir}/test
|
|||
%exclude %{gem_cache}
|
|||
%files doc
|
|||
%doc %{gem_instdir}/README.md
|
|||
%{gem_instdir}/Rakefile
|
|||
%changelog
|
|||
07e0fde3 | Stephen Benjamin | * Thu Aug 13 2015 Stephen Benjamin <stephen@redhat.com> 3.0.1-1
|
|
- Update to 3.0.1
|
|||
83300ce0 | Stephen Benjamin | * Mon Jul 06 2015 Stephen Benjamin <stephen@redhat.com> 3.0.0-1
|
|
- Update to 3.0.0
|
|||
a7fb1f85 | Stephen Benjamin | * Sat May 09 2015 Stephen Benjamin <stephen@redhat.com> 2.1.0-1
|
|
- Update to 2.1.0
|
|||
6956123b | Stephen Benjamin | * Tue Mar 17 2015 Stephen Benjamin <stephen@redhat.com> 2.0.2-1
|
|
- Update to 2.0.2
|
|||
48df96b8 | Stephen Benjamin | * Tue Mar 03 2015 Stephen Benjamin <stephen@redhat.com> 2.0.1-1
|
|
- Update to 2.0.1
|
|||
899f13f0 | Stephen Benjamin | * Wed Jan 14 2015 Stephen Benjamin <stephen@redhat.com> 1.1.1-1
|
|
- Update to 1.1.1
|
|||
d10657e9 | Dominic Cleal | * Tue Dec 30 2014 Michael Moll <mmoll@mmoll.at> 1.1.0-2
|
|
04a2b5ca | Michael Moll | - Add dependency on rubygem-deface
|
|
89bac42f | Stephen Benjamin | * Wed Nov 19 2014 Stephen Benjamin <stephen@redhat.com> 1.1.0-1
|
|
- Update to 1.1.0
|
|||
225fa939 | Stephen Benjamin | * Tue Nov 11 2014 Stephen Benjamin <stephen@redhat.com> 1.0.0-1
|
|
- Update to 1.0.0
|
|||
46c01e6c | Stephen Benjamin | * Wed Oct 08 2014 Stephen Benjamin <stephen@redhat.com> 0.0.4-1
|
|
- Update to 0.0.4
|
|||
8b16126c | Michael Moll | * Tue Oct 07 2014 Michael Moll <mmoll@mmoll.at> 0.0.3-1
|
|
- Update to 0.0.3
|
|||
849ad8fe | Dominic Cleal | * Thu Aug 28 2014 Stephen Benjamin <stephen@redhat.com> 0.0.2-1
|
|
3cd2e0fe | Stephen Benjamin | - Initial version
|