Scroll to navigation

exclude_file.plug(1) rpmrebuild plugin exclude_file.plug(1)

NAME

exclude_file.plug - a plugin for rpmrebuild, to remove files from spec file

SYNOPSIS

rpmrebuild --change-spec-file="exclude_file.sh -f myfile" <packagename>
or
rpmrebuild --change-spec-file="exclude_file.sh -r myregex" <packagename>
or
EXCLUDE_FROM=myfile rpmrebuild --include exclude_file.plug <packagename>
or
EXCLUDE_REGEX=myregex rpmrebuild --include exclude_file.plug <packagename>

DESCRIPTION

this plugin allow to remove files in spec file

OPTIONS

output help information plugins option and exit.
print plugin version and exit
print additional information to debug plugin.
read the exclusion list from my_exclude_file file (one file by line)
apply file name exclusion from my_regex regex string

FILES

contains the shell code for change-spec-file
is the 'include file' for a quicker use
is this man page

ENVIRONMENT

EXCLUDE_FROM : file name which contains an exclusion list (one file by line)
EXCLUDE_REGEX : string with a file exclusion regex

EXAMPLES

remove all files which match fr.html using a regex in afick-doc package
rpmrebuild --change-spec-file="exclude_file.sh -r 'fr.html' " afick-doc
or with a quick syntax and environment variables
EXCLUDE_REGEX=fr.html rpmrebuild --include exclude_file.plug afick-doc

remove all files which match fr.html with a file list
rpm -ql afick-doc | grep 'fr.html' > /tmp/exclude_from
rpmrebuild --change-spec-file="exclude_file.sh --from /tmp/exclude_from'" afick-doc
or with a quick syntax and environment variables
EXCLUDE_FROM=/tmp/exclude_from rpmrebuild --include exclude_file.plug afick-doc

AUTHORS

Eric Gerbier <eric.gerbier@tutanota.com>

URL:http://rpmrebuild.sourceforge.net/>.

NOTES

COPYRIGHT

rpmrebuild is copyright (C) 2023 by Eric Gerbier.
this program is distributed under GNU General Public License
It is provided "as is", without any express or implied warranties. See the file COPYING for details.

SEE ALSO

rpm(8), rpmbuild(8), rpmrebuild_plugins(1)
compat_digest.plug(1), demo.plug(1), demofiles.plug(1), nodoc.plug(1), uniq.plug(1), file2pacDep.plug(1), exclude_file.plug(1), un_prelink.plug(1) set_tag.plug(1), unset_tag.plug(1)
man -k rrp for plugins specific manpages

2.17 Eric Gerbier