Project

General

Profile

Download (6.6 KB) Statistics
| Branch: | Tag: | Revision:
22efa6c9 Eric D. Helms
# explicitly define, as we build on top of an scl, not inside with scl_package
%{?scl:%global scl_prefix %{scl}-}

%global homedir %{_datarootdir}/%{name}
%global confdir common

Name: katello
b8a67f4e Eric D. Helms
Version: 3.8.0
5ab0d8f4 Chris Roberts
Release: 3.nightly%{?dist}
22efa6c9 Eric D. Helms
Summary: A package for managing application life-cycle for Linux systems
BuildArch: noarch

Group: Applications/Internet
License: GPLv2
URL: https://theforeman.org/plugins/katello
Source0: katello-service.8.asciidoc
Source1: katello-debug.sh
Source2: katello-remove
Source4: katello-service
Source6: katello-restore
Source7: katello-backup
Source8: katello-service-bash_completion.sh
Source9: qpid-core-dump
Source11: katello-change-hostname
Source13: katello-change-hostname.8.asciidoc
Source16: hostname-change.rb
Source17: helper.rb
1d23c60d Christine Fouant
Source18: katello.cron
22efa6c9 Eric D. Helms
BuildRequires: asciidoc
BuildRequires: util-linux

Requires: %{name}-common = %{version}-%{release}

Requires: foreman-installer-%{name}

#Pulp Requirements
Requires: pulp-katello
Requires: pulp-docker-plugins
Requires: pulp-puppet-plugins
Requires: pulp-rpm-plugins
Requires: pulp-puppet-tools
Requires: pulp-selinux
Requires: pulp-server
Requires: python-pulp-streamer
e43fbb13 Chris Roberts
Requires: rh-mongodb34
22efa6c9 Eric D. Helms
Requires: cyrus-sasl-plain
Requires: python-crane
Requires: python-gofer-qpid
Requires: qpid-cpp-server-linearstore
Requires: qpid-cpp-client-devel
Requires: qpid-dispatch-router
Requires: createrepo >= 0.9.9-18%{?dist}
Requires: squid
Requires: mod_xsendfile

Requires(post): candlepin >= 2.0
18367969 John Mitsch
Requires: rubygem-foreman_maintain >= 0.2.2
22efa6c9 Eric D. Helms
Requires: candlepin-selinux >= 2.0
Requires: java-openjdk >= 1:1.7.0
Requires: java-openjdk < 1:1.8.0.45
16e7e366 Evgeni Golov
Requires: /usr/bin/psql
Requires: /usr/bin/pg_dump
Requires: /usr/bin/pg_dumpall
22efa6c9 Eric D. Helms
%description
Provides a package for managing application life-cycle for Linux systems.

%prep

%build
#man pages
b8a67f4e Eric D. Helms
mkdir -p ./manpages
cp %{SOURCE0} ./manpages
cp %{SOURCE13} ./manpages
pushd ./manpages
a2x -d manpage -f manpage katello-service.8.asciidoc
a2x -d manpage -f manpage katello-change-hostname.8.asciidoc
gzip -f9 katello-service.8
gzip -f9 katello-change-hostname.8
popd
22efa6c9 Eric D. Helms
%install
mkdir -p %{buildroot}/%{_mandir}/man8

#copy cron scripts to be scheduled
1d23c60d Christine Fouant
install -d -m0755 %{buildroot}%{_sysconfdir}/cron.d
install -m 644 %{SOURCE18} %{buildroot}%{_sysconfdir}/cron.d/katello
22efa6c9 Eric D. Helms
# symlink script libraries
mkdir -p %{buildroot}%{_datarootdir}/katello
install -m 644 %{SOURCE16} %{buildroot}%{_datarootdir}/katello/hostname-change.rb
install -m 644 %{SOURCE17} %{buildroot}%{_datarootdir}/katello/helper.rb

# install important scripts
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
install -Dp -m0755 %{SOURCE11} %{buildroot}%{_sbindir}/katello-change-hostname
install -Dp -m0755 %{SOURCE9} %{buildroot}%{_sbindir}/qpid-core-dump
install -Dp -m0755 %{SOURCE7} %{buildroot}%{_sbindir}/katello-backup
install -Dp -m0755 %{SOURCE6} %{buildroot}%{_sbindir}/katello-restore
install -Dp -m0755 %{SOURCE4} %{buildroot}%{_sbindir}/katello-service
install -Dp -m0755 %{SOURCE2} %{buildroot}%{_sbindir}/katello-remove
install -Dp -m0755 %{SOURCE1} %{buildroot}/usr/share/foreman/script/foreman-debug.d/katello-debug.sh

# install tab completion scripts
install -d %{buildroot}/etc/bash_completion.d
install -m 644 %{SOURCE8} %{buildroot}/etc/bash_completion.d/katello-service

