Name: perl-Sys-RunAlone Version: 0.13 Release: 1%{?dist} Summary: Make sure only one invocation of a script is active at a time License: CHECK(Distributable) Group: Development/Libraries URL: http://search.cpan.org/dist/Sys-RunAlone/ Source0: http://www.cpan.org/authors/id/T/TI/TILLY/Sys-RunAlone-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Fcntl) Requires: perl(Fcntl) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Provide a simple way to make sure the script from which this module is loaded, is only running once on the server. Optionally allow for retrying execution until the other instance of the script has finished. %prep %setup -q -n Sys-RunAlone-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install 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/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc CHANGELOG META.json README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Fri Jan 24 2020 Dave Cross 0.13-1 - Specfile autogenerated by cpanspec 1.78.