Skip to content

Commit

Permalink
python/sepolicy: Fix spec file dependencies
Browse files Browse the repository at this point in the history
semanage is part of policycoreutils-python-utils package, selinuxenabled
is part of libselinux-utils (required by ^^^) and restorecon/load_policy
are part of policycoreutils (also required by policycoreutils-python-utils).

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
  • Loading branch information
vmojzis authored and bachradsusi committed Jun 27, 2024
1 parent 4884c91 commit cb1b3bd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions python/sepolicy/sepolicy/templates/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@
Release: 1%{?dist}
Summary: SELinux policy module for MODULENAME
Group: System Environment/Base
License: GPLv2+
Group: System Environment/Base
License: GPLv2+
# This is an example. You will need to change it.
# For a complete guide on packaging your policy
# see https://fedoraproject.org/wiki/SELinux/IndependentPolicy
URL: http://HOSTNAME
Source0: MODULENAME.pp
Source1: MODULENAME.if
Source2: DOMAINNAME_selinux.8
Source3: DOMAINNAME_u
Requires: policycoreutils, libselinux-utils
Requires(post): selinux-policy-base >= %{selinux_policyver}, policycoreutils
Requires(postun): policycoreutils
Requires: policycoreutils-python-utils, libselinux-utils
Requires(post): selinux-policy-base >= %{selinux_policyver}, policycoreutils-python-utils
Requires(postun): policycoreutils-python-utils
"""

mid_section="""\
Expand Down

0 comments on commit cb1b3bd

Please sign in to comment.