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