Bug 1373015 - EPEL6 missing required sombok version
Summary: EPEL6 missing required sombok version
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: perl-Unicode-LineBreak
Version: el6
Hardware: arm
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Xavier Bachelot
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-04 19:14 UTC by Bjarne Saltbaek
Modified: 2016-09-04 19:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-04 19:43:24 UTC
Type: Bug


Attachments (Terms of Use)

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


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