Re: %files -f and %defattr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Once upon a time, James Olin Oden <james.oden@xxxxxxxxx> said:
> Your correct the %defattr in you %files will not affect the -f file's files.

That is not true.  I've got several perl RPMs built with the following
in the spec file (I know this isn't 100% correct; I plan to fix it when
I get some round tuits):

%define filelist %{perlname}-%{version}-filelist
[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress
find %{buildroot}%{_prefix} -type f -print |\
    perl -pe 's!%{buildroot}!!g' > %{filelist}

%files -f %{filelist}
%defattr (-, root, root)
%doc README

I can build an RPM as a non-root user, and the files properly get the
root/root defattr applied.
-- 
Chris Adams <cmadams@xxxxxxxxxx>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux