Dne 11.12.2013 19:57, Sam Kottler napsal(a):
----- Original Message -----
> From: "Ken Dreyer" <ktdreyer(a)ktdreyer.com>
> To: "Ruby SIG mailing list" <ruby-sig(a)lists.fedoraproject.org>
> Cc: "David Davis" <daviddavis(a)redhat.com>
> Sent: Wednesday, December 11, 2013 1:46:47 PM
> Subject: excluding dot files from gems
>
> Lots of gems ship dot files, like .gitignore or .travis.yml. These are
> basically useless to users, and in our RPMs, we have to exclude these
> files by hand.
>
> The problem is that a lot of gems do something like this in the gemspec:
>
> s.files = `git ls-files`.split("\n")
>
> I end up repeating the same exclusions over and over in the RPM
> packaging. I've been brainstorming about the best way to push the dot
> file exclusions upstream.
I'm not sure about the official policies on shipping dotfiles that are often included
in gems, but a pattern I've been using recently is to ship dotfiles as %doc.
Generally we remove this files, because rpmlint complains about them:
$ rpmlint -I hidden-file-or-dir
hidden-file-or-dir:
The file or directory is hidden. You should see if this is normal, and
delete
it from the package if not.
> What do you think about something like this?
Generally fine IMO, but I don't see much a reason to patch the gemspec for something
like this TBH.
And there is no reason to ship any dot file in any of gems (as well as
Gemfile, Rakefile, etc).
Vít