exclude_file.plug(1)

πŸ“¦
version 2.21 Β· 3 versions
, in epel 9, fedora 43, fedora 44

πŸ’… 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, --from my_exclude_file β€” reads the exclusion list straight outta my_exclude_file (one file per line, bestie, don't get cute with it)
  • -r, --regex my_regex β€” applies file name exclusion based on the my_regex regex string. regex girlies rise 🧚

πŸŽ€ 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 (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.


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