# install man page
b8a67f4e Eric D. Helms
install -m 644 ./manpages/katello-service.8.gz %{buildroot}/%{_mandir}/man8
install -m 644 ./manpages/katello-change-hostname.8.gz %{buildroot}/%{_mandir}/man8
22efa6c9 Eric D. Helms
%clean
b8a67f4e Eric D. Helms
%{__rm} -rf ./manpages
22efa6c9 Eric D. Helms
%{__rm} -rf %{buildroot}

%files

# ------ Common ------------------

%package common
BuildArch: noarch
Summary: Common runtime components of %{name}

Requires: %{?scl_prefix}rubygem-katello
Requires: %{?scl_prefix}rubygem-hammer_cli
Requires: %{?scl_prefix}rubygem-hammer_cli_foreman
Requires: %{?scl_prefix}rubygem-hammer_cli_katello
06396009 Evgeni Golov
Requires: rubygem-highline
22efa6c9 Eric D. Helms
Requires: %{name}-debug
Requires: %{name}-service

%description common
Common runtime components of %{name}

%files common
%{_sbindir}/katello-remove
%{_sbindir}/katello-backup
%{_sbindir}/katello-restore
%{_sbindir}/qpid-core-dump
%{_sbindir}/katello-change-hostname
%{_mandir}/man8/katello-change-hostname.8*
%{_datarootdir}/katello/hostname-change.rb
%{_datarootdir}/katello/helper.rb
1d23c60d Christine Fouant
%config(missingok) %{_sysconfdir}/cron.d/katello
22efa6c9 Eric D. Helms
# ------ Debug ----------------
%package debug
Summary: Katello Debug utilities
Group: Applications/System
04f141cb Sean O'Keeffe
Requires: bash
Requires: mktemp
22efa6c9 Eric D. Helms
Requires: foreman-debug
04f141cb Sean O'Keeffe
Requires: findutils
Requires: coreutils
Requires: qpid-tools
Requires: /bin/ps
5ab0d8f4 Chris Roberts
Requires: rh-mongodb34
04f141cb Sean O'Keeffe
Requires: %{?scl_prefix}rubygem-hammer_cli_katello
Requires: %{name}-service
22efa6c9 Eric D. Helms
%description debug
Useful utilities for debug info collecting

%files debug
%{_datadir}/foreman/script/foreman-debug.d/katello-debug.sh

%package -n foreman-proxy-content
Summary: Provides a federation of katello services
BuildArch: noarch
Requires: findutils
5ab0d8f4 Chris Roberts
Requires: rh-mongodb34
22efa6c9 Eric D. Helms
Requires: foreman-installer-%{name}
06396009 Evgeni Golov
Requires: rubygem-highline
18367969 John Mitsch
Requires: rubygem-foreman_maintain >= 0.2.2
22efa6c9 Eric D. Helms
Obsoletes: katello-capsule

%description -n foreman-proxy-content
Provides a federation of katello services

%files -n foreman-proxy-content
1d23c60d Christine Fouant
%config(missingok) %{_sysconfdir}/cron.d/katello
22efa6c9 Eric D. Helms
%{_sbindir}/katello-backup
%{_sbindir}/katello-restore
%{_sbindir}/katello-change-hostname
%{_sbindir}/katello-remove
%{_datarootdir}/katello/hostname-change.rb
%{_datarootdir}/katello/helper.rb

# ------ Service ----------------
%package service
Summary: Katello Service utilities
Group: Applications/System
d9f3f547 John Mitsch
Requires: rubygem-foreman_maintain >= 0.2.2
22efa6c9 Eric D. Helms
%description service
Useful utilities for managing Katello services

%files service
%{_sbindir}/katello-service
%{_mandir}/man8/katello-service.8*
%{_sysconfdir}/bash_completion.d/katello-service

%changelog
5ab0d8f4 Chris Roberts
* Wed Jun 20 2018 Chris Roberts <chrobert@redhat.com> - 3.8.0-3.nightly
- Reverted rh-mongodb34-syspaths due to MongoDB 2.6 dependency error

d9f3f547 John Mitsch
* Mon Jun 04 2018 John Mitsch <jomitsch@redhat.com> - 3.8.0-2.nightly
- Redirect katello-service to foreman-maintain

* Sun Jun 03 2018 Chris Roberts <chrobert@redhat.com> - 3.7.0-6.nightly
cdde8aa1 Chris Roberts
- Added rh-mongodb34-syspaths to deps to bypass scl enable bash

18367969 John Mitsch
* Wed May 23 2018 John Mitsch <jomitsch@redhat.com> - 3.7.0-5.nightly
- Remove katello-backup and katello-restore and require foreman-maintain

46243c12 Chris Roberts
* Fri May 11 2018 Chris Roberts <chrobert@redhat.com> - 3.7.0-4.nightly
- removed el6 references and service-wait

aaa35d4a Eric D. Helms
* Thu Apr 19 2018 Eric D. Helms <ericdhelms@gmail.com> - 3.7.0-3.nightly
- rebuilt

fdf845fb Eric D. Helms
* Tue Jan 16 2018 Eric D. Helms <ericdhelms@gmail.com> 3.7.0-1.nightly
- new package built with tito