Sponsor:

Your company here, and a link to your site. Click to find out more.

exclude_file.plug.1rrp - Man Page

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

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

Referenced By

compat_digest.plug.1rrp(1), demofiles.plug.1rrp(1), demo.plug.1rrp(1), file2pacDep.plug.1rrp(1), nodoc.plug.1rrp(1), set_tag.plug.1rrp(1), uniq.plug.1rrp(1), un_prelink.plug.1rrp(1), unset_tag.plug.1rrp(1).

2.17 Eric Gerbier rpmrebuild plugin