!6 修改了一些依赖,使其能够在openEuler下构建成功
From: @mywaaagh_admin Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
237e74a3ba
@ -1,20 +1,62 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: perl-AnyEvent
|
Name: perl-AnyEvent
|
||||||
Version: 7.17
|
Version: 7.17
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: DBI of event loop programming
|
Summary: DBI of event loop programming
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/AnyEvent/
|
URL: http://search.cpan.org/dist/AnyEvent/
|
||||||
Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/AnyEvent-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/AnyEvent-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
BuildRequires: make findutils
|
||||||
|
BuildRequires: perl-Glib
|
||||||
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl(Canary::Stability)
|
||||||
|
BuildRequires: perl(Event)
|
||||||
|
BuildRequires: perl(Tk)
|
||||||
|
BuildRequires: perl(POE)
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) perl(Net::SSLeay) >= 1.33 perl(Task::Weaken)
|
BuildRequires: perl(ExtUtils::MakeMaker) perl(Net::SSLeay) >= 1.33 perl(Task::Weaken)
|
||||||
BuildRequires: perl(Guard) >= 1.02 perl(JSON) >= 2.09 perl(JSON::XS) >= 2.2
|
BuildRequires: perl(Guard) >= 1.02 perl(JSON) >= 2.09 perl(JSON::XS) >= 2.2
|
||||||
Requires: perl(Async::Interrupt) >= 1 perl(EV) >= 4 perl(Guard) >= 1.02
|
# Async is a optional require for fast signal handle,
|
||||||
Requires: perl(JSON) >= 2.09 perl(JSON::XS) >= 2.2 perl(Net::SSLeay) >= 1.33
|
# disable it for we do not have it in openEuelr
|
||||||
|
#Requires: perl(Async::Interrupt) >= 1
|
||||||
|
# EV is a optional require for a optional event loop backend
|
||||||
|
# disable it for we do not have it in openEuelr
|
||||||
|
#Requires: perl(EV) >= 4
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
Requires: perl(Task::Weaken)
|
Requires: perl(Task::Weaken)
|
||||||
|
Requires: perl(Guard)
|
||||||
|
Requires: perl(Storable)
|
||||||
|
Requires: perl(Sys::Syslog)
|
||||||
|
Requires: perl(Unicode::Normalize)
|
||||||
|
|
||||||
|
# Optional dependencies do not need
|
||||||
|
%global optional_deps AnyEvent::AIO
|
||||||
|
%global optional_deps %{optional_deps}|Cocoa::EventLoop
|
||||||
|
%global optional_deps %{optional_deps}|EV
|
||||||
|
%global optional_deps %{optional_deps}|Event
|
||||||
|
%global optional_deps %{optional_deps}|Event::Lib
|
||||||
|
%global optional_deps %{optional_deps}|EventLoop
|
||||||
|
%global optional_deps %{optional_deps}|FLTK
|
||||||
|
%global optional_deps %{optional_deps}|Glib
|
||||||
|
%global optional_deps %{optional_deps}|IO::AIO
|
||||||
|
%global optional_deps %{optional_deps}|IO::Async::Loop
|
||||||
|
%global optional_deps %{optional_deps}|Irssi
|
||||||
|
%global optional_deps %{optional_deps}|POE
|
||||||
|
%global optional_deps %{optional_deps}|Qt
|
||||||
|
%global optional_deps %{optional_deps}|Qt::isa
|
||||||
|
%global optional_deps %{optional_deps}|Qt::slots
|
||||||
|
%global optional_deps %{optional_deps}|Tk
|
||||||
|
%global optional_deps %{optional_deps}|UV
|
||||||
|
|
||||||
|
# Don't include optional dependencies
|
||||||
|
%global __requires_exclude ^perl[(](%{optional_deps})[)]
|
||||||
|
|
||||||
|
# Filter unversioned and bogus provides
|
||||||
|
# AnyEvent::Impl::{Cocoa,FLTK,UV} are filtered as the required
|
||||||
|
# underlying modules are not currently available in openEuelr
|
||||||
|
%global __provides_exclude ^perl[(](AnyEvent(::Impl::(Cocoa|FLTK|UV|EV))?|DB)[)]$
|
||||||
|
|
||||||
%description
|
%description
|
||||||
AnyEvent provides a uniform interface to various event loops. This allows
|
AnyEvent provides a uniform interface to various event loops. This allows
|
||||||
@ -37,6 +79,7 @@ cannot coexist peacefully).
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export PERL_MM_OPT=""
|
export PERL_MM_OPT=""
|
||||||
|
export PERL_CANARY_STABILITY_NOPROMPT=1
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -59,6 +102,7 @@ popd
|
|||||||
mv %{buildroot}/filelist.lst .
|
mv %{buildroot}/filelist.lst .
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
export PERL_ANYEVENT_LOOP_TESTS=true
|
||||||
make test
|
make test
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -72,5 +116,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/*
|
%{_mandir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 16 2023 lichaoran <pkwarcraft@hotmail.com> - 7.17-3
|
||||||
|
- add some buildrequires and requires to make build work
|
||||||
|
|
||||||
* Fri Jul 10 2020 chengzihan <chengzihan2@huawei.com> - 7.17-2
|
* Fri Jul 10 2020 chengzihan <chengzihan2@huawei.com> - 7.17-2
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user