Bug 1040154 - Latest appliance-tools won't build for EPEL6 (appliance-tools-007.4-1) [NEEDINFO]
Summary: Latest appliance-tools won't build for EPEL6 (appliance-tools-007.4-1)
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: appliance-tools
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Huff
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-10 20:37 UTC by Adam Miller
Modified: 2016-01-11 18:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-11 18:27:36 UTC
Type: Bug
vpavlin: needinfo? (dhuff)


Attachments (Terms of Use)

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?


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