Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ansible and REX stack to the latest versions #3833

Merged
merged 4 commits into from May 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view

This file was deleted.

173 changes: 139 additions & 34 deletions packages/plugins/rubygem-foreman_ansible/rubygem-foreman_ansible.spec
@@ -1,76 +1,170 @@
# Generated from foreman_ansible-3.0.0.gem by gem2rpm -*- rpm-spec -*-
# template: foreman_plugin
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}

%global gem_name foreman_ansible
%global plugin_name ansible
%global foreman_min_version 1.22.0

Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 3.0.2
Release: 1%{?foremandist}%{?dist}
Summary: Ansible integration with Foreman (theforeman.org)
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 2.3.3
Release: 2%{?foremandist}%{?dist}
Group: Applications/System
Group: Applications/Systems
License: GPLv3
URL: https://github.com/theforeman/foreman_ansible
URL: https://github.com/theforeman/foreman_ansible
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

Requires: foreman >= 1.17.0

# start specfile generated dependencies
Requires: foreman >= %{foreman_min_version}
Requires: %{?scl_prefix_ruby}ruby(release)
Requires: %{?scl_prefix_ruby}rubygems
Requires: %{?scl_prefix_ruby}ruby
Requires: %{?scl_prefix_ruby}ruby(rubygems)
Requires: %{?scl_prefix}rubygem(deface) < 2.0
Requires: %{?scl_prefix}rubygem(foreman-tasks) >= 0.8
Requires: %{?scl_prefix}rubygem(foreman-tasks) < 1.0
Requires: %{?scl_prefix}rubygem(foreman-tasks) < 1
Requires: %{?scl_prefix}rubygem(foreman_remote_execution) >= 1.7.0
Requires: %{?scl_prefix}rubygem(foreman_remote_execution) < 2.0
Requires: %{?scl_prefix}rubygem(ipaddress) >= 0.8.0
Requires: %{?scl_prefix}rubygem(ipaddress) < 1.0
BuildRequires: %{?scl_prefix_ruby}ruby(release)
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
BuildRequires: %{?scl_prefix_ruby}rubygems
BuildRequires: foreman-assets >= %{foreman_min_version}
BuildRequires: foreman-plugin >= %{foreman_min_version}
BuildRequires: %{?scl_prefix}rubygem(deface) < 2.0
BuildRequires: %{?scl_prefix}rubygem(foreman-tasks) >= 0.8
BuildRequires: %{?scl_prefix}rubygem(foreman-tasks) < 1.0
BuildRequires: %{?scl_prefix}rubygem(foreman_ansible_core) >= 2.0.2
BuildRequires: %{?scl_prefix}rubygem(foreman_ansible_core) < 3.0
BuildRequires: %{?scl_prefix}rubygem(foreman-tasks) >= 0.8
BuildRequires: %{?scl_prefix}rubygem(foreman-tasks) < 1
BuildRequires: %{?scl_prefix}rubygem(foreman_remote_execution) >= 1.7.0
BuildRequires: %{?scl_prefix}rubygem(foreman_remote_execution) < 2.0
BuildRequires: %{?scl_prefix}rubygem(ipaddress) >= 0.8.0
BuildRequires: %{?scl_prefix}rubygem(ipaddress) < 1.0
BuildRequires: npm(react-json-tree) >= 0.1.1
BuildRequires: npm(react-json-tree) < 1.0
BuildRequires: foreman-plugin >= 1.17.0
BuildRequires: foreman-assets >= 1.17.0

BuildRequires: %{?scl_prefix_ruby}ruby(release)
BuildRequires: %{?scl_prefix_ruby}ruby
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
BuildArch: noarch

Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
Provides: foreman-plugin-%{plugin_name} = %{version}
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}}
# end specfile generated dependencies

