[libverto] Don't build libev on RHEL

Nathaniel McCallum npmccallum at fedoraproject.org
Tue Aug 7 18:43:55 UTC 2012


commit 45386033ebfdbef10f945e4b0ba403f5ee2c34b9
Author: Nathaniel McCallum <nathaniel at themccallums.org>
Date:   Tue Aug 7 14:43:51 2012 -0400

    Don't build libev on RHEL

 libverto.spec |   82 ++++++++++++++++++++++++++++++++-------------------------
 1 files changed, 46 insertions(+), 36 deletions(-)
---
diff --git a/libverto.spec b/libverto.spec
index 00db9f4..ff1a186 100644
--- a/libverto.spec
+++ b/libverto.spec
@@ -1,6 +1,6 @@
 Name:           libverto
 Version:        0.2.4
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Main loop abstraction library
 
 License:        MIT
@@ -10,9 +10,11 @@ Source0:        http://fedorahosted.org/releases/l/i/%{name}/%{name}-%{version}.
 Patch1:         libverto-0.2.4-fix-libev.patch
 
 BuildRequires:  glib2-devel
-BuildRequires:  libev-devel
 BuildRequires:  libevent-devel
 BuildRequires:  libtevent-devel
+%if !0%{?rhel}
+BuildRequires:  libev-devel
+%endif
 
 %description
 libverto provides a way for libraries to expose asynchronous interfaces
@@ -54,29 +56,6 @@ Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
 The %{name}-glib-devel package contains libraries and header files for
 developing applications that use %{name}-glib.
 
-%package        libev
-Summary:        libev module for %{name}
-Requires:       %{name}%{?_isa} = %{version}-%{release}
-Provides:       %{name}-module-base = %{version}-%{release}
-
-%description    libev
-Module for %{name} which provides integration with libev.
-
-This package provides %{name}-module-base since it supports io, timeout
-and signal.
-
-%package        libev-devel
-Summary:        Development files for %{name}-libev
-Requires:       %{name}-libev%{?_isa} = %{version}-%{release}
-Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
-
-%description    libev-devel
-The %{name}-libev-devel package contains libraries and header files for
-developing applications that use %{name}-libev.
-
-This package provides %{name}-module-base since it supports io, timeout
-and signal.
-
 %package        libevent
 Summary:        libevent module for %{name}
 Requires:       %{name}%{?_isa} = %{version}-%{release}
@@ -114,6 +93,31 @@ Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
 The %{name}-tevent-devel package contains libraries and header files for
 developing applications that use %{name}-tevent.
 
+%if !0%{?rhel}
+%package        libev
+Summary:        libev module for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+Provides:       %{name}-module-base = %{version}-%{release}
+
+%description    libev
+Module for %{name} which provides integration with libev.
+
+This package provides %{name}-module-base since it supports io, timeout
+and signal.
+
+%package        libev-devel
+Summary:        Development files for %{name}-libev
+Requires:       %{name}-libev%{?_isa} = %{version}-%{release}
+Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
+
+%description    libev-devel
+The %{name}-libev-devel package contains libraries and header files for
+developing applications that use %{name}-libev.
+
+This package provides %{name}-module-base since it supports io, timeout
+and signal.
+%endif
+
 %prep
 %setup -q
 %patch1 -p1
@@ -133,15 +137,16 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 %post -n %{name}-glib -p /sbin/ldconfig
 %postun -n %{name}-glib -p /sbin/ldconfig
 
-%post -n %{name}-libev -p /sbin/ldconfig
-%postun -n %{name}-libev -p /sbin/ldconfig
-
 %post -n %{name}-libevent -p /sbin/ldconfig
 %postun -n %{name}-libevent -p /sbin/ldconfig
 
 %post -n %{name}-tevent -p /sbin/ldconfig
 %postun -n %{name}-tevent -p /sbin/ldconfig
 
+%if !0%{?rhel}
+%post -n %{name}-libev -p /sbin/ldconfig
+%postun -n %{name}-libev -p /sbin/ldconfig
+%endif
 
 %files
 %doc AUTHORS ChangeLog COPYING NEWS README
@@ -161,14 +166,6 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 %{_libdir}/%{name}-glib.so
 %{_libdir}/pkgconfig/%{name}-glib.pc
 
-%files libev
-%{_libdir}/%{name}-libev.so.*
-
-%files libev-devel
-%{_includedir}/verto-libev.h
-%{_libdir}/%{name}-libev.so
-%{_libdir}/pkgconfig/%{name}-libev.pc
-
 %files libevent
 %{_libdir}/%{name}-libevent.so.*
 
@@ -185,7 +182,20 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 %{_libdir}/%{name}-tevent.so
 %{_libdir}/pkgconfig/%{name}-tevent.pc
 
+%if !0%{?rhel}
+%files libev
+%{_libdir}/%{name}-libev.so.*
+
+%files libev-devel
+%{_includedir}/verto-libev.h
+%{_libdir}/%{name}-libev.so
+%{_libdir}/pkgconfig/%{name}-libev.pc
+%endif
+
 %changelog
+* Tue Aug 07 2012 Nathaniel McCallum <npmccallum at redhat.com> - 0.2.4-4
+- Don't build libev on RHEL
+
 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.4-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list