From ec23243e838bcf90933574f82a1928a1b85c1f13 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 08:44:19 +0100 Subject: [PATCH] automatic update by autodist [release 6.32-1mamba;Sat Nov 09 2013] --- README.md | 2 + perl-Coro-5.25-ucontext-default.patch | 12 ++++ perl-Coro.spec | 99 +++++++++++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 perl-Coro-5.25-ucontext-default.patch create mode 100644 perl-Coro.spec diff --git a/README.md b/README.md index 0b3892e..73aab08 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Coro +This module collection manages continuations in general, most often in the form of cooperative threads (also called coros, or simply "coro" in the documentation). They are similar to kernel threads but don't (in general) run in parallel at the same time even on SMP machines. The specific flavor of thread offered by this module also guarantees you that it will not switch between threads unless necessary, at easily-identified points in your program, so locking and parallel access are rarely an issue, making thread programming much safer and easier than using other thread models. + diff --git a/perl-Coro-5.25-ucontext-default.patch b/perl-Coro-5.25-ucontext-default.patch new file mode 100644 index 0000000..8449c97 --- /dev/null +++ b/perl-Coro-5.25-ucontext-default.patch @@ -0,0 +1,12 @@ +diff -up Coro-5.25/Coro/Makefile.PL.ucontext Coro-5.25/Coro/Makefile.PL +--- Coro-5.25/Coro/Makefile.PL.ucontext 2011-01-10 11:29:04.000000000 +0100 ++++ Coro-5.25/Coro/Makefile.PL 2011-01-10 11:29:18.000000000 +0100 +@@ -49,7 +49,7 @@ if (exists $ENV{CORO_INTERFACE}) { + + } elsif ($^O =~ /linux/) { + # everything "just works", as expected +- $iface = $iface_asm || "s"; ++ $iface = $iface_asm || "u"; + + } elsif ($^O =~ /freebsd/) { + # FreeBSD 4.x has ucontext.h but no makecontext et al. (see BUGS section of diff --git a/perl-Coro.spec b/perl-Coro.spec new file mode 100644 index 0000000..efa3376 --- /dev/null +++ b/perl-Coro.spec @@ -0,0 +1,99 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Coro +Version: 6.32 +Release: 1mamba +Summary: Coro - the only real threads in perl +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Coro-%{version}.tar.gz +Patch0: perl-Coro-5.25-ucontext-default.patch +License: GPL, Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: perl-AnyEvent +BuildRequires: perl-AnyEvent-AIO +BuildRequires: perl-AnyEvent-BDB +BuildRequires: perl-BDB +BuildRequires: perl-common-sense +BuildRequires: perl-devel +BuildRequires: perl-EV +BuildRequires: perl-Event +BuildRequires: perl-Guard +BuildRequires: perl-IO-AIO +BuildRequires: perl-libwww +## AUTOBUILDREQ-END +Requires: perl >= %perl_major_ver +Requires: perl(AnyEvent) +Requires: perl(AnyEvent::AIO) +Requires: perl(AnyEvent::BDB) +Requires: perl(Event) +Requires: perl(Guard) +Requires: perl(Storable) +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This module collection manages continuations in general, most often in the form of cooperative threads (also called coros, or simply "coro" in the documentation). They are similar to kernel threads but don't (in general) run in parallel at the same time even on SMP machines. The specific flavor of thread offered by this module also guarantees you that it will not switch between threads unless necessary, at easily-identified points in your program, so locking and parallel access are rarely an issue, making thread programming much safer and easier than using other thread models. + +%prep +%setup -q -n Coro-%{version} +%patch0 -p1 + +sed -i -e '/^#!/ s|.*|#!%{__perl}|' eg/myhttpd Coro/jit-*-unix.pl + +%build +# Disable FORTIFY_SOURCE on ARM as it breaks setjmp - RHBZ 750805 +%ifarch %{arm} +RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -D_FORTIFY_SOURCE=0" +%endif +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=perl OPTIMIZE="$RPM_OPT_FLAGS" /dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_archlib}/auto/* +%{perl_archlib}/Coro.pm +%{perl_archlib}/Coro/* +%{_mandir}/man3/*.3pm.gz +%doc Changes COPYING +# README README.linux-glibc doc/* eg + +%changelog +* Sat Nov 09 2013 Automatic Build System 6.32-1mamba +- automatic update by autodist + +* Tue May 14 2013 Automatic Build System 6.31-1mamba +- automatic version update by autodist + +* Wed Jan 09 2013 Automatic Build System 6.23-1mamba +- automatic version update by autodist + +* Thu Nov 15 2012 Silvan Calarco 6.10-2mamba +- perl 5.16 rebuild + +* Tue Oct 23 2012 Automatic Build System 6.10-1mamba +- automatic version update by autodist + +* Wed Nov 16 2011 Silvan Calarco 6.07-1mamba +- update to 6.07 + +* Sun Feb 20 2011 gil 5.26-1mamba +- package created by autospec