Bug 1040154

Summary: Latest appliance-tools won't build for EPEL6 (appliance-tools-007.4-1)
Product: [Fedora] Fedora EPEL Reporter: Adam Miller <admiller>
Component: appliance-toolsAssignee: David Huff <dhuff>
Status: CLOSED DEFERRED QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: dhuff, virt-maint, vpavlin
Target Milestone: ---Flags: vpavlin: needinfo? (dhuff)
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-11 18:27:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Adam Miller 2013-12-10 20:37:35 UTC
Description of problem:
It looks like this is a side effect of the change with unversioned doc dirs and the upstream makefile following this convention but RHEL6 rpm macros still expecting it to be versioned (as well as older Fedora releases)

Version-Release number of selected component (if applicable):
appliance-tools-007.4-1

I put together a small patch and built against EPEL6 and Fedora Rawhide to verify it works. My spec file and SRPMs are here:
SPEC URL: http://maxamillion.fedorapeople.org/appliance-tools.spec
SRPM URL: http://maxamillion.fedorapeople.org/appliance-tools-007.4-2.el6.src.rpm


Also, here's the patch in case that''s useful:
diff --git a/appliance-tools.spec b/appliance-tools.spec
index 2755da6..1de9a63 100644
--- a/appliance-tools.spec
+++ b/appliance-tools.spec
@@ -5,7 +5,7 @@
 Summary: Tools for building Appliances
 Name: appliance-tools
 Version: 007.4
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2
 Group: System Environment/Base
 URL: http://thincrust.org/
@@ -49,6 +49,11 @@ make
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 
+# http://fedoraproject.org/wiki/Changes/UnversionedDocdirs
+%if 0%{?fedora} < 20 
+mv $RPM_BUILD_ROOT/%{_docdir}/%{name} $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -73,6 +78,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/image-minimizer
 
 %changelog
+* Tue Dec 10 2013 Adam Miller <maxamillion> - 007.4-2
+- Move the docs to a versioned doc dir for EPEL builds
+
 * Mon Aug 26 2013 Dennis Gilmore <dennis> - 007.4-1
 - refacter how re deal with each mount point old version did not handle swap

Comment 1 Václav Pavlín 2014-01-17 09:26:06 UTC
Hi David, do you think this can get fixed anytime soon?