exclude_file.plug
Section: rpmrebuild plugin (1)
Updated: 2.20
Index
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
- -h, --help
- output help information plugins option and exit.
- -v, --version
- print plugin version and exit
- -d, --debug
- print additional information to debug plugin.
- -f, --from my_exclude_file
- read the exclusion list from my_exclude_file file (one file by line)
- -r, --regex my_regex
- apply file name exclusion from my_regex regex string
FILES
- exclude_file.sh
- contains the shell code for change-spec-file
- exclude_file.plug
- is the 'include file' for a quicker use
- exclude_file.plug.1
- 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>
- See <URL:http://rpmrebuild.sourceforge.net/>.
NOTES
- a very simple but real plugin
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
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- FILES
- ENVIRONMENT
- EXAMPLES
- AUTHORS
- NOTES
- COPYRIGHT
- SEE ALSO
This document was created by
man2html, using the manual pages.
Time: 14:33:21 GMT, November 14, 2024