Project

General

Profile

Download (60.2 KB) Statistics
| Branch: | Tag: | Revision:
847450fa Dominic Cleal
%global homedir %{_datadir}/%{name}
%global confdir extras/packaging/rpm/sources
%global foreman_rake %{_sbindir}/%{name}-rake
9f521604 Daniel Lobato Garcia
%global executor_service_name dynflowd
847450fa Dominic Cleal
44be90c9 Dominic Cleal
# explicitly define, as we build on top of an scl, not inside with scl_package
%{?scl:%global scl_prefix %{scl}-}
%global scl_ruby_bin /usr/bin/%{?scl:%{scl_prefix}}ruby
%global scl_rake /usr/bin/%{?scl:%{scl_prefix}}rake
847450fa Dominic Cleal
2a2cd4ee Dominic Cleal
# set and uncomment all three to set alpha tag
#global alphatag RC1
#global dotalphatag .%{alphatag}
#global dashalphatag -%{alphatag}

847450fa Dominic Cleal
Name: foreman
e7754c49 Ewoud Kohl van Wijngaarden
Version: 1.19.0
2a2cd4ee Dominic Cleal
Release: 0.develop%{?dotalphatag}%{?dist}
847450fa Dominic Cleal
Summary:Systems Management web application

Group: Applications/System
License: GPLv3+ with exceptions
e7754c49 Ewoud Kohl van Wijngaarden
URL: https://theforeman.org
Source0: https://downloads.theforeman.org/%{name}/%{name}-%{version}%{?dashalphatag}.tar.bz2
847450fa Dominic Cleal
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}.logrotate
Source4: %{name}.cron.d
Source5: %{name}.tmpfiles
Source6: %{name}.repo
Source7: %{name}-plugins.repo
Source8: %{name}.gpg
ea45d271 Dominic Cleal
Source9: message_encryptor_extensions.rb
9f521604 Daniel Lobato Garcia
Source10: %{executor_service_name}.sysconfig
Source11: %{executor_service_name}.service
847450fa Dominic Cleal
BuildArch: noarch

9f521604 Daniel Lobato Garcia
Conflicts: foreman-tasks < 0.11.0-2

b319e683 Dominic Cleal
Requires: %{?scl_prefix_ruby}ruby(release)
Requires: %{?scl_prefix_ruby}rubygems
Requires: %{?scl_prefix_ruby}rubygem(rake) >= 0.8.3
23762790 Dominic Cleal
Requires: %{?scl_prefix_ruby}rubygem(rdoc)
f6cc8f34 Dominic Cleal
Requires: %{?scl_prefix}rubygem(bundler_ext)
a851fa4c Dominic Cleal
%if 0%{?scl:1}
951913dd Eric D. Helms
Requires: %{scl}-runtime >= 4
Requires: %{scl}-runtime < 5
a851fa4c Dominic Cleal
%endif
f6cc8f34 Dominic Cleal
b79e046b Lukas Zapletal
Requires: wget
847450fa Dominic Cleal
Requires: /etc/cron.d
Requires(pre): shadow-utils
Requires(post): chkconfig
9f521604 Daniel Lobato Garcia
Requires(post): systemd-sysv
Requires(post): systemd-units
847450fa Dominic Cleal
Requires(preun): chkconfig
Requires(preun): initscripts
9f521604 Daniel Lobato Garcia
Requires(preun): systemd-units
847450fa Dominic Cleal
Requires(postun): initscripts
f6cc8f34 Dominic Cleal
b79e046b Lukas Zapletal
# Subpackages
Requires: %{name}-debug

9e31024d Ewoud Kohl van Wijngaarden
# start specfile main Requires
03de3bd3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix_ror}rubygem(rails) = 5.1.6
111cd7e7 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(rest-client) >= 2.0.0
Requires: %{?scl_prefix}rubygem(rest-client) < 3
5079aa72 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(audited) >= 4.7.1
Requires: %{?scl_prefix}rubygem(audited) < 5
f6cc8f34 Dominic Cleal
Requires: %{?scl_prefix}rubygem(will_paginate) >= 3.0
baf21388 Dominic Cleal
Requires: %{?scl_prefix}rubygem(will_paginate) < 4.0
f6cc8f34 Dominic Cleal
Requires: %{?scl_prefix}rubygem(ancestry) >= 2.0
111cd7e7 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(ancestry) < 4
Requires: %{?scl_prefix}rubygem(scoped_search) >= 4.1.3
Requires: %{?scl_prefix}rubygem(scoped_search) < 5
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(ldap_fluff) >= 0.4.7
f6cc8f34 Dominic Cleal
Requires: %{?scl_prefix}rubygem(ldap_fluff) < 1.0
9fe76861 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(apipie-rails) >= 0.5.2
438f9229 Dominic Cleal
Requires: %{?scl_prefix}rubygem(apipie-rails) < 0.6.0
f6cc8f34 Dominic Cleal
Requires: %{?scl_prefix}rubygem(rabl) >= 0.11
Requires: %{?scl_prefix}rubygem(rabl) < 1.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(oauth) >= 0.5.4
111cd7e7 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(oauth) < 1
5079aa72 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(deep_cloneable) >= 2.3.2
f6cc8f34 Dominic Cleal
Requires: %{?scl_prefix}rubygem(deep_cloneable) < 3.0
56b90b51 Dominic Cleal
Requires: %{?scl_prefix}rubygem(validates_lengths_from_database) >= 0.5
f6cc8f34 Dominic Cleal
Requires: %{?scl_prefix}rubygem(validates_lengths_from_database) < 1.0
5079aa72 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(friendly_id) >= 5.2.4
Requires: %{?scl_prefix}rubygem(friendly_id) < 6
5c84394b Michael Moll
Requires: %{?scl_prefix}rubygem(secure_headers) >= 5.0
Requires: %{?scl_prefix}rubygem(secure_headers) < 6.0
aaad834c Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(safemode) >= 1.3.5
111cd7e7 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(safemode) < 2
Requires: %{?scl_prefix}rubygem(fast_gettext) >= 1.4
Requires: %{?scl_prefix}rubygem(fast_gettext) < 2.0
f6cc8f34 Dominic Cleal
Requires: %{?scl_prefix}rubygem(gettext_i18n_rails) >= 1.0
Requires: %{?scl_prefix}rubygem(gettext_i18n_rails) < 2.0
03de3bd3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(rails-i18n) >= 5.0
Requires: %{?scl_prefix}rubygem(rails-i18n) < 6.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix_ror}rubygem(turbolinks) >= 2.5.4
111cd7e7 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix_ror}rubygem(turbolinks) < 3
Requires: %{?scl_prefix}rubygem(logging) >= 1.8.0
Requires: %{?scl_prefix}rubygem(logging) < 3.0.0
ddd83b9c Michael Moll
Requires: %{?scl_prefix}rubygem(fog-core) = 1.45.0
970fc2d4 Dominic Cleal
Requires: %{?scl_prefix}rubygem(net-scp)
9d14b631 Dominic Cleal
Requires: %{?scl_prefix}rubygem(net-ssh)
67a37697 Dominic Cleal
Requires: %{?scl_prefix}rubygem(net-ldap) >= 0.8.0
df0458f2 Dominic Cleal
Requires: %{?scl_prefix}rubygem(net-ping)
877075bc Michael Moll
Requires: %{?scl_prefix}rubygem(activerecord-session_store) >= 1.1.0
108561e3 Dominic Cleal
Requires: %{?scl_prefix}rubygem(activerecord-session_store) < 2
a0d37211 Dominic Cleal
Requires: %{?scl_prefix_ror}rubygem(sprockets) >= 3
111cd7e7 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix_ror}rubygem(sprockets) < 4.0
9c214ade Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix_ror}rubygem(sprockets-rails) >= 3.0
Requires: %{?scl_prefix_ror}rubygem(sprockets-rails) < 4.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(record_tag_helper) >= 1.0
Requires: %{?scl_prefix}rubygem(record_tag_helper) < 2.0
e0170ca6 Dominic Cleal
Requires: %{?scl_prefix}rubygem(responders) >= 2.0
111cd7e7 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(responders) < 3.0
58c396fa Dominic Cleal
Requires: %{?scl_prefix}rubygem(roadie-rails) >= 1.1
111cd7e7 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(roadie-rails) < 2.0
42917573 Dominic Cleal
Requires: %{?scl_prefix}rubygem(x-editable-rails) >= 1.5.5
Requires: %{?scl_prefix}rubygem(x-editable-rails) < 1.6.0
3a877a37 Dominic Cleal
Requires: %{?scl_prefix}rubygem(deacon) >= 1.0
Requires: %{?scl_prefix}rubygem(deacon) < 2.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(webpack-rails) >= 0.9.8
111cd7e7 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(webpack-rails) < 0.10.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix_ror}rubygem(mail) >= 2.7
33c3aa47 Dominic Cleal
Requires: %{?scl_prefix_ror}rubygem(mail) < 3.0
58579c17 Dominic Cleal
Requires: %{?scl_prefix}rubygem(sshkey) >= 1.9
Requires: %{?scl_prefix}rubygem(sshkey) < 2.0
111cd7e7 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(dynflow) >= 1.0.0
Requires: %{?scl_prefix}rubygem(dynflow) < 2.0.0
b93eb400 Daniel Lobato Garcia
Requires: %{?scl_prefix}rubygem(daemons)
Requires: %{?scl_prefix}rubygem(get_process_mem)
9e31024d Ewoud Kohl van Wijngaarden
# end specfile main Requires

# start specfile facter Requires
032b3cd5 Dominic Cleal
Requires: %{?scl_prefix}rubygem(facter)
9e31024d Ewoud Kohl van Wijngaarden
# end specfile facter Requires

# start specfile jsonp Requires
b273713e Dominic Cleal
Requires: %{?scl_prefix}rubygem(rack-jsonp)
9e31024d Ewoud Kohl van Wijngaarden
# end specfile jsonp Requires
f6cc8f34 Dominic Cleal
# Build dependencies
114dd478 Ewoud Kohl van Wijngaarden
%{?systemd_requires}
f6cc8f34 Dominic Cleal
BuildRequires: gettext
BuildRequires: asciidoc
44be90c9 Dominic Cleal
BuildRequires: %{scl_ruby_bin}
b319e683 Dominic Cleal
BuildRequires: %{?scl_prefix_ruby}rubygems
BuildRequires: %{?scl_prefix_ruby}rubygem(rake) >= 0.8.3
23762790 Dominic Cleal
BuildRequires: %{?scl_prefix_ruby}rubygem(rdoc)
847450fa Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(bundler_ext)
9e31024d Ewoud Kohl van Wijngaarden
# start specfile sqlite BuildRequires
9c214ade Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix_ror}rubygem(sqlite3) >= 1.3.6
BuildRequires: %{?scl_prefix_ror}rubygem(sqlite3) < 1.4.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile sqlite BuildRequires

