%define upstream_name Sys-SigAction %define upstream_version 0.15 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Perl extension for Consistent Signal Handling License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Sys/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(POSIX) BuildRequires: perl(Test::More) BuildArch: noarch %description This module implements set_sig_handler(), which sets up a signal handler and (optionally) returns an object which causes the signal handler to be reset to the previous value, when it goes out of scope. Also implemented is timeout_call() which takes a timeout value and a code reference, and executes the code reference wrapped with an alarm timeout. Finally, two convenience routines are defined which allow one to get the signal name from the number -- sig_name(), and get the signal number from the name -- sig_number(). %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %{__make} test %install rm -rf %{buildroot} %makeinstall_std %files %doc Changes META.yml README %{perl_vendorlib}/Sys %_mandir/man3*/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.150.0-2.mga3 + Revision: 372996 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Jul 08 2011 jquelin <jquelin> 0.150.0-1.mga2 + Revision: 120471 - update to 0.15 * Mon Jun 27 2011 jquelin <jquelin> 0.140.0-1.mga2 + Revision: 114630 - update to 0.14 * Mon Jun 27 2011 jquelin <jquelin> 0.130.0-1.mga2 + Revision: 114497 - update to 0.13 * Tue Jun 21 2011 jquelin <jquelin> 0.120.0-1.mga2 + Revision: 111621 - update to 0.12 * Sat Jan 22 2011 jquelin <jquelin> 0.110.0-1.mga1 + Revision: 31216 - mageia rebuild - imported package perl-Sys-SigAction