Bug 1373015

Summary: EPEL6 missing required sombok version
Product: [Fedora] Fedora EPEL Reporter: Bjarne Saltbaek <bjarne>
Component: perl-Unicode-LineBreakAssignee: Xavier Bachelot <xavier>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: el6CC: perl-devel, xavier
Target Milestone: ---   
Target Release: ---   
Hardware: arm   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-04 19:43:24 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 Bjarne Saltbaek 2016-09-04 19:14:47 UTC
Hi Xavier Bachelot <xavier>

Could you please add this to the SPEC file (EPEL6 has only sombok 2.0.5);

diff --git a/perl-Unicode-LineBreak.spec b/perl-Unicode-LineBreak.spec
index 271c4b7..279751d 100644
--- a/perl-Unicode-LineBreak.spec
+++ b/perl-Unicode-LineBreak.spec
@@ -1,6 +1,8 @@
+%global sombok_version %(rpm -q --qf "%{VERSION}" sombok-devel || echo 0)
+
 Name:           perl-Unicode-LineBreak
 Version:        2016.003
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        UAX #14 Unicode Line Breaking Algorithm
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -69,10 +71,11 @@
 
 %prep
 %setup -q -n Unicode-LineBreak-%{version}
+%if "%{sombok_version}" > "2.4.0"
 # Remove bundled library
 rm -rf sombok
 sed -i -e '/^sombok/d' MANIFEST
-
+%endif
 
 %if 0%{?rhel} == 5
 cat << \EOF > %{name}-prov
@@ -129,6 +132,9 @@

Comment 1 Xavier Bachelot 2016-09-04 19:43:24 UTC
EPEL 6 does have sombok 2.4.0. You may be getting the older sombok package because of a stale mirror ?
http://dl.fedoraproject.org/pub/epel/6/x86_64/sombok-2.4.0-2.el6.x86_64.rpm