exclude_file.plug(1)
π exclude_file.plug(1) β the rpmrebuild plugin that yeets files out of your spec file
okay bestie, gather round, because this is exclude_file.plug(1) β a lil rpmrebuild plugin whose whole personality is removing files from the spec file. that's it. that's the job. and she does it flawlessly. β¨
πΈ NAME πΈ
exclude_file.plug β a plugin for rpmrebuild, here to remove files from the spec file. no notes. periodt.
π¦ 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>
like, four whole ways to say the same thing. pick your fave, she's not judging. π
π DESCRIPTION π
this plugin allow to remove files in spec file.
that's the whole vibe. it's giving surgical deletion, it's giving main character energy, and honestly? iconic. π
β¨ OPTIONS β¨
-h,--helpβ outputs the help info for the plugin's options, then dips. bye! π-v,--versionβ prints the plugin version and exits. slay.-d,--debugβ prints extra info so you can debug the plugin. for when you need the tea π΅-f,--frommy_exclude_file β reads the exclusion list straight outta my_exclude_file (one file per line, bestie, don't get cute with it)-r,--regexmy_regex β applies file name exclusion based on the my_regex regex string. regex girlies rise π§
π FILES π
exclude_file.shβ contains the shell code forchange-spec-fileexclude_file.plugβ is the 'include file' for a quicker useexclude_file.plug.1β is this man page (hi, you're reading her rn π)
π 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
see how easy?? no cap. copy, paste, watch the files vanish. πβ¨
π«Ά AUTHORS π«Ά
Eric Gerbier <eric.gerbier@tutanota.com>
See <URL:http://rpmrebuild.sourceforge.net/>.
β NOTES β
a very simple but real plugin. lowkey humble, highkey essential.
π 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
and that's the whole page, bestie!! π this was Eric Gerbier's work, version 2.21, dated the exclude_file.plug(1) era β go forth and exclude your files responsibly. mwah. πβ¨
π¦ where this page comes from
- epel 9: rpmrebuild 2.21-1.el9 Β· GPL-2.0-or-later
- fedora 43: rpmrebuild 2.21-1.fc43 Β· GPL-2.0-or-later
- fedora 44: rpmrebuild 2.21-2.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms