Skip to content

Commit

Permalink
Merge pull request #256 from lsm5/packit-cleanup
Browse files Browse the repository at this point in the history
Packit: cleanups
  • Loading branch information
rhatdan committed Jun 22, 2023
2 parents 124acb6 + c123c04 commit 8b8a5fe
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 60 deletions.
27 changes: 0 additions & 27 deletions .packit.sh

This file was deleted.

24 changes: 5 additions & 19 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,22 @@ jobs:
# x86_64 is assumed by default
# container-selinux is noarch so we only need to test on one arch
targets: &pr_copr_targets
- fedora-rawhide
- fedora-38
- fedora-37
- fedora-all
- centos-stream-9
- centos-stream-8
srpm_build_deps:
- make
- rpkg
actions:
fix-spec-file:
- bash .packit.sh

- <<: *copr
# Run on commit to main branch
trigger: commit
branch: main
project: podman-next
targets:
- fedora-rawhide-aarch64
- fedora-rawhide-ppc64le
- fedora-rawhide-s390x
- fedora-rawhide-x86_64
- fedora-38-aarch64
- fedora-38-ppc64le
- fedora-38-s390x
- fedora-38-x86_64
- fedora-37-aarch64
- fedora-37-ppc64le
- fedora-37-s390x
- fedora-37-x86_64
- fedora-all-aarch64
- fedora-all-ppc64le
- fedora-all-s390x
- fedora-all-x86_64
- centos-stream+epel-next-9-aarch64
- centos-stream+epel-next-9-ppc64le
- centos-stream+epel-next-9-s390x
Expand Down
25 changes: 11 additions & 14 deletions rpm/container-selinux.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@
# Format must contain '$x' somewhere to do anything useful
%global _format() export %1=""; for x in %{modulenames}; do %1+=%2; %1+=" "; done;

# copr_username is only set on copr environments, not on others like koji
%if "%{?copr_username}" != "rhcontainerbot"
%bcond_with copr
%else
%bcond_without copr
%endif

# RHEL 8 doesn't allow watch and systemd_chat_resolved
%if 0%{?rhel} == 8
%if %{defined rhel} && 0%{?rhel} == 8
%bcond_without no_watch
%bcond_without no_systemd_chat_resolved
%global _selinux_policy_version 3.14.3-80.el8
%else
%bcond_with no_watch
%bcond_with no_systemd_chat_resolved
Expand All @@ -39,8 +33,8 @@

Name: container-selinux
# Set different Epochs for copr and koji
%if %{with copr}
Epoch: 101
%if %{defined copr_username}
Epoch: 102
%else
Epoch: 2
%endif
Expand Down Expand Up @@ -153,9 +147,12 @@ if %{_sbindir}/selinuxenabled ; then
fi

%changelog
%if 0%{?rhel} <= 8 && ! 0%{?fedora}
* Mon May 01 2023 RH Container Bot <[email protected]>
- Dummy changelog for CentOS Stream 8
%else
%if %{defined autochangelog}
%autochangelog
%else
# NOTE: This changelog will be visible on CentOS 8 Stream builds
# Other envs are capable of handling autochangelog
* Tue Jun 13 2023 RH Container Bot <[email protected]>
- Placeholder changelog for envs that are not autochangelog-ready.
- Contact upstream if you need to report an issue with the build.
%endif

0 comments on commit 8b8a5fe

Please sign in to comment.