Revision 649ef700
Added by Evgeni Golov over 5 years ago
packages/foreman/foreman/foreman.spec | ||
---|---|---|
%global scl_ruby_bin /usr/bin/%{?scl:%{scl_prefix}}ruby
|
||
%global scl_rake /usr/bin/%{?scl:%{scl_prefix}}rake
|
||
|
||
%global release 10
|
||
%global release 11
|
||
%global prerelease develop
|
||
|
||
Name: foreman
|
||
... | ... | |
Source3: %{name}.logrotate
|
||
Source4: %{name}.cron.d
|
||
Source5: %{name}.tmpfiles
|
||
Source6: %{name}.attr
|
||
Source7: %{name}.provreq
|
||
Source10: %{executor_service_name}.sysconfig
|
||
Source11: %{executor_service_name}.service
|
||
BuildArch: noarch
|
||
... | ... | |
|
||
%files build
|
||
%{_sysconfdir}/rpm/macros.%{name}-dist
|
||
%{_fileattrsdir}/%{name}.attr
|
||
%{_rpmconfigdir}/%{name}.*
|
||
|
||
%package console
|
||
Summary: Foreman console support
|
||
... | ... | |
%%{?-s:[ -e %%{buildroot}%%{%{name}_webpack_plugin} ] && ln -s %%{%{name}_webpack_plugin} %%{buildroot}%%{%{name}_webpack_foreman}}
|
||
EOF
|
||
|
||
#copy rpm config
|
||
install -Dpm0644 %{SOURCE6} %{buildroot}%{_fileattrsdir}/%{name}.attr
|
||
install -pm0755 %{SOURCE7} %{buildroot}%{_rpmconfigdir}/%{name}.prov
|
||
install -pm0755 %{SOURCE7} %{buildroot}%{_rpmconfigdir}/%{name}.req
|
||
|
||
%clean
|
||
rm -rf %{buildroot}
|
||
|
||
... | ... | |
%systemd_postun_with_restart %{name}.service
|
||
|
||
%changelog
|
||
* Fri Oct 12 2018 Evgeni Golov - 1.20.0-0.11.develop
|
||
- Add automatic Provides and Requires for Foreman's webpack bundles.
|
||
This should ensure that plugins can depend on a specific bundle version and
|
||
get rebuilt when Foreman's bundle changes.
|
||
|
||
* Mon Oct 08 2018 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1.20.0-0.10.develop
|
||
- Update Gem and NPM dependencies
|
||
|
Also available in: Unified diff
Fixes #24928 - generators for requires/provides of webpack bundles
This adds automatic Provides and Requires for Foreman's webpack bundles.
Foreman ships webpack bundles in its RPMs to be consumed by plugins. To ensure
proper dependency relationships between the plugins and the main Foreman RPM,
this script generates Provides for the Foreman RPM that contain the hash of
the webpack bundles shipped and matching Requires for the plugins packages.
Each time the Foreman bundles change hashes, the plugins become uninstallable
and indicate that a rebuild is required.