[perl-AnyEvent] Support building for EPEL-7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit dfd44d1f8eb9e18731dd71908d5ceef85c78ea0a
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Mon Jul 21 16:46:30 2014 +0100

    Support building for EPEL-7
    
    - Avoid some optional test dependencies for EPEL builds so that we can get
      an EPEL-7 build done
    - Use %license where possible

 perl-AnyEvent.spec |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/perl-AnyEvent.spec b/perl-AnyEvent.spec
index 6d1d2b8..23c11bd 100644
--- a/perl-AnyEvent.spec
+++ b/perl-AnyEvent.spec
@@ -5,7 +5,7 @@
 
 Name:           perl-AnyEvent
 Version:        7.07
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Framework for multiple event loops
 Group:          Development/Libraries
 License:        GPL+ or Artistic
@@ -38,16 +38,19 @@ BuildRequires:  perl(Test::More)
 # so don't do event loop testing when bootstrapping
 #
 # Cocoa and FLTK are not in Fedora/EPEL
+# AnyEvent::AIO, EV and IO::Async::Loop are not (yet) in EPEL-7
 # Test suite does not currently test the Qt event loop
 %if 0%{!?perl_bootstrap:1}
-BuildRequires:  perl(AnyEvent::AIO)
-BuildRequires:  perl(EV)
 BuildRequires:  perl(Event)
 BuildRequires:  perl(Glib) >= 1.210
-BuildRequires:  perl(IO::AIO) >= 4.13
-BuildRequires:  perl(IO::Async::Loop) >= 0.33
 BuildRequires:  perl(POE) >= 1.312
 BuildRequires:  perl(Tk)
+%if 0%{?fedora}
+BuildRequires:  perl(AnyEvent::AIO)
+BuildRequires:  perl(EV)
+BuildRequires:  perl(IO::AIO) >= 4.13
+BuildRequires:  perl(IO::Async::Loop) >= 0.33
+%endif
 %endif
 
 # Runtime requires
@@ -110,8 +113,12 @@ export PERL_ANYEVENT_LOOP_TESTS=1
 make test
 
 
+# Support use of %%license on older distributions
+%{!?_licensedir:%global license %%doc}
+
 %files
-%doc Changes COPYING README
+%license COPYING
+%doc Changes README
 %{perl_vendorarch}/AE.pm
 %{perl_vendorarch}/AnyEvent.pm
 %{perl_vendorarch}/AnyEvent/
@@ -146,6 +153,11 @@ make test
 
 
 %changelog
+* Mon Jul 21 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 7.07-3
+- Avoid some optional test dependencies for EPEL builds so that we can get
+  an EPEL-7 build done
+- Use %%license where possible
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 7.07-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux