Unpackaged files checking - oddities

Michael Schwendt mschwendt at gmail.com
Sat Jan 10 19:21:26 UTC 2015


On Sat, 10 Jan 2015 12:06:10 -0600, Bruno Wolff III wrote:

> In this particular case some stuff gets added depending on whether or 
> not the build process finds all of the fonts that are needed. I wanted 
> this to fail during build if any were not found,

%check
[ -f %{buildroot}%{_datadir}/fonts/name/some/file3 ]
[ -f %{buildroot}%{_datadir}/fonts/name/some/file7 ]

%files
%{_datadir}/fonts/name/

is a trick to include an entire tree in %files section and still check
for individual files to be found in %buildroot after %install.


More information about the devel mailing list