# start specfile main BuildRequires
03de3bd3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix_ror}rubygem(rails) = 5.1.6
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(rest-client) >= 2.0.0
BuildRequires: %{?scl_prefix}rubygem(rest-client) < 3
5079aa72 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(audited) >= 4.7.1
BuildRequires: %{?scl_prefix}rubygem(audited) < 5
f6cc8f34 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(will_paginate) >= 3.0
baf21388 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(will_paginate) < 4.0
f6cc8f34 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(ancestry) >= 2.0
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(ancestry) < 4
BuildRequires: %{?scl_prefix}rubygem(scoped_search) >= 4.1.3
BuildRequires: %{?scl_prefix}rubygem(scoped_search) < 5
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(ldap_fluff) >= 0.4.7
f6cc8f34 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(ldap_fluff) < 1.0
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(apipie-rails) >= 0.5.2
438f9229 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(apipie-rails) < 0.6.0
f6cc8f34 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(rabl) >= 0.11
BuildRequires: %{?scl_prefix}rubygem(rabl) < 1.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(oauth) >= 0.5.4
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(oauth) < 1
5079aa72 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(deep_cloneable) >= 2.3.2
f6cc8f34 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(deep_cloneable) < 3.0
56b90b51 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(validates_lengths_from_database) >= 0.5
f6cc8f34 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(validates_lengths_from_database) < 1.0
5079aa72 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(friendly_id) >= 5.2.4
BuildRequires: %{?scl_prefix}rubygem(friendly_id) < 6
5c84394b Michael Moll
BuildRequires: %{?scl_prefix}rubygem(secure_headers) >= 5.0
BuildRequires: %{?scl_prefix}rubygem(secure_headers) < 6.0
aaad834c Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(safemode) >= 1.3.5
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(safemode) < 2
BuildRequires: %{?scl_prefix}rubygem(fast_gettext) >= 1.4
BuildRequires: %{?scl_prefix}rubygem(fast_gettext) < 2.0
f6cc8f34 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(gettext_i18n_rails) >= 1.0
BuildRequires: %{?scl_prefix}rubygem(gettext_i18n_rails) < 2.0
03de3bd3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(rails-i18n) >= 5.0
BuildRequires: %{?scl_prefix}rubygem(rails-i18n) < 6.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix_ror}rubygem(turbolinks) >= 2.5.4
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix_ror}rubygem(turbolinks) < 3
BuildRequires: %{?scl_prefix}rubygem(logging) >= 1.8.0
BuildRequires: %{?scl_prefix}rubygem(logging) < 3.0.0
ddd83b9c Michael Moll
BuildRequires: %{?scl_prefix}rubygem(fog-core) = 1.45.0
970fc2d4 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(net-scp)
9d14b631 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(net-ssh)
67a37697 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(net-ldap) >= 0.8.0
df0458f2 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(net-ping)
877075bc Michael Moll
BuildRequires: %{?scl_prefix}rubygem(activerecord-session_store) >= 1.1.0
108561e3 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(activerecord-session_store) < 2
a0d37211 Dominic Cleal
BuildRequires: %{?scl_prefix_ror}rubygem(sprockets) >= 3
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix_ror}rubygem(sprockets) < 4.0
9c214ade Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix_ror}rubygem(sprockets-rails) >= 3.0
BuildRequires: %{?scl_prefix_ror}rubygem(sprockets-rails) < 4.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(record_tag_helper) >= 1.0
BuildRequires: %{?scl_prefix}rubygem(record_tag_helper) < 2.0
e0170ca6 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(responders) >= 2.0
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(responders) < 3.0
58c396fa Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(roadie-rails) >= 1.1
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(roadie-rails) < 2.0
42917573 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(x-editable-rails) >= 1.5.5
BuildRequires: %{?scl_prefix}rubygem(x-editable-rails) < 1.6.0
3a877a37 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(deacon) >= 1.0
BuildRequires: %{?scl_prefix}rubygem(deacon) < 2.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(webpack-rails) >= 0.9.8
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(webpack-rails) < 0.10.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix_ror}rubygem(mail) >= 2.7
33c3aa47 Dominic Cleal
BuildRequires: %{?scl_prefix_ror}rubygem(mail) < 3.0
58579c17 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(sshkey) >= 1.9
BuildRequires: %{?scl_prefix}rubygem(sshkey) < 2.0
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(dynflow) >= 1.0.0
BuildRequires: %{?scl_prefix}rubygem(dynflow) < 2.0.0
b93eb400 Daniel Lobato Garcia
BuildRequires: %{?scl_prefix}rubygem(daemons)
BuildRequires: %{?scl_prefix}rubygem(get_process_mem)
9e31024d Ewoud Kohl van Wijngaarden
# end specfile main BuildRequires

f6cc8f34 Dominic Cleal
# assets
6bfa31ba Dominic Cleal
%if 0%{?scl:1}
951913dd Eric D. Helms
BuildRequires: %{scl}-runtime-assets >= 4
BuildRequires: %{scl}-runtime-assets < 5
6bfa31ba Dominic Cleal
%endif
0cb223bd Michael Moll
BuildRequires: nodejs >= 6.10
ea056073 Eric D. Helms
BuildRequires: http-parser
52b8ee2a Daniel Lobato
# Temporary dep on libuv until https://bugs.centos.org/view.php?id=10606
# is resolved
BuildRequires: libuv
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: nodejs-packaging
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: systemd
da100ef7 Ewoud Kohl van Wijngaarden
f9900069 Ewoud Kohl van Wijngaarden
# start package.json devDependencies BuildRequires
d3334bb9 Ewoud Kohl van Wijngaarden
#BuildRequires: npm(@storybook/addon-actions) >= 3.2.12
#BuildRequires: npm(@storybook/addon-actions) < 4.0.0
5079aa72 Ewoud Kohl van Wijngaarden
#BuildRequires: npm(@storybook/addon-knobs) >= 3.4.3
#BuildRequires: npm(@storybook/addon-knobs) < 4.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
#BuildRequires: npm(@storybook/react) >= 3.2.12
#BuildRequires: npm(@storybook/react) < 4.0.0
#BuildRequires: npm(@storybook/storybook-deployer) >= 2.0.0
#BuildRequires: npm(@storybook/storybook-deployer) < 3.0.0
9fe76861 Ewoud Kohl van Wijngaarden
#BuildRequires: npm(axios-mock-adapter) >= 1.10.0
#BuildRequires: npm(axios-mock-adapter) < 2.0.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(babel-cli) >= 6.10.1
BuildRequires: npm(babel-cli) < 7.0.0
BuildRequires: npm(babel-core) >= 6.26.0
BuildRequires: npm(babel-core) < 7.0.0
#BuildRequires: npm(babel-eslint) >= 6.1.2
#BuildRequires: npm(babel-eslint) < 7.0.0
#BuildRequires: npm(babel-jest) >= 15.0.0
#BuildRequires: npm(babel-jest) < 16.0.0
b93eb400 Daniel Lobato Garcia
BuildRequires: npm(babel-loader) >= 7.1.1
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(babel-loader) < 8.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
BuildRequires: npm(babel-plugin-lodash) >= 3.3.2
BuildRequires: npm(babel-plugin-lodash) < 4.0.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(babel-plugin-transform-class-properties) >= 6.24.1
BuildRequires: npm(babel-plugin-transform-class-properties) < 7.0.0
9ff20c7f Dominic Cleal
BuildRequires: npm(babel-plugin-transform-object-assign) >= 6.8.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(babel-plugin-transform-object-assign) < 7.0.0
9ff20c7f Dominic Cleal
BuildRequires: npm(babel-plugin-transform-object-rest-spread) >= 6.8.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(babel-plugin-transform-object-rest-spread) < 7.0.0
BuildRequires: npm(babel-preset-env) >= 1.6.1
BuildRequires: npm(babel-preset-env) < 2.0.0
9ff20c7f Dominic Cleal
BuildRequires: npm(babel-preset-react) >= 6.5.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(babel-preset-react) < 7.0.0
BuildRequires: npm(babel-register) >= 6.9.0
BuildRequires: npm(babel-register) < 7.0.0
5079aa72 Ewoud Kohl van Wijngaarden
BuildRequires: npm(compression-webpack-plugin) >= 1.1.11
BuildRequires: npm(compression-webpack-plugin) < 1.2.0
e91fb83d Ewoud Kohl van Wijngaarden
#BuildRequires: npm(coveralls) >= 3.0.0
#BuildRequires: npm(coveralls) < 4.0.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(css-loader) >= 0.23.1
BuildRequires: npm(css-loader) < 1.0.0
aaad834c Ewoud Kohl van Wijngaarden
BuildRequires: npm(dotenv) >= 5.0.0
BuildRequires: npm(dotenv) < 6.0.0
da100ef7 Ewoud Kohl van Wijngaarden
#BuildRequires: npm(enzyme) >= 3.1.1
#BuildRequires: npm(enzyme) < 4.0.0
#BuildRequires: npm(enzyme-adapter-react-16) >= 1.0.4
#BuildRequires: npm(enzyme-adapter-react-16) < 2.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
#BuildRequires: npm(enzyme-to-json) >= 3.2.1
#BuildRequires: npm(enzyme-to-json) < 4.0.0
#BuildRequires: npm(eslint) >= 4.10.0
#BuildRequires: npm(eslint) < 5.0.0
#BuildRequires: npm(eslint-config-airbnb-base) >= 12.1.0
#BuildRequires: npm(eslint-config-airbnb-base) < 13.0.0
#BuildRequires: npm(eslint-plugin-import) >= 2.8.0
#BuildRequires: npm(eslint-plugin-import) < 3.0.0
#BuildRequires: npm(eslint-plugin-react) >= 7.4.0
#BuildRequires: npm(eslint-plugin-react) < 8.0.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(expose-loader) >= 0.6.0
BuildRequires: npm(expose-loader) < 0.7.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: npm(extract-text-webpack-plugin) >= 3.0.0
BuildRequires: npm(extract-text-webpack-plugin) < 4.0.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(file-loader) >= 0.9.0
BuildRequires: npm(file-loader) < 1.0.0
BuildRequires: npm(identity-obj-proxy) >= 3.0.0
BuildRequires: npm(identity-obj-proxy) < 4.0.0
#BuildRequires: npm(jest-cli) >= 20.0.0
#BuildRequires: npm(jest-cli) < 21.0.0
BuildRequires: npm(jsdom) >= 9.5.0
BuildRequires: npm(jsdom) < 10.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
BuildRequires: npm(lodash-webpack-plugin) >= 0.11.4
BuildRequires: npm(lodash-webpack-plugin) < 1.0.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(node-sass) >= 4.5.0
BuildRequires: npm(node-sass) < 5.0.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: npm(raf) >= 3.4.0
BuildRequires: npm(raf) < 4.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
#BuildRequires: npm(react-test-renderer) >= 16.2.0
da100ef7 Ewoud Kohl van Wijngaarden
#BuildRequires: npm(react-test-renderer) < 17.0.0
#BuildRequires: npm(redux-mock-store) >= 1.2.2
#BuildRequires: npm(redux-mock-store) < 2.0.0
BuildRequires: npm(sass-loader) >= 6.0.6
BuildRequires: npm(sass-loader) < 6.1.0
BuildRequires: npm(style-loader) >= 0.13.1
BuildRequires: npm(style-loader) < 1.0.0
#BuildRequires: npm(stylelint) >= 7.13.0
#BuildRequires: npm(stylelint) < 8.0.0
#BuildRequires: npm(stylelint-config-standard) >= 16.0.0
#BuildRequires: npm(stylelint-config-standard) < 17.0.0
7584ba01 Ewoud Kohl van Wijngaarden
BuildRequires: npm(uglifyjs-webpack-plugin) >= 1.2.2
BuildRequires: npm(uglifyjs-webpack-plugin) < 2.0.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(url-loader) >= 0.5.7
BuildRequires: npm(url-loader) < 1.0.0
BuildRequires: npm(webpack) >= 3.4.1
BuildRequires: npm(webpack) < 4.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
#BuildRequires: npm(webpack-dev-server) >= 2.5.1
#BuildRequires: npm(webpack-dev-server) < 3.0.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: npm(webpack-stats-plugin) >= 0.1.5
BuildRequires: npm(webpack-stats-plugin) < 1.0.0
f9900069 Ewoud Kohl van Wijngaarden
# end package.json devDependencies BuildRequires
da100ef7 Ewoud Kohl van Wijngaarden
f9900069 Ewoud Kohl van Wijngaarden
# start package.json dependencies BuildRequires
9fe76861 Ewoud Kohl van Wijngaarden
BuildRequires: npm(axios) >= 0.17.1
BuildRequires: npm(axios) < 1.0.0
7b18d684 Ewoud Kohl van Wijngaarden
BuildRequires: npm(babel-polyfill) >= 6.26.0
BuildRequires: npm(babel-polyfill) < 7.0.0
7566ceeb Dominic Cleal
BuildRequires: npm(brace) >= 0.10.0
BuildRequires: npm(brace) < 1.0.0
e57ef0cd Daniel Lobato
BuildRequires: npm(datatables.net) >= 1.10.12
BuildRequires: npm(datatables.net) < 1.11.0
aec85bf7 Daniel Lobato
BuildRequires: npm(datatables.net-bs) >= 1.10.12
BuildRequires: npm(datatables.net-bs) < 1.11.0
114a433c Dominic Cleal
BuildRequires: npm(diff) >= 3.0.0
BuildRequires: npm(diff) < 3.1.0
2997c9d6 Dominic Cleal
BuildRequires: npm(ipaddr.js) >= 1.2.0
BuildRequires: npm(ipaddr.js) < 1.3.0
d3334bb9 Ewoud Kohl van Wijngaarden
BuildRequires: npm(isomorphic-fetch) >= 2.2.1
BuildRequires: npm(isomorphic-fetch) < 3.0.0
155632db Dominic Cleal
BuildRequires: npm(jquery) >= 2.2.4
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(jquery) < 2.3.0
575f2a23 Dominic Cleal
BuildRequires: npm(jquery-flot) >= 0.8.3
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(jquery-flot) < 0.9.0
575f2a23 Dominic Cleal
BuildRequires: npm(jquery-ujs) >= 1.2.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(jquery-ujs) < 1.3.0
575f2a23 Dominic Cleal
BuildRequires: npm(jquery.cookie) >= 1.4.1
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(jquery.cookie) < 1.5.0
575f2a23 Dominic Cleal
BuildRequires: npm(jstz) >= 1.0.7
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(jstz) < 1.1.0
5a7679cf Daniel Lobato
BuildRequires: npm(lodash) >= 4.15.0
276f0731 Ewoud Kohl van Wijngaarden
BuildRequires: npm(lodash) < 5.0.0
a74c2673 Daniel Lobato Garcia
BuildRequires: npm(multiselect) >= 0.9.12
BuildRequires: npm(multiselect) < 0.10.0
46467543 Ewoud Kohl van Wijngaarden
BuildRequires: npm(patternfly) >= 3.42.0
BuildRequires: npm(patternfly) < 4.0.0
5079aa72 Ewoud Kohl van Wijngaarden
BuildRequires: npm(patternfly-react) = 2.5.1
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(prop-types) >= 15.6.0
c04b2a31 Dominic Cleal
BuildRequires: npm(prop-types) < 16.0.0
5079aa72 Ewoud Kohl van Wijngaarden
BuildRequires: npm(react) >= 16.3.1
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(react) < 17.0.0
46467543 Ewoud Kohl van Wijngaarden
BuildRequires: npm(react-bootstrap) >= 0.32.1
9ff20c7f Dominic Cleal
BuildRequires: npm(react-bootstrap) < 1.0.0
bd749bf3 Ewoud Kohl van Wijngaarden
BuildRequires: npm(react-debounce-input) >= 3.2.0
BuildRequires: npm(react-debounce-input) < 4.0.0
5079aa72 Ewoud Kohl van Wijngaarden
BuildRequires: npm(react-dom) >= 16.3.1
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(react-dom) < 17.0.0
bd749bf3 Ewoud Kohl van Wijngaarden
BuildRequires: npm(react-ellipsis-with-tooltip) >= 1.0.8
d3334bb9 Ewoud Kohl van Wijngaarden
BuildRequires: npm(react-ellipsis-with-tooltip) < 2.0.0
b93eb400 Daniel Lobato Garcia
BuildRequires: npm(react-numeric-input) >= 2.0.7
BuildRequires: npm(react-numeric-input) < 3.0.0
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(react-onclickoutside) >= 6.6.2
BuildRequires: npm(react-onclickoutside) < 7.0.0
9fe76861 Ewoud Kohl van Wijngaarden
BuildRequires: npm(react-password-strength) >= 2.1.0
BuildRequires: npm(react-password-strength) < 3.0.0
aaad834c Ewoud Kohl van Wijngaarden
BuildRequires: npm(react-redux) >= 5.0.6
5cc1bcc3 Dominic Cleal
BuildRequires: npm(react-redux) < 6.0.0
BuildRequires: npm(redux) >= 3.6.0
BuildRequires: npm(redux) < 4.0.0
9fe76861 Ewoud Kohl van Wijngaarden
BuildRequires: npm(redux-form) = 7.2.0
d3334bb9 Ewoud Kohl van Wijngaarden
BuildRequires: npm(redux-form-validators) >= 2.1.2
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(redux-form-validators) < 3.0.0
5cc1bcc3 Dominic Cleal
BuildRequires: npm(redux-logger) >= 2.8.1
BuildRequires: npm(redux-logger) < 3.0.0
BuildRequires: npm(redux-thunk) >= 2.2.0
BuildRequires: npm(redux-thunk) < 3.0.0
276f0731 Ewoud Kohl van Wijngaarden
BuildRequires: npm(seamless-immutable) >= 7.1.2
BuildRequires: npm(seamless-immutable) < 8.0.0
52b8ee2a Daniel Lobato
BuildRequires: npm(select2) >= 3.5.2
BuildRequires: npm(select2) < 3.6.0
df7a2ca6 Ohad Levy
BuildRequires: npm(urijs) >= 1.18.10
da100ef7 Ewoud Kohl van Wijngaarden
BuildRequires: npm(urijs) < 2.0.0
37cb517c Dominic Cleal
BuildRequires: npm(uuid) >= 3.0.1
BuildRequires: npm(uuid) < 4.0.0
f9900069 Ewoud Kohl van Wijngaarden
# end package.json dependencies BuildRequires
da100ef7 Ewoud Kohl van Wijngaarden
9e31024d Ewoud Kohl van Wijngaarden
# start specfile assets BuildRequires
9c214ade Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix_ror}rubygem(jquery-turbolinks) >= 2.1
BuildRequires: %{?scl_prefix_ror}rubygem(jquery-turbolinks) < 3.0
d3876e0f Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(jquery-ui-rails) < 5.0.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(patternfly-sass) >= 3.32.1
BuildRequires: %{?scl_prefix}rubygem(patternfly-sass) < 3.38.0
1e9b1dad Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(gridster-rails) >= 0.5
f6cc8f34 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(gridster-rails) < 1.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(gettext_i18n_rails_js) >= 1.0
BuildRequires: %{?scl_prefix}rubygem(gettext_i18n_rails_js) < 2.0
BuildRequires: %{?scl_prefix_ror}rubygem(execjs) >= 1.4.0
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix_ror}rubygem(execjs) < 3.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix_ror}rubygem(uglifier) >= 1.0.3
BuildRequires: %{?scl_prefix_ror}rubygem(sass-rails) >= 5.0
111cd7e7 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix_ror}rubygem(sass-rails) < 6.0
58fea2c3 Ewoud Kohl van Wijngaarden
BuildRequires: %{?scl_prefix}rubygem(spice-html5-rails) >= 0.1.5
BuildRequires: %{?scl_prefix}rubygem(spice-html5-rails) < 0.2.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile assets BuildRequires

