installer/foreman-installer.spec @ eeb5b42c
e603d993 | Lukas Zapletal | ||
# uncomment to disable foreman-generate-answers script (and dependencies)
|
|||
#global skip_generator 1
|
|||
%if "%{?scl}" == "ruby193"
|
|||
%global scl_prefix %{scl}-
|
|||
%global scl_ruby /usr/bin/ruby193-ruby
|
|||
%else
|
|||
%global scl_ruby /usr/bin/ruby
|
|||
%endif
|
|||
# set and uncomment all three to set alpha tag
|
|||
#global alphatag RC1
|
|||
#global dotalphatag .%{alphatag}
|
|||
#global dashalphatag -%{alphatag}
|
|||
Name: foreman-installer
|
|||
Epoch: 1
|
|||
9e70995d | Dominic Cleal | Version: 1.6.0
|
|
786b8398 | Dominic Cleal | Release: 0.develop%{?dotalphatag}%{?dist}
|
|
e603d993 | Lukas Zapletal | Summary: Puppet-based installer for The Foreman
|
|
Group: Applications/System
|
|||
License: GPLv3+ and ASL 2.0
|
|||
URL: http://theforeman.org
|
|||
Source0: %{name}-%{version}%{?dashalphatag}.tar.gz
|
|||
%if 0%{?rhel} && 0%{?rhel} == 5
|
|||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||
%endif
|
|||
BuildArch: noarch
|
|||
eeb5b42c | Marek Hulan | Requires: curl
|
|
ab997094 | Dominic Cleal | Requires: %{?scl_prefix}puppet >= 2.7.0
|
|
eeb5b42c | Marek Hulan | Requires: %{?scl_prefix}rubygem-kafo >= 0.5.3
|
|
078c9932 | Lukas Zapletal | Requires: %{?scl_prefix}rubygem-foreman_api >= 0.1.4
|
|
e603d993 | Lukas Zapletal | ||
%if %{?skip_generator:0}%{!?skip_generator:1}
|
|||
1a76ff90 | Dominic Cleal | %if 0%{?fedora} > 18
|
|
Requires: %{?scl_prefix}ruby(release)
|
|||
%else
|
|||
e603d993 | Lukas Zapletal | Requires: %{?scl_prefix}ruby(abi)
|
|
1a76ff90 | Dominic Cleal | %endif
|
|
e603d993 | Lukas Zapletal | Requires: %{?scl_prefix}rubygem-highline
|
|
%endif
|
|||
721a83ae | Lukas Zapletal | BuildRequires: asciidoc
|
|
BuildRequires: rubygem(rake)
|
|||
ab997094 | Dominic Cleal | BuildRequires: %{?scl_prefix}puppet >= 2.7.0
|
|
721a83ae | Lukas Zapletal | BuildRequires: %{?scl_prefix}rubygem-kafo
|
|
e603d993 | Lukas Zapletal | %description
|
|
Complete installer for The Foreman life-cycle management system based on puppet and
|
|||
script to generate answers for puppet manifests.
|
|||
%prep
|
|||
%setup -q -n %{name}-%{version}%{?dashalphatag}
|
|||
%build
|
|||
#replace shebangs for SCL
|
|||
%if %{?scl:1}%{!?scl:0}
|
|||
baeb96b4 | Marek Hulan | sed -ri '1sX(/usr/bin/ruby|/usr/bin/env ruby)X%{scl_ruby}X' bin/foreman-installer
|
|
e603d993 | Lukas Zapletal | %endif
|
|
721a83ae | Lukas Zapletal | rake build \
|
|
VERSION=%{version} \
|
|||
PREFIX=%{_prefix} \
|
|||
SBINDIR=%{_sbindir} \
|
|||
SYSCONFDIR=%{_sysconfdir} \
|
|||
--trace
|
|||
e603d993 | Lukas Zapletal | ||
%install
|
|||
721a83ae | Lukas Zapletal | rake install \
|
|
PREFIX=%{buildroot}%{_prefix} \
|
|||
SBINDIR=%{buildroot}%{_sbindir} \
|
|||
SYSCONFDIR=%{buildroot}%{_sysconfdir} \
|
|||
--trace
|
|||
e83c8c6d | Marek Hulan | ||
e603d993 | Lukas Zapletal | %if 0%{?rhel} && 0%{?rhel} == 5
|
|
%clean
|
|||
%{__rm} -rf $RPM_BUILD_ROOT
|
|||
%endif
|
|||
%files
|
|||
%defattr(-,root,root,-)
|
|||
721a83ae | Lukas Zapletal | %doc README.* LICENSE
|
|
92a4a0f7 | Marek Hulan | %config %attr(600, root, root) %{_sysconfdir}/foreman/%{name}.yaml
|
|
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/foreman/%{name}-answers.yaml
|
|||
baeb96b4 | Marek Hulan | %{_sbindir}/foreman-installer
|
|
e603d993 | Lukas Zapletal | %{_datadir}/%{name}
|
|
721a83ae | Lukas Zapletal | %{_mandir}/man8
|
|
e603d993 | Lukas Zapletal | %changelog
|
|
9e70995d | Dominic Cleal | * Wed Apr 16 2014 Dominic Cleal <dcleal@redhat.com> - 1.6.0-0.develop
|
|
- Bump to version 1.6-develop
|
|||
e7bad01d | Dominic Cleal | * Thu Jan 16 2014 Dominic Cleal <dcleal@redhat.com> - 1.5.0-0.develop
|
|
- Bump to version 1.5-develop
|
|||
786b8398 | Dominic Cleal | * Thu Nov 21 2013 Dominic Cleal <dcleal@redhat.com> - 1.4.0-0.develop
|
|
- Bump and change versioning scheme (#3712)
|
|||
9648e093 | Marek Hulan | * Fri Nov 08 2013 Marek Hulan <mhulan[@]redhat.com> - 1.3.9999-4
|
|
721a83ae | Lukas Zapletal | - upgrade to kafo 0.3.0
|
|
9648e093 | Marek Hulan | ||
03229fef | Lukas Zapletal | * Thu Sep 12 2013 Marek Hulan <mhulan[@]redhat.com> - 1.3.9999-3
|
|
92a4a0f7 | Marek Hulan | - set config flag on configuration files
|
|
03229fef | Lukas Zapletal | * Thu Sep 12 2013 Marek Hulan <mhulan[@]redhat.com> - 1.3.9999-2
|
|
- config files packaging fix
|
|||
ad9cc26a | Lukas Zapletal | * Wed Sep 11 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.3.9999-1
|
|
- bump to version 1.3-develop
|
|||
e83c8c6d | Marek Hulan | * Mon Jul 22 2013 Marek Hulan <mhulan[@]redhat.com> - 1.2.9999-3
|
|
- new files structure for a installer based on kafo
|
|||
e236b54b | Lukas Zapletal | * Mon Jul 22 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.2.9999-2
|
|
- adding foreman_api as a dependency
|
|||
ad9cc26a | Lukas Zapletal | * Thu May 23 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.2.9999-1
|
|
e603d993 | Lukas Zapletal | - initial version
|