Dear list,
Still in the process of finding a way to create a ready-to-build spec file I have had some though on the %files section.
I will probably change the actual format of the %files to : %files %defattr(-, root, root, -) %dir %{_libdir}/R/library/%{packname} %{_libdir}/R/library/%{packname}/* %exclude %{_libdir}/R/library/%{packname}/doc %exclude %{_libdir}/R/library/%{packname}/DESCRIPTION %exclude %{_libdir}/R/library/%{packname}/html %exclude %{_libdir}/R/library/%{packname}/latex/ %exclude %{_libdir}/R/library/%{packname}/man/
%doc %{_libdir}/R/library/%{packname}/doc %doc %{_libdir}/R/library/%{packname}/DESCRIPTION %doc %{_libdir}/R/library/%{packname}/html %doc %{_libdir}/R/library/%{packname}/latex/ %doc %{_libdir}/R/library/%{packname}/man/
I can (more or less) easily check which documentation files are there while it's much harder to check which files/folders are generated by the build (ie: R-ex, data, demo...)
How does it sound to you ??
Thanks for your feedback, Regards,
Pierre
On Monday 09 February 2009 10:41:02 Pierre-Yves wrote:
Dear list,
Still in the process of finding a way to create a ready-to-build spec file I have had some though on the %files section.
I will probably change the actual format of the %files to : %files %defattr(-, root, root, -)
%dir %{_libdir}/R/library/%{packname} %{_libdir}/R/library/%{packname}/*
Aren't two lines equivalent to %{_libdir}/R/library/%{packname}/
How does it sound to you ??
It seems OK but the rpm syntax always feels to me as weird and in line with TeX that still does several passes into one document because at the time the engine was designed memory was a prime consideration. ;-)
Thanks for your feedback, Regards,
Pierre
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
On 2009-02-18 at 11:31:40 -0500, Pierre-Yves pingou@pingoured.fr wrote:
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 ?
Probably. I'm guessing you can't %exclude a file, then include it as %doc.
~spot
Tom "spot" Callaway wrote:
On 2009-02-18 at 11:31:40 -0500, Pierre-Yves pingou@pingoured.fr wrote:
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 ?
Probably. I'm guessing you can't %exclude a file, then include it as %doc.
But if I include the directory, include the files as %doc and then %exclude them from the directory (see below) then I got the " File listed twice: " error :/
Regards,
Pierre
------------------------------------------------------ This is what I meant:
%{_datadir}/R/library/%{packname}/ %doc %{_datadir}/R/library/%{packname}/latex %doc %{_datadir}/R/library/%{packname}/html %doc %{_datadir}/R/library/%{packname}/DESCRIPTION %doc %{_datadir}/R/library/%{packname}/man
%exclude %{_datadir}/R/library/%{packname}/latex %exclude %{_datadir}/R/library/%{packname}/html %exclude %{_datadir}/R/library/%{packname}/DESCRIPTION %exclude %{_datadir}/R/library/%{packname}/man
On 2009-02-19 at 3:24:41 -0500, Pierre-Yves pingou@pingoured.fr wrote:
Tom "spot" Callaway wrote:
On 2009-02-18 at 11:31:40 -0500, Pierre-Yves pingou@pingoured.fr wrote:
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 ?
Probably. I'm guessing you can't %exclude a file, then include it as %doc.
But if I include the directory, include the files as %doc and then %exclude them from the directory (see below) then I got the " File listed twice: " error :/
Yes, see, what I'm saying is that you cannot mix %doc and %exclude.
~spot
r-devel@lists.fedoraproject.org