# start package.json devDependencies BuildRequires
#BuildRequires: npm(babel-eslint) >= 8.2.1
#BuildRequires: npm(babel-eslint) < 9.0.0
BuildRequires: npm(babel-plugin-lodash) >= 3.3.2
BuildRequires: npm(babel-plugin-lodash) < 4.0.0
BuildRequires: npm(babel-plugin-transform-class-properties) >= 6.24.1
BuildRequires: npm(babel-plugin-transform-class-properties) < 7.0.0
BuildRequires: npm(babel-plugin-transform-object-assign) >= 6.22.0
BuildRequires: npm(babel-plugin-transform-object-assign) < 7.0.0
BuildRequires: npm(babel-plugin-transform-object-rest-spread) >= 6.26.0
BuildRequires: npm(babel-plugin-transform-object-rest-spread) < 7.0.0
BuildRequires: npm(babel-preset-env) >= 1.6.0
BuildRequires: npm(babel-preset-env) < 2.0.0
BuildRequires: npm(babel-preset-react) >= 6.24.1
BuildRequires: npm(babel-preset-react) < 7.0.0
#BuildRequires: npm(enzyme) >= 3.7.0
#BuildRequires: npm(enzyme) < 4.0.0
#BuildRequires: npm(enzyme-adapter-react-16) >= 1.7.0
#BuildRequires: npm(enzyme-adapter-react-16) < 2.0.0
#BuildRequires: npm(enzyme-to-json) >= 3.3.5
#BuildRequires: npm(enzyme-to-json) < 4.0.0
#BuildRequires: npm(eslint) >= 4.18.1
#BuildRequires: npm(eslint) < 5.0.0
#BuildRequires: npm(eslint-config-airbnb) >= 16.0.0
#BuildRequires: npm(eslint-config-airbnb) < 17.0.0
#BuildRequires: npm(eslint-plugin-import) >= 2.8.0
#BuildRequires: npm(eslint-plugin-import) < 3.0.0
#BuildRequires: npm(eslint-plugin-jest) >= 21.2.0
#BuildRequires: npm(eslint-plugin-jest) < 22.0.0
#BuildRequires: npm(eslint-plugin-jsx-a11y) >= 6.0.2
#BuildRequires: npm(eslint-plugin-jsx-a11y) < 7.0.0
#BuildRequires: npm(eslint-plugin-patternfly-react) >= 0.2.1
#BuildRequires: npm(eslint-plugin-patternfly-react) < 1.0.0
#BuildRequires: npm(eslint-plugin-react) >= 7.4.0
#BuildRequires: npm(eslint-plugin-react) < 8.0.0
BuildRequires: npm(identity-obj-proxy) >= 3.0.0
BuildRequires: npm(identity-obj-proxy) < 4.0.0
#BuildRequires: npm(jest) >= 23.6.0
#BuildRequires: npm(jest) < 24.0.0
#BuildRequires: npm(prettier) >= 1.16.4
#BuildRequires: npm(prettier) < 2.0.0
BuildRequires: npm(react-redux) >= 5.0.7
BuildRequires: npm(react-redux) < 6.0.0
#BuildRequires: npm(react-redux-test-utils) >= 0.1.1
#BuildRequires: npm(react-redux-test-utils) < 1.0.0
BuildRequires: npm(redux) >= 3.7.2
BuildRequires: npm(redux) < 4.0.0
BuildRequires: npm(redux-thunk) >= 2.3.0
BuildRequires: npm(redux-thunk) < 3.0.0
# end package.json devDependencies BuildRequires

