https://bugzilla.redhat.com/show_bug.cgi?id=1264686



--- Comment #3 from Antonio Trande <[email protected]> ---
>> - All documentation files are easily packaged by using '%doc'.
>I did not used %doc because "use of %doc with relative paths and installation 
>>of files directly into %_pkgdocdir in the same source package is forbidden" 
>>(https://fedoraproject.org/wiki/Packaging:Guidelines#Documentation). Indeed, 
>>using %doc under the %files section caused the automatic inclusion of 
>>%{_pkgdocdir} in the main packet, resulting in html documentation both in 
>itpp >and itpp-doc. So, what is the common practice in this case?

Prevent installation of documentation or remove the directory automatically
created.

%install
make -C build install DESTDIR=%{buildroot}
##Removing the documentation directory automatically created.
rm -rf %{buildroot}%{_pkgdocdir}

%check
LD_LIBRARY_PATH=$PWD/build/itpp build/gtests/itpp_gtests

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%{_libdir}/%{libname}.so.*
%{_datadir}/%{name}/
%doc AUTHORS ChangeLog NEWS README VERSION
%license COPYING

%files devel
%{_bindir}/itpp-config
%{_mandir}/man1/itpp-config*
%{_includedir}/%{name}
%{_libdir}/pkgconfig/itpp.pc
%{_libdir}/%{libname}.so

%files doc
%license COPYING
%doc build/html

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/package-review

Reply via email to