diff --git a/AnyEvent-7.17.tar.gz b/AnyEvent-7.17.tar.gz new file mode 100644 index 0000000..10bb1a0 Binary files /dev/null and b/AnyEvent-7.17.tar.gz differ diff --git a/perl-AnyEvent.spec b/perl-AnyEvent.spec new file mode 100644 index 0000000..1d5c9ce --- /dev/null +++ b/perl-AnyEvent.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-AnyEvent +Version: 7.17 +Release: 2 +Summary: DBI of event loop programming +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/AnyEvent/ +Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/AnyEvent-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +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 +Requires: perl(Async::Interrupt) >= 1 perl(EV) >= 4 perl(Guard) >= 1.02 +Requires: perl(JSON) >= 2.09 perl(JSON::XS) >= 2.2 perl(Net::SSLeay) >= 1.33 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Task::Weaken) + +%description +AnyEvent provides a uniform interface to various event loops. This allows +module authors to use event loop functionality without forcing module users +to use a specific event loop implementation (since more than one event loop +cannot coexist peacefully). + +%package help +Summary: DBI of event loop programming +Provides: perl-AnyEvent-doc + +%description help +AnyEvent provides a uniform interface to various event loops. This allows +module authors to use event loop functionality without forcing module users +to use a specific event loop implementation (since more than one event loop +cannot coexist peacefully). + +%prep +%setup -q -n AnyEvent-%{version} + +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . + +%check +make test +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes COPYING META.json mktest README +%{perl_vendorarch}/* + +%files help +%{_mandir}/* + +%changelog +* Fri Jul 10 2020 chengzihan - 7.17-2 +- Package init diff --git a/perl-AnyEvent.yaml b/perl-AnyEvent.yaml new file mode 100644 index 0000000..ce0af04 --- /dev/null +++ b/perl-AnyEvent.yaml @@ -0,0 +1,4 @@ +version_control: metacpan +src_repo: AnyEvent +tag_prefix: "^" +seperator: "."