Project

General

Profile

Download (2.72 KB) Statistics
| Branch: | Tag: | Revision:
# Generated from smart_proxy_dns_route53-2.0.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name smart_proxy_dns_route53
%global plugin_name dns_route53

%global foreman_proxy_dir %{_datarootdir}/foreman-proxy
%global foreman_proxy_bundlerd_dir %{foreman_proxy_dir}/bundler.d
%global foreman_proxy_settingsd_dir %{_sysconfdir}/foreman-proxy/settings.d

Name: rubygem-%{gem_name}
Version: 3.0.1
Release: 1%{?foremandist}%{?dist}
Summary: Route 53 DNS provider plugin for Foreman's smart proxy
Group: Applications/Internet
License: GPLv3
URL: https://github.com/theforeman/smart_proxy_dns_route53
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: foreman-proxy >= 1.13
Requires: ruby(release)
Requires: ruby
Requires: ruby(rubygems)
Requires: rubygem(route53)
BuildRequires: ruby(release)
BuildRequires: ruby
BuildRequires: rubygems-devel
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
Provides: foreman-proxy-plugin-%{plugin_name}

%description
Route 53 DNS provider plugin for Foreman's smart proxy.


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

%description doc
Documentation for %{name}.

%prep
gem unpack %{SOURCE0}

%setup -q -D -T -n %{gem_name}-%{version}

gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec

%build
# Create the gem as gem install only works on a gem file
gem build %{gem_name}.gemspec

# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/

# bundler file
mkdir -p %{buildroot}%{foreman_proxy_bundlerd_dir}
mv %{buildroot}%{gem_instdir}/bundler.d/%{plugin_name}.rb \
%{buildroot}%{foreman_proxy_bundlerd_dir}

# sample config
mkdir -p %{buildroot}%{foreman_proxy_settingsd_dir}
mv %{buildroot}%{gem_instdir}/config/%{plugin_name}.yml \
%{buildroot}%{foreman_proxy_settingsd_dir}/%{plugin_name}.yml

%files
%dir %{gem_instdir}
%doc %{gem_instdir}/LICENSE
%{gem_instdir}/bundler.d
%{gem_instdir}/config
%{gem_libdir}
%{foreman_proxy_bundlerd_dir}/%{plugin_name}.rb
%config(noreplace) %attr(0640, root, foreman-proxy) %{foreman_proxy_settingsd_dir}/%{plugin_name}.yml
%exclude %{gem_cache}
%{gem_spec}

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

%changelog
* Thu Feb 09 2017 Dominic Cleal <dominic@cleal.org> 3.0.1-1
- Update smart_proxy_dns_route53 to 3.0.1 (dominic@cleal.org)

* Wed Feb 01 2017 Dominic Cleal <dominic@cleal.org> 3.0.0-1
- Update smart_proxy_dns_route53 to 3.0.0 (dominic@cleal.org)

* Thu Jun 23 2016 Dominic Cleal <dominic@cleal.org> 2.0.0-1
- new package built with tito

(1-1/2)