Move reqs to headless

epel9
Terje Røsten 6 years ago
parent 2745c62d0c
commit 7c468502ac

@ -19,14 +19,13 @@
%global has_epoch 1 %global has_epoch 1
%endif %endif
%global confdir conf %global confdir conf
%global pending_upgrade_path %{_localstatedir}/lib/rpm-state/puppet %global pending_upgrade_path %{_localstatedir}/lib/rpm-state/puppet
%global pending_upgrade_file %{pending_upgrade_path}/upgrade_pending %global pending_upgrade_file %{pending_upgrade_path}/upgrade_pending
Name: puppet Name: puppet
Version: 5.5.10 Version: 5.5.10
Release: 1%{?dist} Release: 2%{?dist}
Summary: A network tool for managing many disparate systems Summary: A network tool for managing many disparate systems
License: ASL 2.0 License: ASL 2.0
URL: http://puppetlabs.com URL: http://puppetlabs.com
@ -45,27 +44,62 @@ Patch03: 0003-Remove-Fedora-release-restrictions-from-DNF-provider.patch
# https://github.com/puppetlabs/puppet/pull/7000 (PUP-9069) # https://github.com/puppetlabs/puppet/pull/7000 (PUP-9069)
Patch04: 0004-PUP-9069-Add-support-for-RHEL8.patch Patch04: 0004-PUP-9069-Add-support-for-RHEL8.patch
BuildArch: noarch
BuildRequires: git BuildRequires: git
BuildRequires: ruby-devel >= 1.8.7 BuildRequires: ruby-devel >= 1.8.7
# ruby-devel does not require the base package, but requires -libs instead # ruby-devel does not require the base package, but requires -libs instead
BuildRequires: ruby >= 1.8.7 BuildRequires: ruby >= 1.8.7
BuildArch: noarch Requires: puppet-headless = %{version}-%{release}
%if 0%{?_with_systemd}
%{?systemd_requires}
BuildRequires: systemd
%else
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
%endif
%description
Puppet lets you centrally manage every important aspect of your system using a
cross-platform specification language that manages all the separate elements
normally aggregated in different files, like users, cron jobs, and hosts,
along with obviously discrete elements like packages, services, and files.
%package server
Summary: Server for the puppet system management tool
Requires: puppet = %{version}-%{release}
Requires: puppet-headless = %{version}-%{release}
%if 0%{?_with_systemd}
%{?systemd_requires}
BuildRequires: systemd
%else
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
%endif
%description server
Provides the central puppet server daemon which provides manifests to clients.
The server can also function as a certificate authority and file server.
%package headless
Summary: Headless Puppet
Conflicts: puppet < 5.5.6-6
%if 0%{?rhel} && 0%{?rhel} <= 6 %if 0%{?rhel} && 0%{?rhel} <= 6
Requires: ruby(abi) = 1.8 Requires: ruby(abi) = 1.8
%else %else
Requires: ruby(release) Requires: ruby(release)
%endif %endif
Requires: puppet-headless = %{version}-%{release}
Requires: ruby(shadow) Requires: ruby(shadow)
Requires: rubygem(json) Requires: rubygem(json)
Requires: rubygem(pathspec) Requires: rubygem(pathspec)
Requires: rubygem(rgen) Requires: rubygem(rgen)
# Prevents jruby from being pulled in by dependencies (BZ #985208) # Prevents jruby from being pulled in by dependencies (BZ #985208)
Requires: ruby Requires: ruby
# Pull in ruby selinux bindings where available # Pull in ruby selinux bindings where available
%if 0%{?fedora} || 0%{?rhel} >= 6 %if 0%{?fedora} || 0%{?rhel} >= 6
%{!?_without_selinux:Requires: ruby(selinux), libselinux-utils} %{!?_without_selinux:Requires: ruby(selinux), libselinux-utils}
@ -87,59 +121,17 @@ BuildRequires: facter < %{?has_epoch:1:}4
Requires: facter >= %{?has_epoch:1:}2.0 Requires: facter >= %{?has_epoch:1:}2.0
Requires: facter < %{?has_epoch:1:}4 Requires: facter < %{?has_epoch:1:}4
%endif %endif
BuildRequires: hiera >= 2.0 BuildRequires: hiera >= 2.0
BuildRequires: hiera < %{?has_epoch:1:}4 BuildRequires: hiera < %{?has_epoch:1:}4
Requires: hiera >= 2.0 Requires: hiera >= 2.0
Requires: hiera < %{?has_epoch:1:}4 Requires: hiera < %{?has_epoch:1:}4
Obsoletes: hiera-puppet < 1.0.0-2 Obsoletes: hiera-puppet < 1.0.0-2
Provides: hiera-puppet = %{version}-%{release} Provides: hiera-puppet = %{version}-%{release}
%{!?_without_augeas:Requires: ruby(augeas)} %{!?_without_augeas:Requires: ruby(augeas)}
Requires: tar
Requires(pre): shadow-utils Requires(pre): shadow-utils
%if 0%{?_with_systemd}
%{?systemd_requires}
BuildRequires: systemd
%else
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
%endif
Requires: tar
%description
Puppet lets you centrally manage every important aspect of your system using a
cross-platform specification language that manages all the separate elements
normally aggregated in different files, like users, cron jobs, and hosts,
along with obviously discrete elements like packages, services, and files.
%package server
Summary: Server for the puppet system management tool
Requires: puppet = %{version}-%{release}
Requires: puppet-headless = %{version}-%{release}
%if 0%{?_with_systemd}
%{?systemd_requires}
BuildRequires: systemd
%else
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
%endif
%description server
Provides the central puppet server daemon which provides manifests to clients.
The server can also function as a certificate authority and file server.
%package headless
Summary: Headless Puppet
Conflicts: puppet < 5.5.6-6
%description headless %description headless
This puppet headless subpackage may be used when there is no need to This puppet headless subpackage may be used when there is no need to
have puppet agent running as a service, for example, in a container have puppet agent running as a service, for example, in a container
@ -401,6 +393,9 @@ fi
exit 0 exit 0
%changelog %changelog
* Thu Mar 07 2019 Terje Rosten <terje.rosten@ntnu.no> - 5.5.10-2
- Move reqs to headless
* Thu Mar 07 2019 Terje Rosten <terje.rosten@ntnu.no> - 5.5.10-1 * Thu Mar 07 2019 Terje Rosten <terje.rosten@ntnu.no> - 5.5.10-1
- 5.5.10 - 5.5.10

Loading…
Cancel
Save