# start package.json dependencies BuildRequires
BuildRequires: npm(babel-polyfill) >= 6.26.0
BuildRequires: npm(babel-polyfill) < 7.0.0
BuildRequires: npm(classnames) >= 2.2.5
BuildRequires: npm(classnames) < 3.0.0
BuildRequires: npm(lodash) >= 4.17.11
BuildRequires: npm(lodash) < 5.0.0
BuildRequires: npm(patternfly) >= 3.58.0
BuildRequires: npm(patternfly) < 4.0.0
BuildRequires: npm(patternfly-react) >= 2.25.4
BuildRequires: npm(patternfly-react) < 3.0.0
BuildRequires: npm(prop-types) >= 15.6.2
BuildRequires: npm(prop-types) < 16.0.0
BuildRequires: npm(react) >= 16.6.3
BuildRequires: npm(react) < 17.0.0
BuildRequires: npm(react-bootstrap) >= 0.32.1
BuildRequires: npm(react-bootstrap) < 1.0.0
BuildRequires: npm(react-dom) >= 16.6.3
BuildRequires: npm(react-dom) < 17.0.0
BuildRequires: npm(react-json-tree) >= 0.11.0
BuildRequires: npm(react-json-tree) < 1.0.0
BuildRequires: npm(reselect) >= 3.0.1
BuildRequires: npm(reselect) < 4.0.0
BuildRequires: npm(seamless-immutable) >= 7.1.3
BuildRequires: npm(seamless-immutable) < 8.0.0
# end package.json dependencies BuildRequires

%description
Ansible integration with Foreman.


%package doc
Summary: Documentation for %{name}
Summary: Documentation for %{pkg_name}
Group: Documentation
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc}
BuildArch: noarch

%description doc
Documentation for %{name}.
Documentation for %{pkg_name}.

%prep
%{?scl:scl enable %{scl} - << \EOF}
%gem_install -n %{SOURCE0}
gem unpack %{SOURCE0}
%{?scl:EOF}

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

%{?scl:scl enable %{scl} - << \EOF}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%{?scl:EOF}

%build
# Create the gem as gem install only works on a gem file
%{?scl:scl enable %{scl} - << \EOF}
gem build %{gem_name}.gemspec
%{?scl:EOF}

# %%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
%{?scl:scl enable %{scl} - << \EOF}
%gem_install
%{?scl:EOF}

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

%foreman_bundlerd_file
%foreman_precompile_plugin -a -s
Expand All @@ -83,6 +177,8 @@ cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
%{gem_instdir}/db
%{gem_libdir}
%{gem_instdir}/locale
%exclude %{gem_instdir}/package.json
%exclude %{gem_instdir}/webpack
%exclude %{gem_cache}
%{gem_spec}
%{foreman_bundlerd_plugin}
Expand All @@ -91,24 +187,33 @@ cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
%{foreman_assets_plugin}
%{foreman_webpack_plugin}
%{foreman_webpack_foreman}
%exclude %{gem_instdir}/package.json
%exclude %{gem_instdir}/webpack
%exclude %{gem_instdir}/test

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

%posttrans
%foreman_db_migrate
%foreman_db_seed
%foreman_apipie_cache
%foreman_restart
%{foreman_db_migrate}
%{foreman_db_seed}
%{foreman_apipie_cache}
%{foreman_restart}
exit 0


%changelog
* Fri May 10 2019 Marek Hulan <mhulan@redhat.com> 3.0.2-1
- Update to 3.0.2

* Thu May 09 2019 Marek Hulan - 2.3.3-5
- Rebuild Ansible for webpack

* Mon May 06 2019 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 2.3.3-4
- Rebuild rubygem-foreman_ansible for webpack

* Tue Apr 30 2019 Evgeni Golov - 2.3.3-3
- Rebuild Ansible for webpack

* Fri Apr 12 2019 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 2.3.3-2
- Rebuild rubygem-foreman_ansible for webpack

Expand Down
Expand Up @@ -11,7 +11,7 @@

Name: rubygem-%{gem_name}
Version: 0.0.2
Release: 1%{?foremandist}%{?dist}
Release: 2%{?foremandist}%{?dist}
Summary: Gem to allow probing through smart-proxy
Group: Applications/Internet
License: GPLv3
Expand All @@ -33,7 +33,11 @@ Provides: rubygem(%{gem_name}) = %{version}
Provides: foreman-proxy-plugin-%{plugin_name}
# end generated dependencies

Requires: %{?rhel:tfm-}rubygem(foreman_probing_core)
%if 0%{?rhel} == 7
Requires: tfm-rubygem(foreman_probing_core)
%else
Requires: rubygem(foreman_probing_core)
%endif

%description
Gem to allow probing through smart-proxy.
Expand Down Expand Up @@ -101,6 +105,9 @@ mv %{buildroot}%{gem_instdir}/settings.d/probing.yml.example \


