foreman-packaging/rubygem-foreman_digitalocean/rubygem-foreman_digitalocean.spec @ 3b2c9110
a7ca12d8 | Daniel Lobato | # 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_digitalocean
|
|||
%define rubyabi 1.9.1
|
|||
%global foreman_dir /usr/share/foreman
|
|||
%global foreman_bundlerd_dir %{foreman_dir}/bundler.d
|
|||
%global foreman_pluginconf_dir %{foreman_dir}/config/settings.plugins.d
|
|||
Summary: Provision and manage DigitalOcean from Foreman
|
|||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|||
009d10c1 | Tommy McNeely | Version: 0.2.0
|
|
3b2c9110 | Dominic Cleal | Release: 2%{?dist}
|
|
a7ca12d8 | Daniel Lobato | Group: Applications/System
|
|
License: GPLv3
|
|||
URL: http://github.com/theforeman/foreman-digitalocean
|
|||
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
|||
Requires: foreman-compute >= 1.5.0
|
|||
%if 0%{?fedora} > 18
|
|||
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(release)
|
|
a7ca12d8 | Daniel Lobato | %else
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(abi) >= %{rubyabi}
|
|
a7ca12d8 | Daniel Lobato | %endif
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}rubygems
|
|
a7ca12d8 | Daniel Lobato | ||
%if 0%{?fedora} > 18
|
|||
b319e683 | Dominic Cleal | BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
a7ca12d8 | Daniel Lobato | %else
|
|
b319e683 | Dominic Cleal | BuildRequires: %{?scl_prefix_ruby}ruby(abi) >= %{rubyabi}
|
|
a7ca12d8 | Daniel Lobato | %endif
|
|
b319e683 | Dominic Cleal | BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
BuildRequires: %{?scl_prefix_ruby}rubygems
|
|||
a7ca12d8 | Daniel Lobato | ||
BuildArch: noarch
|
|||
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|||
Provides: foreman-plugin-digitalocean
|
|||
Provides: foreman-digitalocean
|
|||
b319e683 | Dominic Cleal | %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}}
|
|
a7ca12d8 | Daniel Lobato | ||
%description
|
|||
This plugin enables provisioning and managing DigitalOcean in Foreman.
|
|||
%package doc
|
|||
BuildArch: noarch
|
|||
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|||
b319e683 | Dominic Cleal | %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc}
|
|
a7ca12d8 | Daniel Lobato | 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}/
|
|||
mkdir -p %{buildroot}%{foreman_bundlerd_dir}
|
|||
cat <<GEMFILE > %{buildroot}%{foreman_bundlerd_dir}/%{gem_name}.rb
|
|||
gem '%{gem_name}'
|
|||
GEMFILE
|
|||
%files
|
|||
%dir %{gem_instdir}
|
|||
%{gem_libdir}
|
|||
%{gem_instdir}/app
|
|||
%{gem_instdir}/locale
|
|||
%exclude %{gem_cache}
|
|||
%{gem_spec}
|
|||
%{foreman_bundlerd_dir}/%{gem_name}.rb
|
|||
%doc %{gem_instdir}/LICENSE
|
|||
%files doc
|
|||
%doc %{gem_instdir}/LICENSE
|
|||
%doc %{gem_instdir}/README.md
|
|||
%changelog
|
|||
3b2c9110 | Dominic Cleal | * Wed Aug 26 2015 Dominic Cleal <dcleal@redhat.com> 0.2.0-2
|
|
- Converted to tfm SCL (dcleal@redhat.com)
|
|||
009d10c1 | Tommy McNeely | * Tue Apr 28 2015 Tommy McNeely <tommy@lark-it.com> 0.2.0-1
|
|
- Version 0.2.0 (tommy@lark-it.com)
|
|||
- #10242 - Changed template name to _base for Foreman 1.8
|
|||
e80fb3d3 | Tommy McNeely | * Fri Feb 13 2015 Tommy McNeely <tommy@lark-it.com> 0.1.0-1
|
|
- Version 0.1.0 (tommy@lark-it.com)
|
|||
- #8617 - add SSH key pair integration
|
|||
- #8650 - show region name in VM details
|
|||
d7827c6b | Daniel Lobato | * Wed Dec 10 2014 Daniel Lobato <dlobatog@redhat.com> 0.0.3-1
|
|
- Version 0.0.3 (dlobatog@redhat.com)
|
|||
58907424 | Dominic Cleal | ||
a7ca12d8 | Daniel Lobato | * Tue Dec 02 2014 Daniel Lobato <dlobatog@redhat.com> 0.0.2-1
|
|
- Initial version 0.0.2-1 (dlobatog@redhat.com)
|