Initial import
Add the same source as current available in c9s, with the additional stuff (gating stuff) adapted to el8. Resolves: rhbz#2184015
This commit is contained in:
parent
fdef06f576
commit
5631f07a67
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/subscription-manager-rhsm-certificates-*.tar.gz
|
8
gating.yaml
Normal file
8
gating.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
- !PassingTestCaseRule {test_case_name: rhsmci.brew-build.tier1.functional}
|
||||
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (subscription-manager-rhsm-certificates-20220623.tar.gz) = 8f3591dda293d9af2767fb4ded6ee033c31bb2881bb03ac5bb76dea1b39bbe3e02c1b028377d2547fefadeb1109231ca5cc196ac48245816ef5ad5292c0de393
|
60
subscription-manager-rhsm-certificates.spec
Normal file
60
subscription-manager-rhsm-certificates.spec
Normal file
@ -0,0 +1,60 @@
|
||||
Name: subscription-manager-rhsm-certificates
|
||||
Version: 20220623
|
||||
Release: 1%{?dist}
|
||||
Summary: Certificates required to communicate with a Red Hat Unified Entitlement Platform
|
||||
URL: https://www.candlepinproject.org/
|
||||
%if 0%{?suse_version}
|
||||
Group: Development/Libraries/Python
|
||||
License: GPL-2.0
|
||||
%else
|
||||
License: GPLv2
|
||||
%endif
|
||||
|
||||
# How to create the source tarball:
|
||||
#
|
||||
# git clone https://github.com/candlepin/subscription-manager-rhsm-certificates.git
|
||||
# dnf install tito
|
||||
# tito build --tag subscription-manager-rhsm-certificates-$VERSION-$RELEASE --tgz
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: openssl
|
||||
|
||||
%description
|
||||
This package contains certificates required for communicating with the REST interface
|
||||
of a Red Hat Unified Entitlement Platform, used for the management of system entitlements
|
||||
and to receive access to content.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
# Nothing to do for building
|
||||
|
||||
%install
|
||||
%make_install \
|
||||
PREFIX=%{_prefix} \
|
||||
SYSCONFDIR=%{_sysconfdir}
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%dir %{_sysconfdir}/rhsm
|
||||
%dir %{_sysconfdir}/rhsm/ca
|
||||
%{_sysconfdir}/rhsm/ca/*.pem
|
||||
|
||||
%changelog
|
||||
* Thu Jun 23 2022 Jiri Hnidek <jhnidek@redhat.com> 20220623-1
|
||||
- Fix issue with missing {?dist} in Release. (jhnidek@redhat.com)
|
||||
|
||||
* Wed Jun 15 2022 Jiri Hnidek <jhnidek@redhat.com> 20220425-1
|
||||
- Use the same version and release as Fedora already use
|
||||
|
||||
* Wed Jun 08 2022 Jiri Hnidek <jhnidek@redhat.com> 20220608-1
|
||||
- New package built with tito
|
||||
- Using new version pattern for subscription-manager-rhsm-certificates
|
||||
|
9
tests/smoke/smoke.sh
Executable file
9
tests/smoke/smoke.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
# Check that both PEM files are installed and these files are really PEM files
|
||||
file /etc/rhsm/ca/redhat-entitlement-authority.pem | grep -q "/etc/rhsm/ca/redhat-entitlement-authority.pem: PEM certificate"
|
||||
file /etc/rhsm/ca/redhat-uep.pem | grep -q "/etc/rhsm/ca/redhat-uep.pem: PEM certificate"
|
||||
|
12
tests/tests.yml
Normal file
12
tests/tests.yml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
tags:
|
||||
- classic
|
||||
- atomic
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tests:
|
||||
- smoke:
|
||||
dir: smoke
|
||||
run: ./smoke.sh
|
||||
|
Loading…
Reference in New Issue
Block a user