%changelog
* Thu May 16 2019 Eric D. Helms <ericdhelms@gmail.com> - 0.0.2-2
- Require SCL prefix only on EL7

* Thu Jul 19 2018 Dirk Goetz <dirk.goetz@netways.de> 0.0.2-1
- Add rubygem-smart-proxy-probing generated by gem2rpm using the smart_proxy_plugin template

Expand Up @@ -9,14 +9,19 @@
Summary: Ansible support for Foreman smart proxy
Name: rubygem-%{gem_name}
Version: 2.1.2
Release: 1%{?foremandist}%{?dist}
Release: 3%{?foremandist}%{?dist}
Group: Applications/System
License: GPLv3
URL: https://github.com/theforeman/smart_proxy_ansible
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

Requires: %{?rhel:tfm-}rubygem(smart_proxy_dynflow_core) >= 0.1.5
Requires: %{?rhel:tfm-}rubygem(foreman_ansible_core)
%if 0%{?rhel} == 7
Requires: tfm-rubygem(smart_proxy_dynflow_core) >= 0.1.5
Requires: tfm-rubygem(foreman_ansible_core)
%else
Requires: rubygem(smart_proxy_dynflow_core) >= 0.1.5
Requires: rubygem(foreman_ansible_core)
%endif
Requires: foreman-proxy >= 1.11.0
Requires: rubygem(smart_proxy_dynflow) >= 0.1
Requires: rubygem(smart_proxy_dynflow) < 1.0
Expand All @@ -25,6 +30,11 @@ Requires: ruby
Requires: ruby(rubygems)

Requires: ansible >= 2.2
%if 0%{?rhel} == 7
Requires: python-requests
%else
Requires: python3-requests
%endif

Requires: ruby(release)
BuildRequires: ruby(release)
Expand Down Expand Up @@ -116,6 +126,12 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%doc %{gem_docdir}

%changelog
* Wed May 22 2019 Eric D. Helms <ericdhelms@gmail.com> - 2.1.2-3
- Require python-requests

* Thu May 16 2019 Eric D. Helms <ericdhelms@gmail.com> - 2.1.2-2
- Require SCL prefix only on EL7

* Thu Mar 07 2019 Marek Hulan <mhulan@redhat.com> 2.1.2-1
- Update to 2.1.2

Expand Down
Expand Up @@ -7,18 +7,24 @@

Summary: SSH remote execution provider for Foreman smart proxy
Name: rubygem-%{gem_name}
Version: 0.2.0
Release: 2%{?dist}
Version: 0.2.1
Release: 1%{?dist}
Group: Applications/System
License: GPLv3
URL: https://github.com/theforeman/smart_proxy_remote_execution_ssh
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

Requires: %{?rhel:tfm-}rubygem(smart_proxy_dynflow_core) >= 0.1.5
Requires: %{?rhel:tfm-}rubygem(foreman_remote_execution_core)
%if 0%{?rhel} == 7
Requires: tfm-rubygem(smart_proxy_dynflow_core) >= 0.1.5
Requires: tfm-rubygem(foreman_remote_execution_core)
%else
Requires: rubygem(smart_proxy_dynflow_core) >= 0.1.5
Requires: rubygem(foreman_remote_execution_core)
%endif
Requires: foreman-proxy >= 1.11.0
Requires: rubygem(smart_proxy_dynflow) >= 0.1.0
Requires: rubygem(smart_proxy_dynflow) < 0.3.0
Requires: rubygem(net-ssh)

Requires: ruby
Requires: ruby(rubygems)
Expand Down Expand Up @@ -95,6 +101,10 @@ EOF
%doc %{gem_docdir}

%changelog
* Wed Apr 24 2019 Ivan Nečas <inecas@redhat.com> 0.2.1-1
- Update to 0.2.1
- Require SCL prefix only on EL7

* Tue May 29 2018 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 0.2.0-2
- Handle .ssh symlinks

Expand Down

This file was deleted.