hub: [getRPMFile] add strict behavior

This commit is contained in:
Yuming Zhu 2018-08-29 19:04:58 +08:00
parent d3ef006842
commit 473bc1460b
4 changed files with 120 additions and 4 deletions

View file

@ -0,0 +1,20 @@
Name: test-files
Version: 1
Release: 1%{?dist}
Summary: Testing files header fields
License: none
%description
Testing files header fields
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/foo/bar
install -pm 0755 fileA $RPM_BUILD_ROOT
install -pm 0600 foo/bar/fileB $RPM_BUILD_ROOT/foo/bar
%files
%defattr(-,root,root)
/fileA
/foo/bar/fileB