From: Panu Matilainen Date: Wed, 2 May 2012 12:17:01 +0000 (+0300) Subject: Eliminate unused selinux file context path macros X-Git-Tag: tznext/4.11.0.1.tizen20130304~518 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f0bdf9e8af3dfc07aaa7c82671bec4915aaab78;p=tools%2Flibrpm-tizen.git Eliminate unused selinux file context path macros - These haven't been used by anything since rpm 4.8.x days, nowadays we just use selinux_file_context_path() instead --- diff --git a/macros.in b/macros.in index 1eee5a8..b0b78aa 100644 --- a/macros.in +++ b/macros.in @@ -431,47 +431,10 @@ package or when debugging this package.\ # Filter GLIBC_PRIVATE Provides: and Requires: %_filter_GLIBC_PRIVATE 0 -# Desired selinux policy tree -%__policy_tree %{expand:%%global __policy_tree %{lua:\ -t="targeted"\ -f = io.open("/etc/selinux/config")\ -if f then\ - for l in f:lines() do\ - if "SELINUXTYPE=" == string.sub(l,0,12) then t=string.sub(l,13); end\ - end\ - f:close()\ -end\ -print (t)\ -}}%{__policy_tree} - -# Path to selinux file context patterns. -%__file_context_path /etc/selinux/%{__policy_tree}/contexts/files/file_contexts - # Directories whose contents should be considered as documentation. %__docdir_path %{_datadir}/doc:%{_datadir}/man:%{_datadir}/info:%{_datadir}/gtk-doc/html:%{?_docdir}:%{?_mandir}:%{?_infodir}:%{?_javadocdir}:/usr/doc:/usr/man:/usr/info:/usr/X11R6/man # -# Path to selinux file context patterns used to add -# RPMTAG_FILECONTEXTS to packages when building. -# -# Undefined, missing or %{nil} will disable. -%_build_file_context_path %{nil} - -# -# Path to selinux file context patterns used to set -# (or override package content) file contexts when installing. -# -# Undefined, missing or %{nil} will use package content (if available). -%_install_file_context_path %{__file_context_path} - -# -# Path to selinux file context patterns used to verify -# file contexts on file system. -# -# Undefined, missing or %{nil} will use package content (if available). -%_verify_file_context_path %{__file_context_path} - -# # Path to scripts to autogenerate package dependencies, # # Note: Used iff _use_internal_dependency_generator is zero.