Skip to content

Instantly share code, notes, and snippets.

@zjhuntin
Created January 17, 2019 20:18
Show Gist options
  • Save zjhuntin/9df772f7281e09a46fda9ec745586011 to your computer and use it in GitHub Desktop.
Save zjhuntin/9df772f7281e09a46fda9ec745586011 to your computer and use it in GitHub Desktop.
6a7
> %global selinux_policyver %(%{__sed} -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp || echo 0.0.0)
55a57
> BuildRequires: /usr/share/selinux/devel/policyhelp
57a60,63
> %{!?_selinux_policy_version: %global _selinux_policy_version %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2>/dev/null)}
> %if "%{_selinux_policy_version}" != ""
> Requires: selinux-policy >= %{_selinux_policy_version}
> %endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment