From 35e864c04a54820d6755959f9d4959661a8a2820 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 09:05:02 +0100 Subject: [PATCH] perl 5.16 mass rebuild [release 1.022-2mamba;Mon Nov 12 2012] --- README.md | 8 ++++++ perl-Guard.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 perl-Guard.spec diff --git a/README.md b/README.md index 2994eda..1fcd1d6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # perl-Guard +This module implements so-called "guards". A guard is something +(usually an object) that "guards" a resource, ensuring that it is +cleaned up when expected. + +Specifically, this module supports two different types of guards: +guard objects, which execute a given code block when destroyed, and +scoped guards, which are tied to the scope exit. + diff --git a/perl-Guard.spec b/perl-Guard.spec new file mode 100644 index 0000000..5c63287 --- /dev/null +++ b/perl-Guard.spec @@ -0,0 +1,67 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Guard +Version: 1.022 +Release: 2mamba +Summary: Guard - safe cleanup blocks +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/Guard-%{version}.tar.gz +License: GPL, Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This module implements so-called "guards". A guard is something +(usually an object) that "guards" a resource, ensuring that it is +cleaned up when expected. + +Specifically, this module supports two different types of guards: +guard objects, which execute a given code block when destroyed, and +scoped guards, which are tied to the scope exit. + +%prep +%setup -q -n Guard-%{version} + + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Guard.pm +%{_mandir}/man3/*.3pm.gz +%doc Changes COPYING README + +%changelog +* Mon Nov 12 2012 Silvan Calarco 1.022-2mamba +- perl 5.16 mass rebuild + +* Wed Nov 16 2011 Silvan Calarco 1.022-1mamba +- update to 1.022 + +* Sun Feb 20 2011 gil 1.021-1mamba +- package created by autospec