Bug 1277550 - Failback should be provided the the macro _pkgdocdir
Failback should be provided the the macro _pkgdocdir
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: git (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: pstodulk
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-03 09:35 EST by Mohammad Alhashash
Modified: 2015-11-03 11:26 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-03 11:26:13 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mohammad Alhashash 2015-11-03 09:35:52 EST
The spec file has references the macro _pkgdocdir which is not defined for older fedora versions. In line:

rm -f %{buildroot}%{_pkgdocdir}/git-subtree.html

This should be either replaced with:

rm -f %{buildroot}%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}/git-subtree.html

As done in other place or the macro could be defined globally using:

%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}

This would allow building the package on earlier Fedora releases.

See: https://fedoraproject.org/wiki/Changes/UnversionedDocdirs
Comment 1 pstodulk 2015-11-03 11:26:13 EST
Good catch! Thanks for report.

Note You need to log in before you can comment on or make changes to this bug.