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
This commit is contained in:
parent
d973bad3d7
commit
dfd44d1f8e
@ -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@city-fan.org> - 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@lists.fedoraproject.org> - 7.07-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user