# start specfile facter BuildRequires
032b3cd5 Dominic Cleal
BuildRequires: %{?scl_prefix}rubygem(facter)
9e31024d Ewoud Kohl van Wijngaarden
# end specfile facter BuildRequires
847450fa Dominic Cleal
%package cli
Summary: Foreman CLI
Group: Applications/System
d2718ada Dominic Cleal
Requires: %{?scl_prefix}rubygem(hammer_cli_foreman)
847450fa Dominic Cleal
%description cli
Meta Package to install hammer rubygems and its dependencies

%files cli

b79e046b Lukas Zapletal
%package debug
Summary: Foreman debug utilities
Group: Applications/System
Requires: rsync

%description debug
Useful utilities for debug info collection

%files debug
%{_sbindir}/%{name}-debug
%{_datadir}/%{name}/script/%{name}-debug.d

847450fa Dominic Cleal
%package release
Summary: Foreman repository files
114dd478 Ewoud Kohl van Wijngaarden
Group: Applications/System
847450fa Dominic Cleal

%description release
Foreman repository contains open source and other distributable software for
distributions in RPM format. This package contains the repository configuration
for Yum.

%files release
3848787a Lukas Zapletal
%config %{_sysconfdir}/yum.repos.d/*
847450fa Dominic Cleal
/etc/pki/rpm-gpg/*
f1375ed8 Dominic Cleal
%{_sysconfdir}/rpm/macros.%{name}-dist
847450fa Dominic Cleal
%package libvirt
Summary: Foreman libvirt support
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile libvirt Requires
ddd83b9c Michael Moll
Requires: %{?scl_prefix}rubygem(fog-libvirt) >= 0.4.1
3165a1e9 Dominic Cleal
Requires: %{?scl_prefix}rubygem(fog-libvirt) < 1.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(ruby-libvirt) >= 0.5
f6cc8f34 Dominic Cleal
Requires: %{?scl_prefix}rubygem(ruby-libvirt) < 1.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile libvirt Requires
847450fa Dominic Cleal
Requires: %{name} = %{version}-%{release}
ca6462c4 Michael Moll
Requires: genisoimage
847450fa Dominic Cleal
Obsoletes: foreman-virt < 1.0.0
Provides: foreman-virt = 1.0.0

%description libvirt
9fdd8318 Dominic Cleal
Meta package to install requirements for libvirt compute resource support.
847450fa Dominic Cleal
%files libvirt
%{_datadir}/%{name}/bundler.d/libvirt.rb

9fdd8318 Dominic Cleal
%package openstack
Summary: Foreman OpenStack support
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile openstack Requires
5079aa72 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(fog-openstack) >= 0.1.25
9fdd8318 Dominic Cleal
Requires: %{?scl_prefix}rubygem(fog-openstack) < 1.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile openstack Requires
9fdd8318 Dominic Cleal
Requires: %{name} = %{version}-%{release}

%description openstack
Meta package to install requirements for OpenStack compute resource support.

%files openstack
%{_datadir}/%{name}/bundler.d/openstack.rb

847450fa Dominic Cleal
%package ovirt
9fdd8318 Dominic Cleal
Summary: Foreman oVirt support
847450fa Dominic Cleal
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile ovirt Requires
5079aa72 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(fog-ovirt) >= 1.0.4
957a3a3d Michael Moll
Requires: %{?scl_prefix}rubygem(fog-ovirt) < 1.1.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile ovirt Requires
847450fa Dominic Cleal
Requires: foreman-compute = %{version}-%{release}
Requires: %{name} = %{version}-%{release}

%description ovirt
9fdd8318 Dominic Cleal
Meta package to install requirements for oVirt compute resource support.
847450fa Dominic Cleal
%files ovirt
%{_datadir}/%{name}/bundler.d/ovirt.rb

%package compute
9fdd8318 Dominic Cleal
Summary: Foreman compute resource Fog dependencies
847450fa Dominic Cleal
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile fog Requires
951913dd Eric D. Helms
Requires: %{?scl_prefix}rubygem(fog) = 1.42.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile fog Requires
847450fa Dominic Cleal
Requires: %{name} = %{version}-%{release}
dc907d0c Dominic Cleal
Obsoletes: foreman-compute < 1.8.0
847450fa Dominic Cleal
Obsoletes: foreman-fog < 1.0.0
Provides: foreman-fog = 1.0.0
dc907d0c Dominic Cleal
Obsoletes: foreman-ec2 < 1.3.0
847450fa Dominic Cleal
%description compute
9fdd8318 Dominic Cleal
Meta package to install dependencies to support some compute resources. Most
compute resources have a more specific package which should be installed in
preference to this package.
847450fa Dominic Cleal
%files compute
%{_datadir}/%{name}/bundler.d/fog.rb

dc907d0c Dominic Cleal
%package ec2
Summary: Foreman Amazon Web Services (AWS) EC2 support
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile ec2 Requires
9c214ade Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(fog-aws) >= 0.1
Requires: %{?scl_prefix}rubygem(fog-aws) < 2
9e31024d Ewoud Kohl van Wijngaarden
# end specfile ec2 Requires
dc907d0c Dominic Cleal
Requires: %{name} = %{version}-%{release}

%description ec2
Meta package to install requirements for Amazon Web Services (AWS) EC2 support.

%files ec2
%{_datadir}/%{name}/bundler.d/ec2.rb

9fdd8318 Dominic Cleal
%package rackspace
Summary: Foreman Rackspace support
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile rackspace Requires
12b970a4 Dominic Cleal
Requires: %{?scl_prefix}rubygem(fog-rackspace) >= 0.1.4
Requires: %{?scl_prefix}rubygem(fog-rackspace) < 0.2.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile rackspace Requires
9fdd8318 Dominic Cleal
Requires: %{name} = %{version}-%{release}

%description rackspace
Meta package to install requirements for Rackspace compute resource support.

%files rackspace
%{_datadir}/%{name}/bundler.d/rackspace.rb

847450fa Dominic Cleal
%package vmware
9fdd8318 Dominic Cleal
Summary: Foreman VMware support
847450fa Dominic Cleal
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile vmware Requires
054dc6fa Chris Roberts
Requires: %{?scl_prefix}rubygem(fog-vsphere) >= 2.3.0
5079aa72 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(rbvmomi) >= 1.9.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile vmware Requires
847450fa Dominic Cleal
Requires: %{name} = %{version}-%{release}

%description vmware
9fdd8318 Dominic Cleal
Meta package to install requirements for VMware compute resource support.
847450fa Dominic Cleal
%files vmware
%{_datadir}/%{name}/bundler.d/vmware.rb

%package gce
Summary: Foreman Google Compute Engine (GCE) support
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile gce Requires
829a0919 Daniel Lobato
Requires: %{?scl_prefix}rubygem(fog-google) <= 0.1.0
c7d590f8 Dominic Cleal
Requires: %{?scl_prefix}rubygem(google-api-client) >= 0.8.2
Requires: %{?scl_prefix}rubygem(google-api-client) < 0.9.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile gce Requires
847450fa Dominic Cleal
Requires: %{name} = %{version}-%{release}

%description gce
Meta package to install requirements for Google Compute Engine (GCE) support

%files gce
%{_datadir}/%{name}/bundler.d/gce.rb

%package assets
Summary: Foreman asset pipeline support
114dd478 Ewoud Kohl van Wijngaarden
Group: Applications/System
847450fa Dominic Cleal
Requires: %{name} = %{version}-%{release}
6bfa31ba Dominic Cleal
%if 0%{?scl:1}
951913dd Eric D. Helms
Requires: %{scl}-runtime-assets >= 4
Requires: %{scl}-runtime-assets < 5
6bfa31ba Dominic Cleal
%endif
0cb223bd Michael Moll
Requires: nodejs >= 6.10
52b8ee2a Daniel Lobato
# Temporary dep on libuv until https://bugs.centos.org/view.php?id=10606
# is resolved
Requires: libuv
da100ef7 Ewoud Kohl van Wijngaarden
f9900069 Ewoud Kohl van Wijngaarden
# start package.json devDependencies Requires
d3334bb9 Ewoud Kohl van Wijngaarden
#Requires: npm(@storybook/addon-actions) >= 3.2.12
#Requires: npm(@storybook/addon-actions) < 4.0.0
5079aa72 Ewoud Kohl van Wijngaarden
#Requires: npm(@storybook/addon-knobs) >= 3.4.3
#Requires: npm(@storybook/addon-knobs) < 4.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
#Requires: npm(@storybook/react) >= 3.2.12
#Requires: npm(@storybook/react) < 4.0.0
#Requires: npm(@storybook/storybook-deployer) >= 2.0.0
#Requires: npm(@storybook/storybook-deployer) < 3.0.0
9fe76861 Ewoud Kohl van Wijngaarden
#Requires: npm(axios-mock-adapter) >= 1.10.0
#Requires: npm(axios-mock-adapter) < 2.0.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(babel-cli) >= 6.10.1
Requires: npm(babel-cli) < 7.0.0
Requires: npm(babel-core) >= 6.26.0
Requires: npm(babel-core) < 7.0.0
#Requires: npm(babel-eslint) >= 6.1.2
#Requires: npm(babel-eslint) < 7.0.0
#Requires: npm(babel-jest) >= 15.0.0
#Requires: npm(babel-jest) < 16.0.0
b93eb400 Daniel Lobato Garcia
Requires: npm(babel-loader) >= 7.1.1
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(babel-loader) < 8.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
Requires: npm(babel-plugin-lodash) >= 3.3.2
Requires: npm(babel-plugin-lodash) < 4.0.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(babel-plugin-transform-class-properties) >= 6.24.1
Requires: npm(babel-plugin-transform-class-properties) < 7.0.0
9ff20c7f Dominic Cleal
Requires: npm(babel-plugin-transform-object-assign) >= 6.8.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(babel-plugin-transform-object-assign) < 7.0.0
9ff20c7f Dominic Cleal
Requires: npm(babel-plugin-transform-object-rest-spread) >= 6.8.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(babel-plugin-transform-object-rest-spread) < 7.0.0
Requires: npm(babel-preset-env) >= 1.6.1
Requires: npm(babel-preset-env) < 2.0.0
9ff20c7f Dominic Cleal
Requires: npm(babel-preset-react) >= 6.5.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(babel-preset-react) < 7.0.0
Requires: npm(babel-register) >= 6.9.0
Requires: npm(babel-register) < 7.0.0
5079aa72 Ewoud Kohl van Wijngaarden
Requires: npm(compression-webpack-plugin) >= 1.1.11
Requires: npm(compression-webpack-plugin) < 1.2.0
e91fb83d Ewoud Kohl van Wijngaarden
#Requires: npm(coveralls) >= 3.0.0
#Requires: npm(coveralls) < 4.0.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(css-loader) >= 0.23.1
Requires: npm(css-loader) < 1.0.0
aaad834c Ewoud Kohl van Wijngaarden
Requires: npm(dotenv) >= 5.0.0
Requires: npm(dotenv) < 6.0.0
da100ef7 Ewoud Kohl van Wijngaarden
#Requires: npm(enzyme) >= 3.1.1
#Requires: npm(enzyme) < 4.0.0
#Requires: npm(enzyme-adapter-react-16) >= 1.0.4
#Requires: npm(enzyme-adapter-react-16) < 2.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
#Requires: npm(enzyme-to-json) >= 3.2.1
#Requires: npm(enzyme-to-json) < 4.0.0
#Requires: npm(eslint) >= 4.10.0
#Requires: npm(eslint) < 5.0.0
#Requires: npm(eslint-config-airbnb-base) >= 12.1.0
#Requires: npm(eslint-config-airbnb-base) < 13.0.0
#Requires: npm(eslint-plugin-import) >= 2.8.0
#Requires: npm(eslint-plugin-import) < 3.0.0
#Requires: npm(eslint-plugin-react) >= 7.4.0
#Requires: npm(eslint-plugin-react) < 8.0.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(expose-loader) >= 0.6.0
Requires: npm(expose-loader) < 0.7.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: npm(extract-text-webpack-plugin) >= 3.0.0
Requires: npm(extract-text-webpack-plugin) < 4.0.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(file-loader) >= 0.9.0
Requires: npm(file-loader) < 1.0.0
Requires: npm(identity-obj-proxy) >= 3.0.0
Requires: npm(identity-obj-proxy) < 4.0.0
#Requires: npm(jest-cli) >= 20.0.0
#Requires: npm(jest-cli) < 21.0.0
Requires: npm(jsdom) >= 9.5.0
Requires: npm(jsdom) < 10.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
Requires: npm(lodash-webpack-plugin) >= 0.11.4
Requires: npm(lodash-webpack-plugin) < 1.0.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(node-sass) >= 4.5.0
Requires: npm(node-sass) < 5.0.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: npm(raf) >= 3.4.0
Requires: npm(raf) < 4.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
#Requires: npm(react-test-renderer) >= 16.2.0
da100ef7 Ewoud Kohl van Wijngaarden
#Requires: npm(react-test-renderer) < 17.0.0
#Requires: npm(redux-mock-store) >= 1.2.2
#Requires: npm(redux-mock-store) < 2.0.0
Requires: npm(sass-loader) >= 6.0.6
Requires: npm(sass-loader) < 6.1.0
Requires: npm(style-loader) >= 0.13.1
Requires: npm(style-loader) < 1.0.0
#Requires: npm(stylelint) >= 7.13.0
#Requires: npm(stylelint) < 8.0.0
#Requires: npm(stylelint-config-standard) >= 16.0.0
#Requires: npm(stylelint-config-standard) < 17.0.0
7584ba01 Ewoud Kohl van Wijngaarden
Requires: npm(uglifyjs-webpack-plugin) >= 1.2.2
Requires: npm(uglifyjs-webpack-plugin) < 2.0.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(url-loader) >= 0.5.7
Requires: npm(url-loader) < 1.0.0
Requires: npm(webpack) >= 3.4.1
Requires: npm(webpack) < 4.0.0
d3334bb9 Ewoud Kohl van Wijngaarden
#Requires: npm(webpack-dev-server) >= 2.5.1
#Requires: npm(webpack-dev-server) < 3.0.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: npm(webpack-stats-plugin) >= 0.1.5
Requires: npm(webpack-stats-plugin) < 1.0.0
f9900069 Ewoud Kohl van Wijngaarden
# end package.json devDependencies Requires
da100ef7 Ewoud Kohl van Wijngaarden
f9900069 Ewoud Kohl van Wijngaarden
# start package.json dependencies Requires
9fe76861 Ewoud Kohl van Wijngaarden
Requires: npm(axios) >= 0.17.1
Requires: npm(axios) < 1.0.0
7b18d684 Ewoud Kohl van Wijngaarden
Requires: npm(babel-polyfill) >= 6.26.0
Requires: npm(babel-polyfill) < 7.0.0
7566ceeb Dominic Cleal
Requires: npm(brace) >= 0.10.0
Requires: npm(brace) < 1.0.0
e57ef0cd Daniel Lobato
Requires: npm(datatables.net) >= 1.10.12
Requires: npm(datatables.net) < 1.11.0
aec85bf7 Daniel Lobato
Requires: npm(datatables.net-bs) >= 1.10.12
Requires: npm(datatables.net-bs) < 1.11.0
114a433c Dominic Cleal
Requires: npm(diff) >= 3.0.0
Requires: npm(diff) < 3.1.0
2997c9d6 Dominic Cleal
Requires: npm(ipaddr.js) >= 1.2.0
Requires: npm(ipaddr.js) < 1.3.0
d3334bb9 Ewoud Kohl van Wijngaarden
Requires: npm(isomorphic-fetch) >= 2.2.1
Requires: npm(isomorphic-fetch) < 3.0.0
155632db Dominic Cleal
Requires: npm(jquery) >= 2.2.4
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(jquery) < 2.3.0
575f2a23 Dominic Cleal
Requires: npm(jquery-flot) >= 0.8.3
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(jquery-flot) < 0.9.0
575f2a23 Dominic Cleal
Requires: npm(jquery-ujs) >= 1.2.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(jquery-ujs) < 1.3.0
575f2a23 Dominic Cleal
Requires: npm(jquery.cookie) >= 1.4.1
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(jquery.cookie) < 1.5.0
575f2a23 Dominic Cleal
Requires: npm(jstz) >= 1.0.7
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(jstz) < 1.1.0
5a7679cf Daniel Lobato
Requires: npm(lodash) >= 4.15.0
276f0731 Ewoud Kohl van Wijngaarden
Requires: npm(lodash) < 5.0.0
a74c2673 Daniel Lobato Garcia
Requires: npm(multiselect) >= 0.9.12
Requires: npm(multiselect) < 0.10.0
46467543 Ewoud Kohl van Wijngaarden
Requires: npm(patternfly) >= 3.42.0
Requires: npm(patternfly) < 4.0.0
5079aa72 Ewoud Kohl van Wijngaarden
Requires: npm(patternfly-react) = 2.5.1
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(prop-types) >= 15.6.0
c04b2a31 Dominic Cleal
Requires: npm(prop-types) < 16.0.0
5079aa72 Ewoud Kohl van Wijngaarden
Requires: npm(react) >= 16.3.1
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(react) < 17.0.0
46467543 Ewoud Kohl van Wijngaarden
Requires: npm(react-bootstrap) >= 0.32.1
9ff20c7f Dominic Cleal
Requires: npm(react-bootstrap) < 1.0.0
bd749bf3 Ewoud Kohl van Wijngaarden
Requires: npm(react-debounce-input) >= 3.2.0
Requires: npm(react-debounce-input) < 4.0.0
5079aa72 Ewoud Kohl van Wijngaarden
Requires: npm(react-dom) >= 16.3.1
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(react-dom) < 17.0.0
bd749bf3 Ewoud Kohl van Wijngaarden
Requires: npm(react-ellipsis-with-tooltip) >= 1.0.8
d3334bb9 Ewoud Kohl van Wijngaarden
Requires: npm(react-ellipsis-with-tooltip) < 2.0.0
b93eb400 Daniel Lobato Garcia
Requires: npm(react-numeric-input) >= 2.0.7
Requires: npm(react-numeric-input) < 3.0.0
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(react-onclickoutside) >= 6.6.2
Requires: npm(react-onclickoutside) < 7.0.0
9fe76861 Ewoud Kohl van Wijngaarden
Requires: npm(react-password-strength) >= 2.1.0
Requires: npm(react-password-strength) < 3.0.0
aaad834c Ewoud Kohl van Wijngaarden
Requires: npm(react-redux) >= 5.0.6
5cc1bcc3 Dominic Cleal
Requires: npm(react-redux) < 6.0.0
Requires: npm(redux) >= 3.6.0
Requires: npm(redux) < 4.0.0
9fe76861 Ewoud Kohl van Wijngaarden
Requires: npm(redux-form) = 7.2.0
d3334bb9 Ewoud Kohl van Wijngaarden
Requires: npm(redux-form-validators) >= 2.1.2
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(redux-form-validators) < 3.0.0
5cc1bcc3 Dominic Cleal
Requires: npm(redux-logger) >= 2.8.1
Requires: npm(redux-logger) < 3.0.0
Requires: npm(redux-thunk) >= 2.2.0
Requires: npm(redux-thunk) < 3.0.0
276f0731 Ewoud Kohl van Wijngaarden
Requires: npm(seamless-immutable) >= 7.1.2
Requires: npm(seamless-immutable) < 8.0.0
52b8ee2a Daniel Lobato
Requires: npm(select2) >= 3.5.2
Requires: npm(select2) < 3.6.0
df7a2ca6 Ohad Levy
Requires: npm(urijs) >= 1.18.10
da100ef7 Ewoud Kohl van Wijngaarden
Requires: npm(urijs) < 2.0.0
37cb517c Dominic Cleal
Requires: npm(uuid) >= 3.0.1
Requires: npm(uuid) < 4.0.0
f9900069 Ewoud Kohl van Wijngaarden
# end package.json dependencies Requires
da100ef7 Ewoud Kohl van Wijngaarden
9e31024d Ewoud Kohl van Wijngaarden
# start specfile assets Requires
9c214ade Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix_ror}rubygem(jquery-turbolinks) >= 2.1
Requires: %{?scl_prefix_ror}rubygem(jquery-turbolinks) < 3.0
6fd68d23 Dominic Cleal
Requires: %{?scl_prefix}rubygem(jquery-ui-rails) < 5.0.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(patternfly-sass) >= 3.32.1
Requires: %{?scl_prefix}rubygem(patternfly-sass) < 3.38.0
1e9b1dad Dominic Cleal
Requires: %{?scl_prefix}rubygem(gridster-rails) >= 0.5
9c214ade Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(gridster-rails) < 1.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(gettext_i18n_rails_js) >= 1.0
9c214ade Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(gettext_i18n_rails_js) < 2.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix_ror}rubygem(execjs) >= 1.4.0
111cd7e7 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix_ror}rubygem(execjs) < 3.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix_ror}rubygem(uglifier) >= 1.0.3
Requires: %{?scl_prefix_ror}rubygem(sass-rails) >= 5.0
9c214ade Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix_ror}rubygem(sass-rails) < 6.0
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(spice-html5-rails) >= 0.1.5
9c214ade Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(spice-html5-rails) < 0.2.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile assets Requires
847450fa Dominic Cleal
%description assets
Meta package to install asset pipeline support.

%files assets
%{_datadir}/%{name}/bundler.d/assets.rb
afdd7651 Eric D Helms
%{_datadir}/%{name}/webpack
44c190a4 Martin Bačovský
%package plugin
Summary: Foreman plugin support
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
f1375ed8 Dominic Cleal
Requires: %{name}-release = %{version}-%{release}
44c190a4 Martin Bačovský
Requires: %{name}-sqlite = %{version}-%{release}

%description plugin
Meta package with support for plugins.

%files plugin
%{_sysconfdir}/rpm/macros.%{name}-plugin
248db50f Dominic Cleal
%{_datadir}/%{name}/schema_plugin.rb
44c190a4 Martin Bačovský
847450fa Dominic Cleal
%package console
Summary: Foreman console support
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile console Requires
f6cc8f34 Dominic Cleal
Requires: %{?scl_prefix}rubygem(wirb) >= 1.0
6503f3b1 Dominic Cleal
Requires: %{?scl_prefix}rubygem(wirb) < 3.0
609d3bb8 Dominic Cleal
Requires: %{?scl_prefix}rubygem(hirb-unicode-steakknife) >= 0.0.7
9c214ade Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(hirb-unicode-steakknife) < 0.1.0
f6cc8f34 Dominic Cleal
Requires: %{?scl_prefix}rubygem(awesome_print) >= 1.0
Requires: %{?scl_prefix}rubygem(awesome_print) < 2.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile console Requires
847450fa Dominic Cleal
Requires: %{name} = %{version}-%{release}

%description console
Meta Package to install requirements for console support

%files console
%{_datadir}/%{name}/bundler.d/console.rb

%package mysql2
Summary: Foreman mysql2 support
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile mysql2 Requires
58fea2c3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(mysql2) >= 0.3.18
03de3bd3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(mysql2) < 0.6.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile mysql2 Requires
847450fa Dominic Cleal
Requires: %{name} = %{version}-%{release}
Obsoletes: %{name}-mysql < 1.4.0
Provides: %{name}-mysql = %{version}

%description mysql2
Meta Package to install requirements for mysql2 support

%files mysql2
%{_datadir}/%{name}/bundler.d/mysql2.rb

%package postgresql
Summary: Foreman Postgresql support
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile postgresql Requires
9c214ade Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(pg) >= 0.18
03de3bd3 Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(pg) < 2.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile postgresql Requires
847450fa Dominic Cleal
Requires: %{name} = %{version}-%{release}

%description postgresql
Meta Package to install requirements for postgresql support

%files postgresql
%{_datadir}/%{name}/bundler.d/postgresql.rb

%package sqlite
Summary: Foreman sqlite support
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile sqlite Requires
43539b4a Dominic Cleal
Requires: %{?scl_prefix_ror}rubygem(sqlite3) >= 1.3.6
a851fa4c Dominic Cleal
Requires: %{?scl_prefix_ror}rubygem(sqlite3) < 1.4.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile sqlite Requires
847450fa Dominic Cleal
Requires: %{name} = %{version}-%{release}

%description sqlite
Meta Package to install requirements for sqlite support

%files sqlite
%{_datadir}/%{name}/bundler.d/sqlite.rb

a5ac50ff Ewoud Kohl van Wijngaarden
%package telemetry
Summary: Foreman telemetry support
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile telemetry Requires
af2d539c Ewoud Kohl van Wijngaarden
Requires: %{?scl_prefix}rubygem(prometheus-client)
Requires: %{?scl_prefix}rubygem(statsd-instrument)
9e31024d Ewoud Kohl van Wijngaarden
# end specfile telemetry Requires
a5ac50ff Ewoud Kohl van Wijngaarden
Requires: %{name} = %{version}-%{release}

%description telemetry
Meta Package to install requirements for telemetry support

%files telemetry
%{_datadir}/%{name}/bundler.d/telemetry.rb

6240c1f2 Daniel Lobato Garcia
%package journald
Summary: Foreman journald logging support
Group: Applications/System
9e31024d Ewoud Kohl van Wijngaarden
# start specfile journald Requires
e7b1c42c Lukas Zapletal
Requires: %{?scl_prefix}rubygem(logging-journald) >= 1.0
Requires: %{?scl_prefix}rubygem(logging-journald) < 2.0
9e31024d Ewoud Kohl van Wijngaarden
# end specfile journald Requires
6240c1f2 Daniel Lobato Garcia
Requires: %{name} = %{version}-%{release}

%description journald
Meta Package to install requirements for journald logging support

%files journald
%{_datadir}/%{name}/bundler.d/journald.rb

a5ac50ff Ewoud Kohl van Wijngaarden
%description
Foreman is aimed to be a Single Address For All Machines Life Cycle Management.
Foreman is based on Ruby on Rails, and this package bundles Rails and all
plugins required for Foreman to work.

847450fa Dominic Cleal
%prep
2a2cd4ee Dominic Cleal
%setup -q -n %{name}-%{version}%{?dashalphatag}
847450fa Dominic Cleal
ea45d271 Dominic Cleal
# Apply Rails 4.2.5.1 to .8 compatibility patch
[ -e lib/core_extensions.rb ] && cat %{SOURCE9} >> lib/core_extensions.rb || exit 1

847450fa Dominic Cleal
%build
#build man pages
%{scl_rake} -f Rakefile.dist build \
PREFIX=%{_prefix} \
SBINDIR=%{_sbindir} \
SYSCONFDIR=%{_sysconfdir} \
--trace

#replace shebangs and binaries in scripts for SCL
%if %{?scl:1}%{!?scl:0}
# shebangs
ed299036 Eric D. Helms
for f in bin/* script/performance/profiler script/performance/benchmarker script/foreman-config script/dynflowd ; do
44be90c9 Dominic Cleal
sed -ri '1sX(/usr/bin/ruby|/usr/bin/env ruby)X%{scl_ruby_bin}X' $f
847450fa Dominic Cleal
done
44be90c9 Dominic Cleal
sed -ri '1,$sX/usr/bin/rubyX%{scl_ruby_bin}X' %{SOURCE1}
847450fa Dominic Cleal
# script content
sed -ri 'sX/usr/bin/rakeX%{scl_rake}X' extras/dbmigrate script/foreman-rake
%endif

#build locale files
make -C locale all-mo

#use Bundler_ext instead of Bundler
mv Gemfile Gemfile.in
cp config/database.yml.example config/database.yml
cp config/settings.yaml.example config/settings.yaml
fe35b7d2 Marek Hulan
#we need to allow taxonomies so apipie cache renders documentation with them
sed -i 's/:locations_enabled: false/:locations_enabled: true/' config/settings.yaml
sed -i 's/:organizations_enabled: false/:organizations_enabled: true/' config/settings.yaml
847450fa Dominic Cleal
export BUNDLER_EXT_GROUPS="default assets"
52b8ee2a Daniel Lobato
ln -s %{nodejs_sitelib} node_modules
export NODE_ENV=production
ea056073 Eric D. Helms
%{?scl:scl enable %{scl} "}
98a7c7f9 Ewoud Kohl van Wijngaarden
webpack --bail --config config/webpack.config.js
ea056073 Eric D. Helms
%{?scl:"}
d8a02190 Dominic Cleal
%{scl_rake} assets:precompile RAILS_ENV=production --trace
248db50f Dominic Cleal
%{scl_rake} db:migrate db:schema:dump RAILS_ENV=production --trace
44c190a4 Martin Bačovský
%{scl_rake} apipie:cache RAILS_ENV=production cache_part=resources --trace
847450fa Dominic Cleal
rm config/database.yml config/settings.yaml

%install
rm -rf %{buildroot}

#install man pages
%{scl_rake} -f Rakefile.dist install \
PREFIX=%{buildroot}%{_prefix} \
SBINDIR=%{buildroot}%{_sbindir} \
SYSCONFDIR=%{buildroot}%{_sysconfdir} \
--trace
%{scl_rake} -f Rakefile.dist clean

install -d -m0755 %{buildroot}%{_datadir}/%{name}
install -d -m0755 %{buildroot}%{_datadir}/%{name}/plugins
install -d -m0755 %{buildroot}%{_sysconfdir}/%{name}
install -d -m0755 %{buildroot}%{_sysconfdir}/%{name}/plugins
install -d -m0755 %{buildroot}%{_localstatedir}/lib/%{name}
install -d -m0755 %{buildroot}%{_localstatedir}/lib/%{name}/tmp
install -d -m0755 %{buildroot}%{_localstatedir}/lib/%{name}/tmp/pids
install -d -m0755 %{buildroot}%{_localstatedir}/run/%{name}
install -d -m0750 %{buildroot}%{_localstatedir}/log/%{name}
install -d -m0750 %{buildroot}%{_localstatedir}/log/%{name}/plugins
f6c7778f Ivan Nečas
#Copy init scripts and sysconfigs
9f521604 Daniel Lobato Garcia
install -Dp -m0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/sysconfig/%{executor_service_name}
f6c7778f Ivan Nečas
install -Dp -m0644 %{SOURCE11} %{buildroot}%{_unitdir}/%{executor_service_name}.service
9f521604 Daniel Lobato Garcia
install -Dp -m0755 script/%{executor_service_name} %{buildroot}%{_sbindir}/%{executor_service_name}
847450fa Dominic Cleal
install -Dp -m0755 script/%{name}-debug %{buildroot}%{_sbindir}/%{name}-debug
install -Dp -m0755 script/%{name}-rake %{buildroot}%{_sbindir}/%{name}-rake
install -Dp -m0755 script/%{name}-tail %{buildroot}%{_sbindir}/%{name}-tail
install -Dp -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}
install -Dp -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -Dp -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -Dp -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/cron.d/%{name}
b2e5d2cd Ewoud Kohl van Wijngaarden
install -Dp -m0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf
847450fa Dominic Cleal
install -Dpm0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/yum.repos.d/%{name}.repo
install -Dpm0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/yum.repos.d/%{name}-plugins.repo
f32464fa Dominic Cleal
sed "s/\$DIST/$(echo %{?dist} | cut -d. -f2)/g" -i %{buildroot}%{_sysconfdir}/yum.repos.d/%{name}*.repo
f40fc44a Ewoud Kohl van Wijngaarden
if [[ '%{release}' != *"develop"* ]];then
VERSION="%{version}"
sed "s/nightly/${VERSION%.*}/g" -i %{buildroot}%{_sysconfdir}/yum.repos.d/%{name}*.repo
fi
847450fa Dominic Cleal
install -Dpm0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-foreman

cp -p Gemfile.in %{buildroot}%{_datadir}/%{name}/Gemfile.in
afdd7651 Eric D Helms
cp -p -r app bin bundler.d config config.ru extras lib locale Rakefile script webpack %{buildroot}%{_datadir}/%{name}
847450fa Dominic Cleal
rm -rf %{buildroot}%{_datadir}/%{name}/extras/{jumpstart,spec}
5abc2008 Lukas Zapletal
find %{buildroot}%{_datadir}/%{name}/script/%{name}-tail.d/* -type d |xargs rm -rf
847450fa Dominic Cleal
# remove all test units from produciton release
find %{buildroot}%{_datadir}/%{name} -type d -name "test" |xargs rm -rf

8c9db247 Dominic Cleal
# remove spring loader, depends on Bundler and only installed via development group
rm -f %{buildroot}%{_datadir}/%{name}/bin/spring

847450fa Dominic Cleal
# Move config files to %{_sysconfdir}
mv %{buildroot}%{_datadir}/%{name}/config/database.yml.example %{buildroot}%{_datadir}/%{name}/config/database.yml
mv %{buildroot}%{_datadir}/%{name}/config/settings.yaml.example %{buildroot}%{_datadir}/%{name}/config/settings.yaml

f7510c39 Dominic Cleal
for i in database.yml logging.yaml settings.yaml foreman-debug.conf; do
847450fa Dominic Cleal
mv %{buildroot}%{_datadir}/%{name}/config/$i %{buildroot}%{_sysconfdir}/%{name}
ln -sv %{_sysconfdir}/%{name}/$i %{buildroot}%{_datadir}/%{name}/config/$i
done

# Put db in %{_localstatedir}/lib/%{name}/db
cp -pr db/migrate db/seeds.rb db/seeds.d %{buildroot}%{_datadir}/%{name}
mkdir %{buildroot}%{_localstatedir}/lib/%{name}/db

ln -sv %{_localstatedir}/lib/%{name}/db %{buildroot}%{_datadir}/%{name}/db
ln -sv %{_datadir}/%{name}/migrate %{buildroot}%{_localstatedir}/lib/%{name}/db/migrate
ln -sv %{_datadir}/%{name}/seeds.rb %{buildroot}%{_localstatedir}/lib/%{name}/db/seeds.rb
ln -sv %{_datadir}/%{name}/seeds.d %{buildroot}%{_localstatedir}/lib/%{name}/db/seeds.d

# Put HTML %{_localstatedir}/lib/%{name}/public
cp -pr public %{buildroot}%{_localstatedir}/lib/%{name}/
ln -sv %{_localstatedir}/lib/%{name}/public %{buildroot}%{_datadir}/%{name}/public

# Put logs in %{_localstatedir}/log/%{name}
ln -sv %{_localstatedir}/log/%{name} %{buildroot}%{_datadir}/%{name}/log

# Put tmp files in %{_localstatedir}/run/%{name}
ln -sv %{_localstatedir}/run/%{name} %{buildroot}%{_datadir}/%{name}/tmp

# Symlink plugin settings directory to
ln -sv %{_sysconfdir}/%{name}/plugins %{buildroot}%{_datadir}/%{name}/config/settings.plugins.d

# Create VERSION file
install -pm0644 VERSION %{buildroot}%{_datadir}/%{name}/VERSION

4f88ce8e Dominic Cleal
# Create RPM macros for plugin packages to use at build time
mkdir -p %{buildroot}%{_sysconfdir}/rpm
cat > %{buildroot}%{_sysconfdir}/rpm/macros.%{name} << EOF
# Common locations
%%%{name}_dir %{_datadir}/%{name}
%%%{name}_bundlerd_dir %%{%{name}_dir}/bundler.d
%%%{name}_log_dir %{_localstatedir}/log/%{name}

# Common commands
%%%{name}_rake %{foreman_rake}
%%%{name}_db_migrate %%{%{name}_rake} db:migrate >> %%{%{name}_log_dir}/db_migrate.log 2>&1 || :
%%%{name}_db_seed %%{%{name}_rake} db:seed >> %%{%{name}_log_dir}/db_seed.log 2>&1 || :
114dd478 Ewoud Kohl van Wijngaarden
%%%{name}_restart (/bin/systemctl try-restart %{name}.service) >/dev/null 2>&1
44c190a4 Martin Bačovský
EOF
4f88ce8e Dominic Cleal
248db50f Dominic Cleal
# Keep a copy of the schema for quick initialisation of plugin builds
cp -pr db/schema.rb %{buildroot}%{_datadir}/%{name}/schema_plugin.rb

f1375ed8 Dominic Cleal
cat > %{buildroot}%{_sysconfdir}/rpm/macros.%{name}-dist << EOF
# Version to use like a dist tag
%%%{name}dist .fm$(echo %{version} | awk -F. '{print $1 "_" $2}')
EOF

44c190a4 Martin Bačovský
cat > %{buildroot}%{_sysconfdir}/rpm/macros.%{name}-plugin << EOF
4f88ce8e Dominic Cleal
# Generate bundler.d file for a plugin
# -n<plugin_name> Overrides default of gem_name
%%%{name}_bundlerd_file(n:) \\
mkdir -p %%{buildroot}%%{%{name}_bundlerd_dir} \\
cat <<GEMFILE > %%{buildroot}%%{%{name}_bundlerd_dir}/%%{-n*}%%{!?-n:%%{gem_name}}.rb \\
gem '%%{-n*}%%{!?-n:%%{gem_name}}' \\
GEMFILE

# Common locations
44c190a4 Martin Bačovský
%%%{name}_bundlerd_plugin %%{%{name}_bundlerd_dir}/%%{gem_name}.rb
%%%{name}_pluginconf_dir %{_sysconfdir}/%{name}/plugins
# Common assets locations
4f88ce8e Dominic Cleal
%%%{name}_assets_plugin %%{gem_instdir}/public/assets/%%{gem_name}
2b4ac3e4 Daniel Lobato Garcia
# Common webpack locations
afdd7651 Eric D Helms
%%%{name}_webpack_plugin %%{gem_instdir}/public/webpack/%%{gem_name}
%%%{name}_webpack_foreman %%{foreman_dir}/public/webpack/%%{gem_name}
44c190a4 Martin Bačovský
# Common apipie locations
%%%{name}_apipie_cache_plugin %%{gem_instdir}/public/apipie-cache/plugin/%%{gem_name}
%%%{name}_apipie_cache_foreman %%{foreman_dir}/public/apipie-cache/plugin/%%{gem_name}
# build apipie cache index
%%%{name}_apipie_cache %%{%{name}_rake} apipie:cache:index >> %%{%{name}_log_dir}/apipie_cache.log 2>&1 || :
4f88ce8e Dominic Cleal
# Generate precompiled assets at gem_instdir/public/assets/gem_name/
# -r<rake_task> Overrides rake task of plugin:assets:precompile[plugin_name]
# -n<plugin_name> Overrides default of gem_name for precompile step
44c190a4 Martin Bačovský
# -a Prebuild apipie cache
# -s Precompile assets
%%%{name}_precompile_plugin(r:n:as) \\
mkdir -p ./%{_datadir} \\
cp -r %%{%{name}_dir} ./%{_datadir} || echo 0 \\
mkdir -p ./%{_localstatedir}/lib/%{name} \\
cp -r %{_localstatedir}/lib/%{name}/db ./%{_localstatedir}/lib/%{name} || echo 0 \\
unlink ./%{_datadir}/%{name}/db \\
ln -sv \`pwd\`/%{_localstatedir}/lib/%{name}/db ./%{_datadir}/%{name}/db \\
pushd ./%%{%{name}_dir} \\
4f88ce8e Dominic Cleal
\\
afdd7651 Eric D Helms
ln -s %{nodejs_sitelib} node_modules \\
89bbb597 Eric D. Helms
sed -i 's/:locations_enabled: false/:locations_enabled: true/' \`pwd\`/config/settings.yaml \\
sed -i 's/:organizations_enabled: false/:organizations_enabled: true/' \`pwd\`/config/settings.yaml \\
a851fa4c Dominic Cleal
export GEM_PATH=%%{buildroot}%%{gem_dir}:\${GEM_PATH:+\${GEM_PATH}}\${GEM_PATH:-\`%{?scl:scl enable %%{scl_ror} -- }ruby -e "print Gem.path.join(':')"\`} \\
4f88ce8e Dominic Cleal
cp %%{buildroot}%%{%{name}_bundlerd_dir}/%%{gem_name}.rb ./bundler.d/%%{gem_name}.rb \\
245d5f8d Eric D. Helms
unlink tmp \\
4f88ce8e Dominic Cleal
\\
44c190a4 Martin Bačovský
rm \`pwd\`/config/initializers/encryption_key.rb \\
/usr/bin/%%{?scl:%%{scl}-}rake security:generate_encryption_key \\
4f88ce8e Dominic Cleal
export BUNDLER_EXT_NOSTRICT=1 \\
afdd7651 Eric D Helms
export NODE_ENV=production \\
44c190a4 Martin Bačovský
%%{?-s:/usr/bin/%%{?scl:%%{scl}-}rake %%{-r*}%%{!?-r:plugin:assets:precompile[%%{-n*}%%{!?-n:%%{gem_name}}]} RAILS_ENV=production --trace} \\
248db50f Dominic Cleal
%%{?-a:/usr/bin/%%{?scl:%%{scl}-}rake db:create db:schema:load SCHEMA=%{_datadir}/%{name}/schema_plugin.rb RAILS_ENV=development --trace} \\
44c190a4 Martin Bačovský
%%{?-a:/usr/bin/%%{?scl:%%{scl}-}rake db:migrate RAILS_ENV=development --trace} \\
7bd40898 Ewoud Kohl van Wijngaarden
%%{?-a:/usr/bin/%%{?scl:%%{scl}-}rake plugin:apipie:cache[%%{gem_name}] RAILS_ENV=development cache_part=resources OUT=%%{buildroot}%%{%{name}_apipie_cache_plugin} --trace} \\
4f88ce8e Dominic Cleal
\\
popd \\
44c190a4 Martin Bačovský
rm -rf ./usr \\
%%{?-a:mkdir -p %%{buildroot}%%{foreman_dir}/public/apipie-cache/plugin} \\
7bd40898 Ewoud Kohl van Wijngaarden
%%{?-a:ln -s %%{%{name}_apipie_cache_plugin} %%{buildroot}%%{%{name}_apipie_cache_foreman}} \\
%%{?-s:[ -e %%{buildroot}%%{%{name}_webpack_plugin} ] && mkdir -p %%{buildroot}%%{foreman_dir}/public/webpack} \\
%%{?-s:[ -e %%{buildroot}%%{%{name}_webpack_plugin} ] && ln -s %%{%{name}_webpack_plugin} %%{buildroot}%%{%{name}_webpack_foreman}}
4f88ce8e Dominic Cleal
EOF

847450fa Dominic Cleal
%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,0755)
e7754c49 Ewoud Kohl van Wijngaarden
%doc CHANGELOG Contributors README.md VERSION
%license LICENSE
b273713e Dominic Cleal
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/app
847450fa Dominic Cleal
%exclude %{_datadir}/%{name}/app/assets
b79e046b Lukas Zapletal
%exclude %{_datadir}/%{name}/script/%{name}-debug.d
b273713e Dominic Cleal
%dir %{_datadir}/%{name}/bundler.d
%exclude %{_datadir}/%{name}/bundler.d/development.rb
%{_datadir}/%{name}/bundler.d/facter.rb
%{_datadir}/%{name}/bundler.d/jsonp.rb
%exclude %{_datadir}/%{name}/bundler.d/openid.rb
%exclude %{_datadir}/%{name}/bundler.d/test.rb
15ec3b25 Dominic Cleal
%{_datadir}/%{name}/bin
b273713e Dominic Cleal
%{_datadir}/%{name}/config*
%{_datadir}/%{name}/db
%{_datadir}/%{name}/extras
%{_datadir}/%{name}/Gemfile.in
%{_datadir}/%{name}/lib
%{_datadir}/%{name}/locale
%{_datadir}/%{name}/log
%{_datadir}/%{name}/migrate
%{_datadir}/%{name}/plugins
%{_datadir}/%{name}/public
%{_datadir}/%{name}/Rakefile
%{_datadir}/%{name}/script
%{_datadir}/%{name}/seeds.*
%attr(700,%{name},%{name}) %{_datadir}/%{name}/.ssh
%{_datadir}/%{name}/tmp
%{_datadir}/%{name}/VERSION
847450fa Dominic Cleal
%{_initrddir}/%{name}
%{_sbindir}/%{name}-rake
%{_sbindir}/%{name}-tail
%{_mandir}/man8
%config(noreplace) %{_sysconfdir}/%{name}
%ghost %attr(0640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/encryption_key.rb
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config %{_sysconfdir}/cron.d/%{name}
4f88ce8e Dominic Cleal
%{_sysconfdir}/rpm/macros.%{name}
847450fa Dominic Cleal
%attr(-,%{name},%{name}) %{_localstatedir}/lib/%{name}
%attr(750,%{name},%{name}) %{_localstatedir}/log/%{name}
%attr(750,%{name},%{name}) %{_localstatedir}/log/%{name}/plugins
%attr(-,%{name},%{name}) %{_localstatedir}/run/%{name}
%attr(-,%{name},root) %{_datadir}/%{name}/config.ru
%attr(-,%{name},root) %{_datadir}/%{name}/config/environment.rb
%ghost %{_datadir}/%{name}/config/initializers/encryption_key.rb
fe0c00eb Ewoud Kohl van Wijngaarden
%ghost %attr(0640,root,%{name}) %config(noreplace) %{_datadir}/%{name}/config/initializers/local_secret_token.rb
b2e5d2cd Ewoud Kohl van Wijngaarden
%{_tmpfilesdir}/%{name}.conf
847450fa Dominic Cleal
f6c7778f Ivan Nečas
# Service
9f521604 Daniel Lobato Garcia
%{_sbindir}/%{executor_service_name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{executor_service_name}
f6c7778f Ivan Nečas
%{_unitdir}/%{executor_service_name}.service

847450fa Dominic Cleal
%pre
# Add the "foreman" user and group
getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || \
useradd -r -g %{name} -d %{homedir} -s /sbin/nologin -c "Foreman" %{name}
exit 0

%post
# secret token used for cookie signing etc.
fe0c00eb Ewoud Kohl van Wijngaarden
if [ ! -f %{_datadir}/%{name}/config/initializers/local_secret_token.rb ]; then
847450fa Dominic Cleal
touch %{_datadir}/%{name}/config/initializers/local_secret_token.rb
chmod 0660 %{_datadir}/%{name}/config/initializers/local_secret_token.rb
chgrp foreman %{_datadir}/%{name}/config/initializers/local_secret_token.rb
%{foreman_rake} security:generate_token >/dev/null 2>&1 || :
chmod 0640 %{_datadir}/%{name}/config/initializers/local_secret_token.rb
fi

# encryption key used to encrypt DB contents
# move the generated key file to /etc/foreman/ so users back it up, symlink to it from ~foreman
if [ ! -e %{_datadir}/%{name}/config/initializers/encryption_key.rb -a \
! -e %{_sysconfdir}/%{name}/encryption_key.rb ]; then
touch %{_datadir}/%{name}/config/initializers/encryption_key.rb
chmod 0660 %{_datadir}/%{name}/config/initializers/encryption_key.rb
chgrp foreman %{_datadir}/%{name}/config/initializers/encryption_key.rb
%{foreman_rake} security:generate_encryption_key >/dev/null 2>&1 || :
chmod 0640 %{_datadir}/%{name}/config/initializers/encryption_key.rb
mv %{_datadir}/%{name}/config/initializers/encryption_key.rb %{_sysconfdir}/%{name}/
fi
if [ ! -e %{_datadir}/%{name}/config/initializers/encryption_key.rb -a \
-e %{_sysconfdir}/%{name}/encryption_key.rb ]; then
ln -s %{_sysconfdir}/%{name}/encryption_key.rb %{_datadir}/%{name}/config/initializers/
fi

114dd478 Ewoud Kohl van Wijngaarden
%systemd_postun_with_restart %{name}.service
9f521604 Daniel Lobato Garcia
%systemd_post %{executor_service_name}.service
847450fa Dominic Cleal
exit 0

%posttrans
# We need to run the db:migrate after the install transaction
# always attempt to reencrypt after update in case new fields can be encrypted
3e001292 Dominic Cleal
%{foreman_rake} db:migrate db:encrypt_all >> %{_localstatedir}/log/%{name}/db_migrate.log 2>&1 || :
847450fa Dominic Cleal
%{foreman_rake} db:seed >> %{_localstatedir}/log/%{name}/db_seed.log 2>&1 || :
44c190a4 Martin Bačovský
%{foreman_rake} apipie:cache:index >> %{_localstatedir}/log/%{name}/apipie_cache.log 2>&1 || :
a9b4455a Daniel Lobato García
%{foreman_rake} tmp:clear >> %{_localstatedir}/log/%{name}/tmp_clear.log 2>&1 || :
114dd478 Ewoud Kohl van Wijngaarden
(/bin/systemctl try-restart %{name}.service) >/dev/null 2>&1
847450fa Dominic Cleal
exit 0

%preun
9f521604 Daniel Lobato Garcia
%systemd_preun %{executor_service_name}.service
114dd478 Ewoud Kohl van Wijngaarden
%systemd_preun %{name}.service
847450fa Dominic Cleal
%postun
9f521604 Daniel Lobato Garcia
%systemd_postun_with_restart %{executor_service_name}.service
114dd478 Ewoud Kohl van Wijngaarden
%systemd_postun_with_restart %{name}.service
847450fa Dominic Cleal
%changelog
e7754c49 Ewoud Kohl van Wijngaarden
* Thu May 31 2018 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1.19.0-0.develop
- Bump version to 1.19-develop

0b558df4 Ewoud Kohl van Wijngaarden
* Thu Jan 11 2018 Eric D Helms <ericdhelms@gmail.com> - 1.18.0-0.develop
- Bump version to 1.18-develop

61b34a4c Daniel Lobato Garcia
* Mon Aug 28 2017 Daniel Lobato Garcia <me@daniellobato.me> - 1.17.0-0.develop
- Bump version to 1.17-develop
0b558df4 Ewoud Kohl van Wijngaarden
c06d9f42 Eric D. Helms
* Wed Mar 29 2017 Eric D Helms <ericdhelms@gmail.com> - 1.16.0-0.develop
- Bump version to 1.16-develop

5d4e18fe Dominic Cleal
* Tue Dec 06 2016 Dominic Cleal <dominic@cleal.org> - 1.15.0-0.develop
- Bump version to 1.15-develop

d1e331c2 Dominic Cleal
* Wed Sep 07 2016 Dominic Cleal <dominic@cleal.org> - 1.14.0-0.develop
- Bump version to 1.14-develop

d7a23846 Dominic Cleal
* Tue May 31 2016 Dominic Cleal <dominic@cleal.org> - 1.13.0-0.develop
- Bump version to 1.13-develop

31224600 Dominic Cleal
* Fri Feb 19 2016 Dominic Cleal <dominic@cleal.org> - 1.12.0-0.develop
- Bump version to 1.12-develop

421c5513 Dominic Cleal
* Wed Oct 07 2015 Dominic Cleal <dcleal@redhat.com> - 1.11.0-0.develop
- Bump version to 1.11-develop

307fc782 Dominic Cleal
* Fri Jun 26 2015 Dominic Cleal <dcleal@redhat.com> - 1.10.0-0.develop
- Bump version to 1.10-develop

e1348821 Dominic Cleal
* Tue Mar 03 2015 Dominic Cleal <dcleal@redhat.com> - 1.9.0-0.develop
- Bump version to 1.9-develop

de043601 Dominic Cleal
* Tue Oct 28 2014 Dominic Cleal <dcleal@redhat.com> - 1.8.0-0.develop
- Bump version to 1.8-develop

e73052c7 Dominic Cleal
* Mon Aug 11 2014 Dominic Cleal <dcleal@redhat.com> - 1.7.0-0.develop
- Bump version to 1.7-develop

847450fa Dominic Cleal
* Wed Apr 16 2014 Dominic Cleal <dcleal@redhat.com> - 1.6.0-0.develop
- Bump version to 1.6-develop

* Thu Jan 16 2014 Dominic Cleal <dcleal@redhat.com> - 1.5.0-0.develop
- Bump version to 1.5-develop
- Remove rails3_before_render dependency
- generate encryption key and encrypt data in postinstall (#2929)

* Thu Nov 21 2013 Dominic Cleal <dcleal@redhat.com> - 1.4.0-0.develop
- Bump and change versioning scheme, don't overwrite VERSION (#3712)
- Pin fog to 1.18.x
- Add new rails3_before_render dependency
- Removed foreman-mysql package (obsoleted by mysql2)
- Seed database after DB migration
- Change twitter-bootstrap-rails to bootstrap-sass
- Pin fog to 1.19.x
- Add BR and explicit dependency on Ruby binary, for ruby193-ruby-wrapper

* Tue Nov 12 2013 Sam Kottler <shk@redhat.com> - 1.3.9999-7
- Add rubygem-unf as a requires for the compute subpackage

* Sun Nov 10 2013 Dominic Cleal <dcleal@redhat.com> - 1.3.9999-6
* Add foreman-gce subpackage for Google Compute Engine

* Wed Nov 6 2013 David Davis <daviddavis@redhat.com> - 1.3.9999-5
- Removing rr gem, fixes #3597

* Fri Oct 25 2013 Martin Bacovsky <mbacovsk@redhat.com> - 1.3.9999-4
- foreman-cli metapackage installs hammer

* Mon Sep 30 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.3.9999-3
- Adding Foreman plugins repo

* Fri Sep 27 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.3.9999-2
- Update rubygem-ancestry to 2.x

* Wed Sep 11 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.3.9999-1
- Bump to version 1.3-develop

* Wed Sep 11 2013 Dominic Cleal <dcleal@redhat.com> - 1.2.9999-11
- Add new foreigner and immigrant dependencies

* Mon Sep 09 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.2.9999-10
- Added dependency on fast_gettext 0.8 (multi-domain support)

* Mon Sep 02 2013 Greg Sutcliffe <gsutclif@redhat.com> 1.2.9999-9
- Remove Puppet from core requirements

* Fri Aug 16 2013 Sam Kottler <shk@redhat.com> 1.2.9999-8
- Update fog dependency to 1.15.0 to fix rackspace VM listing issue

* Wed Jul 24 2013 Jason Montleon <jmontleo@redhat.com> 1.2.9999-7
- Update rbovirt dependency version to 0.0.21 to support sending the host ssl certificate subject as an option to the xpi plugin

* Fri Jul 19 2013 Dominic Cleal <dcleal@redhat.com> 1.2.9999-6
- add foreman-rake to /usr/sbin

* Mon Jun 17 2013 Dominic Cleal <dcleal@redhat.com> 1.2.9999-5
- fix asset dependency versions
- add minitest dependency for console (Lukas Zapletal)

* Thu Jun 06 2013 Dominic Cleal <dcleal@redhat.com> 1.2.9999-4
- fix libvirt package dependency on ruby-libvirt

* Wed Jun 05 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.2.9999-3
- foreman-debug tool now installed into /usr/sbin

* Tue May 28 2013 Dominic Cleal <dcleal@redhat.com> 1.2.9999-2
- Don't force SCL
- Distribute GPG key
- Replace dist in foreman.repo
- Rename foreman-ec2 to foreman-compute
- Update dbmigrate for SCL (Lukas Zapletal)

* Mon May 20 2013 Dominic Cleal <dcleal@redhat.com> 1.2.9999-1
- Updated to 1.2.9999 (1.3-pre)

* Tue Apr 30 2013 Sam Kottler <shk@redhat.com> 1.1.9999-1
- Updated to 1.1.9999 (1.2-pre)

* Fri Feb 15 2013 shk@redhat.com 1.1-3
- Bumped safemode dependency

* Thu Feb 14 2013 shk@redhat.com 1.1-2
- Fixed baseurl in the -release subpackage.
- Updated to 1.1-1

* Mon Feb 4 2013 shk@redhat.com 1.1-1
- 1.1 final.

* Mon Jan 28 2013 shk@redhat.com 1.1RC5-2
- Bumped fog version dependency

* Fri Jan 25 2013 shk@redhat.com 1.1RC5-1
- Updated Rails requirements and bumped to RC5.

* Thu Dec 27 2012 shk@redhat.com 1.1RC3-1
- Updated to 1.1RC3 and updated dependencies.

* Wed Dec 19 2012 jmontleo@redhat.com 1.0.2-1
- Fix Foreman SQL injection through search mechanism CVE-2012-5648

* Thu Aug 09 2012 jmontleo@redhat.com 1.0.1-1
- Version 1.0.1

* Sun Aug 05 2012 jmontleo@redhat.com 1.0.0-2
- Update to pull in fixes

* Mon Jul 23 2012 jmontleo@redhat.com 1.0.0-1
- Update packages for Foreman 1.0 Release and add support for using thin.

* Wed Jul 18 2012 jmontleo@redhat.com 1.0.0-0.7
- Updated pacakages for Foreman 1.0 RC5 and Proxy RC2

* Thu Jul 05 2012 jmontleo@redhat.com 1.0.0-0.6
- Fix foreman-release to account for different archs. Pull todays source.

* Wed Jul 04 2012 jmontleo@redhat.com 1.0.0-0.5
- Bump version number and rebuild for RC3

* Sun Jul 01 2012 jmontleo@redhat.com 1.0.0-0.4
- Pull todays develop branch to fix dbmigrate issue, add mistakenly deleted version string back, and replace foreman-fog with foreman-ec2 as it indicates more clearly what functionality the package provides.

* Fri Jun 29 2012 jmontleo@redhat.com 1.0.0-0.3
- More fixes for dbmigrate, foreman-cli and foreman-release added

* Fri Jun 29 2012 jmontleo@redhat.com 1.0.0-0.2
- Rebuild with develop branch from today for 1.0.0 RC2. Try to fix inconsistent db:migrate runs on upgrades.

* Tue Jun 19 2012 jmontleo@redhat.com 0-5.1-20
- Implement conf.d style Gemfile configuration for bundle to replace the ugly method used in previous rpm versions. Replace foreman-virt package with foreman-libvirt package as it was confusing to have fog virt ovirt and vmware.

* Tue Jun 19 2012 jmontleo@redhat.com 0-5.1-9
- Rebuild with todays develop branch. Add VERSION file 1688, add wget dependency 1514, update rbovirt dep to 0.0.12, and break out ovirt support to foreman-ovirt package.

* Thu Jun 14 2012 jmontleo@redhat.com 0.5.1-8
- Rebuild with todays develop branch.

* Wed Jun 13 2012 jmontleo@redhat.com 0.5.1-7
- Rebuild with todays develop branch. Add require for at least rubygem-rake 0.9.2.2. Run rake:db migrate on upgrade.

* Wed May 30 2012 jmontleo@redhat.com 0.5.1-5
- Rebuild with todays merge of compute resource RBAC patch

* Tue May 29 2012 jmontleo@redhat.com 0.5.1-4
- Fix rpm dependencies for foreman-virt and foreman-vmware to include foreman-fog

* Tue May 29 2012 jmontleo@redhat.com 0.5.1-3
- tidy up postinstall prepbundle.sh, rebuild with EC2 support, and split out foreman-fog and foreman-vmware support

* Tue May 08 2012 jmontleo@redhat.com 0.5.1-1
- adding prepbundle.sh to run post install of any foreman packages, other small fixes

* Fri May 04 2012 jmontleo@redhat.com 0.5.1-0.2
- updated foreman to develop branch from May 04 which included many fixes including no longer requiring foreman-virt

* Wed Jan 11 2012 ohadlevy@gmail.com - 0.4.2
- rebuilt

* Tue Dec 6 2011 ohadlevy@gmail.com - 0.4.1
- rebuilt

* Tue Nov 08 2011 ohadlevy@gmail.com - 0.4
- rebuilt

* Mon Nov 07 2011 ohadlevy@gmail.com - 0.4rc5
- rebuilt

* Tue Oct 25 2011 ohadlevy@gmail.com - 0.4rc4
- rebuilt

* Tue Oct 18 2011 ohadlevy@gmail.com - 0.4rc3
- rebuilt

* Wed Sep 28 2011 ohadlevy@gmail.com - 0.4rc2
- rebuilt

* Sat Sep 10 2011 ohadlevy@gmail.com - 0.4rc1
- rebuilt

* Tue Jun 07 2011 ohadlevy@gmail.com - 0.3
- rebuilt

* Tue May 24 2011 ohadlevy@gmail.com - 0.3rc1-2
- rebuilt

* Thu May 05 2011 ohadlevy@gmail.com - 0.3rc1
- rebuilt

* Tue Mar 29 2011 ohadlevy@gmail.com - 0.2
- Version bump to 0.2

* Tue Mar 22 2011 ohadlevy@gmail.com - 0.2-rc1
- rebuilt

* Thu Feb 24 2011 ohadlevy@gmail.com - 0.1.7-rc5
- rebuilt

* Sat Feb 12 2011 ohadlevy@gmail.com - 0.1.7-rc4.1
- rebuilt

* Mon Jan 31 2011 ohadlevy@gmail.com - 0.1.7-rc3.1
- rebuilt

* Tue Jan 18 2011 ohadlevy@gmail.com - 0.1.7-rc2.1
- rebuilt

* Sat Jan 15 2011 ohadlevy@gmail.com - 0.1.7-rc2
- rebuilt

* Fri Dec 17 2010 ohadlevy@gmail.com - 0.1.7rc1
- rebuilt

* Mon Nov 29 2010 ohadlevy@gmail.com - 0.1.6-3
- rebuilt

* Fri Nov 12 2010 Ohad Levy <ohadlevy@gmail.com> - 0.1.6-1
- Included fix for #461, as without it newly installed instances are not usable

* Thu Nov 11 2010 Ohad Levy <ohadlevy@gmail.com> - 0.1.6
- New upstream version

* Sat Oct 30 2010 Ohad Levy <ohadlevy@gmail.com> - 0.1.6rc2
- New release candidate
- Updated configuration file permssion not to break passenger

* Sun Sep 19 2010 Ohad Levy <ohadlevy@gmail.com> - 0.1.6rc1
- Removed the depenecy upon rack 1.0.1 as its now bundled within Foreman

* Mon May 31 2010 Ohad Levy <ohadlevy@gmail.com> - 0.1.5-1
- New upstream version
- Added migration support between old directory layout to FHS compliancy, upgrades from 0.1-4.x should now work
- Added support for logrotate
- Cleanup old activescaffold plugin leftovers files

* Fri Apr 30 2010 Todd Zullinger <tmz@pobox.com> - 0.1.4-4
- Rework %%install for better FHS compliance
- Misc. adjustments to match Fedora/EPEL packaging guidelines
- Update License field to GPLv3+ to match README
- Use foreman as the primary group for the foreman user instead of puppet
- This breaks compatibility with previous RPM, as directories can't be replaced with links easily.

* Mon Apr 19 2010 Ohad Levy <ohadlevy@gmail.com> - 0.1-4-3
- added status to startup script
- removed puppet module from the RPM

* Mon Apr 12 2010 Ohad Levy <ohadlevy@gmail.com> - 0.1.4-2
- Added startup script for built in webrick server
- Changed foreman user default shell to /sbin/nologin and is now part of the puppet group
- defaults to sqlite database

* Tue Apr 6 2010 Ohad Levy <ohadlevy@gmail.com> - 0.1.4-1
- Initial release.