José Matos wrote:
Aren't two lines equivalent to
%{_libdir}/R/library/%{packname}/
Yes they are so I changed :)
But while testing on some packages I found something I don't fully
understand:
%files
%defattr(-, root, root, -)
#noarch
%{_datadir}/R/library/%{packname}/
%exclude %{_datadir}/R/library/%{packname}/doc
%exclude %{_datadir}/R/library/%{packname}/DESCRIPTION
%exclude %{_datadir}/R/library/%{packname}/html
%exclude %{_datadir}/R/library/%{packname}/latex/
%exclude %{_datadir}/R/library/%{packname}/man/
%doc %{_datadir}/R/library/%{packname}/doc
%doc %{_datadir}/R/library/%{packname}/DESCRIPTION
%doc %{_datadir}/R/library/%{packname}/html
%doc %{_datadir}/R/library/%{packname}/latex/
%doc %{_datadir}/R/library/%{packname}/man/
With this section rpmlint returns a warning that there is no docs.
Which is indeed true, in the rpm if I open it I cannot find the
DESCRIPTION file nor the other folders.
%files
%defattr(-, root, root, -)
#noarch
%{_datadir}/R/library/%{packname}/
%exclude %{_datadir}/R/library/%{packname}/doc
%exclude %{_datadir}/R/library/%{packname}/DESCRIPTION
%exclude %{_datadir}/R/library/%{packname}/html
%exclude %{_datadir}/R/library/%{packname}/latex/
%exclude %{_datadir}/R/library/%{packname}/man/
%doc %{_datadir}/R/library/%{packname}/doc
%doc %{_datadir}/R/library/%{packname}/DESCRIPTION
%doc %{_datadir}/R/library/%{packname}/html
%doc %{_datadir}/R/library/%{packname}/latex/
%doc %{_datadir}/R/library/%{packname}/man/
%doc %{_datadir}/R/library/%{packname}/NEWS
%doc %{_datadir}/R/library/%{packname}/COPYING
%doc %{_datadir}/R/library/%{packname}/CONTENTS
%doc %{_datadir}/R/library/%{packname}/NAMESPACE
%doc %{_datadir}/R/library/%{packname}/INDEX
With this section, rpmlint is happy and don't say anything anymore, but
I still can't find the DESCRIPTION file of the man folder
So is it normal ?
Shouldn't rpm/rpmlint give a warning/error when I try to %exclude and
files that are not found or when I try to set them as %doc ?
Some lights would be appreciate :)
Thanks,
Regards,
Pierre
_______________________________________________
Fedora-r-devel-list mailing list
Fedora-r-devel-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-r-devel-list