Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
rubygem-smart_proxy_dns_powerdns/rubygem-smart_proxy_dns_powerdns.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
%global gem_name smart_proxy_dns_powerdns | ||
|
||
%global foreman_proxy_dir /usr/share/foreman-proxy | ||
%global foreman_proxy_bundlerd_dir %{foreman_proxy_dir}/bundler.d | ||
%global foreman_proxy_settingsd_dir %{_sysconfdir}/foreman-proxy/settings.d | ||
|
||
Summary: PowerDNS support for Foreman Smart-Proxy | ||
Name: rubygem-%{gem_name} | ||
Version: 0.1.0 | ||
Release: 1%{?dist} | ||
Group: Applications/System | ||
License: GPLv3 | ||
URL: https://github.com/theforeman/smart_proxy_dns_powerdns | ||
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem | ||
|
||
%if 0%{?rhel} == 6 | ||
Requires: ruby(abi) | ||
BuildRequires: ruby(abi) | ||
%else | ||
Requires: ruby(release) | ||
BuildRequires: ruby(release) | ||
%endif | ||
Requires: foreman-proxy >= 1.10.0 | ||
Requires: ruby(rubygems) | ||
Requires: rubygem(mysql2) | ||
BuildRequires: ruby(rubygems) | ||
BuildRequires: rubygems-devel | ||
|
||
BuildArch: noarch | ||
|
||
Provides: rubygem(%{gem_name}) = %{version} | ||
Provides: foreman-proxy-plugin-dns_powerdns | ||
|
||
%description | ||
PowerDNS support for Foreman Smart-Proxy. | ||
|
||
%package doc | ||
BuildArch: noarch | ||
Requires: %{name} = %{version}-%{release} | ||
Summary: Documentation for rubygem-%{gem_name} | ||
|
||
%description doc | ||
This package contains documentation for rubygem-%{gem_name}. | ||
|
||
%prep | ||
|
||
%setup -q -c -T | ||
%gem_install -n %{SOURCE0} | ||
|
||
%build | ||
|
||
%install | ||
mkdir -p %{buildroot}%{gem_dir} | ||
cp -pa .%{gem_dir}/* \ | ||
%{buildroot}%{gem_dir}/ | ||
|
||
mkdir -p %{buildroot}%{foreman_proxy_bundlerd_dir} | ||
cp -pa .%{gem_instdir}/bundler.d/dns_powerdns.rb %{buildroot}%{foreman_proxy_bundlerd_dir} | ||
mkdir -p %{buildroot}%{foreman_proxy_settingsd_dir} | ||
cp -pa .%{gem_instdir}/config/dns_powerdns.yml %{buildroot}%{foreman_proxy_settingsd_dir}/dns_powerdns.yml | ||
|
||
%files | ||
%dir %{gem_instdir} | ||
%{gem_instdir}/bundler.d | ||
%{gem_libdir} | ||
%{gem_instdir}/config | ||
%{foreman_proxy_bundlerd_dir}/dns_powerdns.rb | ||
%config(noreplace) %{foreman_proxy_settingsd_dir}/dns_powerdns.yml | ||
%attr(0640, root, foreman-proxy) %{foreman_proxy_settingsd_dir}/dns_powerdns.yml | ||
%doc %{gem_instdir}/LICENSE | ||
|
||
%exclude %{gem_cache} | ||
%exclude %{gem_instdir}/test | ||
%{gem_spec} | ||
|
||
%files doc | ||
%doc %{gem_docdir} | ||
%doc %{gem_instdir}/README.md | ||
|
||
%changelog | ||
* Thu Oct 08 2015 Ewoud Kohl van Wijngaarden 0.1.0-1 | ||
- Initial packaging |
1 change: 1 addition & 0 deletions
1
rubygem-smart_proxy_dns_powerdns/smart_proxy_dns_powerdns-0.1.0.gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.git/annex/objects/Vm/02/SHA256E-s20480--6fc506c235d6798d325f8f805528ddac4f62a48669600a6cb517eb0aacb84a63.0.gem/SHA256E-s20480--6fc506c235d6798d325f8f805528ddac4f62a48669600a6cb517eb0aacb84a63.0.gem |