From 7909976ec854ceecdc0fd91eca6891c4e4c7c74a Mon Sep 17 00:00:00 2001
From: Petr Písař <ppisar(a)redhat.com>
Date: Sep 01 2017 06:49:45 +0000
Subject: Remove EPEL code
This package was actually never upgraded in EPEL and the master branch
used features not available there and nobody complained since 2011
year. Morover I don't like the clutter.
---
diff --git a/perl-Coro.spec b/perl-Coro.spec
index 2d43146..e6d7482 100644
--- a/perl-Coro.spec
+++ b/perl-Coro.spec
@@ -64,25 +64,8 @@ Requires: perl(Guard) >= 0.5
Requires: perl(Storable) >= 2.15
Requires: perl(warnings)
-%if 0%{?rhel} && 0%{?rhel} < 7
-# RPM 4.8 style:
-# Filter underspecified dependencies
-%filter_from_requires /^perl(AnyEvent)$/d
-%filter_from_requires /^perl(AnyEvent) >= 4.800001$/d
-%filter_from_requires /^perl(AnyEvent::AIO)$/d
-%filter_from_requires /^perl(AnyEvent::BDB)$/d
-%filter_from_requires /^perl(EV)$/d
-%filter_from_requires /^perl(Event)$/d
-%filter_from_requires /^perl(Guard)$/d
-%filter_from_requires /^perl(Storable)$/d
-# Version unversioned Provides
-%filter_from_provides s/^\(perl(Coro\>[^=]*\)$/\1 = %{version}/
-
-%{?perl_default_filter}
-%else
%{?perl_default_filter}
-# RPM 4.9 style:
# Filter underspecified dependencies
%global __requires_exclude
%{?__requires_exclude:__requires_exclude|}^perl\\(AnyEvent\\)$
%global __requires_exclude %__requires_exclude|^perl\\(AnyEvent\\) >= 4.800001$
@@ -93,7 +76,6 @@ Requires: perl(warnings)
%global __requires_exclude %__requires_exclude|^perl\\(Guard\\)$
%global __requires_exclude %__requires_exclude|^perl\\(Storable\\)$
%global __provides_exclude %{?__provides_exclude:__provides_exclude|}^perl\\(Coro\\)$
-%endif
%description
@@ -126,13 +108,7 @@ for F in Coro/jit-*.pl; do
chmod -x "$F"
done
-%global wrong_shbangs eg/myhttpd
-%if %{defined fix_shbang_line}
-%fix_shbang_line %wrong_shbangs
-%else
-# at least EL6 doesn't have the %%fix_shbang_line macro
-sed -i -e '/^#!/ s|.*|#!%{__perl}|' %wrong_shbangs
-%endif
+%fix_shbang_line eg/myhttpd
%build
https://src.fedoraproject.org/rpms/perl-Coro/c/7909976ec854ceecdc0fd91eca...