From 319be21cdb56b6291feabaee8a7335fd45f9b0a8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 25 Mar 2014 14:18:27 +0100 Subject: libevent: improve scl build --- libevent-last.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/libevent-last.spec b/libevent-last.spec index e93702d..53e0b3c 100644 --- a/libevent-last.spec +++ b/libevent-last.spec @@ -5,10 +5,17 @@ # Regression tests take a long time, you can skip 'em with this %global with_tests %{?_with_tests:1}%{!?_with_tests:0} -%{?scl:Name: %{?scl_prefix}%{libname}} +# libevent >= 2.0.9 have soname .5 +%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 +# Standard build +Name: %{libname} +%else +# Build for parallel install +%{?scl:Name: %{scl_prefix}%{libname}} %{!?scl:Name: %{libname}-last} +%endif Version: 2.0.21 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Abstract asynchronous event notification library Group: System Environment/Libraries @@ -28,6 +35,7 @@ Patch01: libevent-nonettests.patch %{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so} %{?filter_requires_in: %filter_requires_in %{_libdir}/.*\.so} %{?filter_setup} +Requires: %{scl}-runtime Requires: openssl%{?_isa} %endif @@ -119,6 +127,9 @@ make check %changelog +* Tue Mar 25 2014 Remi Collet - 2.0.21-3 +- improve SCL build + * Sun Mar 23 2014 Remi Collet - 2.0.21-2 - allow SCL build -- cgit