Re: where is %{_docdir} defined ? and should use %{_defaultdocdir} or %{_docdir} and maybe we need update https://fedoraproject.org/wiki/Packaging_tricks#Installing_documentation:_2_paths

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

 



31.07.2016 22:25, Sérgio Basto пишет:
> Hello,
> %{_docdir} is a very strange macro , why rpm -E doesn't know what is 
> %{_docdir} but %{_defaultdocdir} knows ?  
> 
>     rpm -E "%{_docdir}"
>     %{_docdir}
>     rpm -E "%{_defaultdocdir}"
>     /usr/share/doc 
> 
> So should I use %{_defaultdocdir} instead %{_docdir} ? 

Please use %{_docdir} . Also, to make your .spec file support older
platforms check whether./configure or `make install` support a similar
parameter and pass %{_docdir} to them.


> and how 
> %{_docdir} is set ? 

grep for it in textual files of rpm and rpm-build packages. If not
found, download source files of rpm and look in C files.


> 
> Another matter is this wiki page : 
> https://fedoraproject.org/wiki/Packaging_tricks#Installing_documentation:_2_paths 
> is not in line with https://fedoraproject.org/wiki/Changes/UnversionedDocdirs , 
> should I update wiki page and change %{name}-%{version} with just %{name} ?

For example, in RHEL 6.8 the dirs are versioned. Please find in which
version of rpmbuild that was changed and mention that in wiki.

> 
> Also https://fedoraproject.org/wiki/How_to_create_an_RPM_package 
> "rm -rf $RPM_BUILD_ROOT" should be cleaned ? 
> 
> Best regards,
> 
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/packaging@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux