1exclude_file.plug(1)           rpmrebuild plugin          exclude_file.plug(1)
2
3
4

NAME

6       exclude_file.plug  - a plugin for rpmrebuild, to remove files from spec
7       file
8
9

SYNOPSIS

11       rpmrebuild --change-spec-file="exclude_file.sh -f myfile" <packagename>
12       or
13       rpmrebuild --change-spec-file="exclude_file.sh  -r  myregex"  <package‐
14       name>
15       or
16       EXCLUDE_FROM=myfile  rpmrebuild  --include  exclude_file.plug <package‐
17       name>
18       or
19       EXCLUDE_REGEX=myregex rpmrebuild --include exclude_file.plug  <package‐
20       name>
21
22

DESCRIPTION

24       this plugin allow to remove files in spec file
25
26

OPTIONS

28       -h, --help
29              output help information plugins option and exit.
30
31       -v, --version
32              print plugin version and exit
33
34       -d, --debug
35              print additional information to debug plugin.
36
37       -f, --from my_exclude_file
38              read  the  exclusion list from my_exclude_file file (one file by
39              line)
40
41       -r, --regex my_regex
42              apply file name exclusion from my_regex regex string
43
44

FILES

46       exclude_file.sh
47              contains the shell code for change-spec-file
48
49       exclude_file.plug
50              is the 'include file' for a quicker use
51
52       exclude_file.plug.1
53              is this man page
54
55

ENVIRONMENT

57       EXCLUDE_FROM : file name which contains an exclusion list (one file  by
58       line)
59       EXCLUDE_REGEX : string with a file exclusion regex
60
61

EXAMPLES

63       remove all files which match fr.html using a regex in afick-doc package
64       rpmrebuild --change-spec-file="exclude_file.sh -r 'fr.html' " afick-doc
65       or with a quick syntax and environment variables
66       EXCLUDE_REGEX=fr.html rpmrebuild --include exclude_file.plug afick-doc
67
68
69       remove all files which match fr.html with a file list
70       rpm -ql afick-doc | grep 'fr.html' > /tmp/exclude_from
71       rpmrebuild    --change-spec-file="exclude_file.sh    --from    /tmp/ex‐
72       clude_from'" afick-doc
73       or with a quick syntax and environment variables
74       EXCLUDE_FROM=/tmp/exclude_from rpmrebuild  --include  exclude_file.plug
75       afick-doc
76
77

AUTHORS

79       Eric Gerbier <eric.gerbier@tutanota.com>
80
81       See <URL:http://rpmrebuild.sourceforge.net/>.
82
83

NOTES

85       a very simple but real plugin
86
87
89       rpmrebuild is copyright (C) 2023 by Eric Gerbier.
90       this program is distributed under GNU General Public License
91       It is provided "as is", without any express or implied warranties.  See
92       the file COPYING for details.
93
94

SEE ALSO

96       rpm(8), rpmbuild(8), rpmrebuild_plugins(1)
97       compat_digest.plug(1), demo.plug(1), demofiles.plug(1),  nodoc.plug(1),
98       uniq.plug(1),    file2pacDep.plug(1),   exclude_file.plug(1),   un_pre‐
99       link.plug(1) set_tag.plug(1), unset_tag.plug(1)
100       man -k rrp for plugins specific manpages
101
102
103
104Eric Gerbier                         2.17                 exclude_file.plug(1)
Impressum