From 1846d0896417fedbb1100a1bbbccfd6a7e9c2460 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 02 2019 20:01:47 +0000 Subject: import perl-Readonly-1.03-22.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0c6ac85 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Readonly-1.03.tar.gz diff --git a/.perl-Readonly.metadata b/.perl-Readonly.metadata new file mode 100644 index 0000000..a63e14e --- /dev/null +++ b/.perl-Readonly.metadata @@ -0,0 +1 @@ +31220d04adc3b407cfe2d5bcb04d7ff07e923ab8 SOURCES/Readonly-1.03.tar.gz diff --git a/SOURCES/Readonly-1.03-interpreter.patch b/SOURCES/Readonly-1.03-interpreter.patch new file mode 100644 index 0000000..ba3a812 --- /dev/null +++ b/SOURCES/Readonly-1.03-interpreter.patch @@ -0,0 +1,88 @@ +--- t/array.t ++++ t/array.t +@@ -1,4 +1,4 @@ +-#!perl -I.. ++#!/usr/bin/perl -I.. + + # Readonly array tests + +--- t/deepa.t ++++ t/deepa.t +@@ -1,4 +1,4 @@ +-#!perl -I.. ++#!/usr/bin/perl -I.. + + # Test Array vs Array1 functionality + +--- t/deeph.t ++++ t/deeph.t +@@ -1,4 +1,4 @@ +-#!perl -I.. ++#!/usr/bin/perl -I.. + + # Test Hash vs Hash1 functionality + +--- t/deeps.t ++++ t/deeps.t +@@ -1,4 +1,4 @@ +-#!perl -I.. ++#!/usr/bin/perl -I.. + + # Test Scalar vs Scalar1 functionality + +--- t/docs.t ++++ t/docs.t +@@ -1,4 +1,4 @@ +-#!perl -I.. ++#!/usr/bin/perl -I.. + + # Examples from the docs -- make sure they work! + +--- t/export.t ++++ t/export.t +@@ -1,4 +1,4 @@ +-#!perl -I.. ++#!/usr/bin/perl -I.. + + # Readonly hash tests + +--- t/hash.t ++++ t/hash.t +@@ -1,4 +1,4 @@ +-#!perl -I.. ++#!/usr/bin/perl -I.. + + # Readonly hash tests + +--- t/readonly.t ++++ t/readonly.t +@@ -1,4 +1,4 @@ +-#!perl -I.. ++#!/usr/bin/perl -I.. + + # Test the Readonly function + +--- t/reassign.t ++++ t/reassign.t +@@ -1,4 +1,4 @@ +-#!perl -I.. ++#!/usr/bin/perl -I.. + + # Readonly reassignment-prevention tests + +--- t/scalar.t ++++ t/scalar.t +@@ -1,4 +1,4 @@ +-#!perl -I.. ++#!/usr/bin/perl -I.. + + # Readonly scalar tests + +--- t/tie.t ++++ t/tie.t +@@ -1,4 +1,4 @@ +-#!perl -I.. ++#!/usr/bin/perl -I.. + + # Test the Readonly function + diff --git a/SPECS/perl-Readonly.spec b/SPECS/perl-Readonly.spec new file mode 100644 index 0000000..80b8731 --- /dev/null +++ b/SPECS/perl-Readonly.spec @@ -0,0 +1,159 @@ +Name: perl-Readonly +Version: 1.03 +Release: 22%{?dist} +Summary: Facility for creating read-only scalars, arrays, hashes +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Readonly/ +Source0: http://search.cpan.org/CPAN/authors/id/R/RO/ROODE/Readonly-%{version}.tar.gz +Patch0: Readonly-1.03-interpreter.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildArch: noarch +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) +BuildRequires: perl(vars) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Carp) +# Speed it up since we can +Requires: perl(Readonly::XS) + +# Obsolete/provide old -tests subpackage (can be removed in F19 development cycle) +Obsoletes: perl-Readonly-tests < %{version}-%{release} +Provides: perl-Readonly-tests = %{version}-%{release} + +%description +Readonly provides a facility for creating non-modifiable scalars, +arrays, and hashes. Any attempt to modify a Readonly variable throws +an exception. + +Readonly: +* Creates scalars, arrays (not lists), and hashes +* Creates variables that look and work like native perl variables +* Creates global or lexical variables +* Works at run-time or compile-time +* Works with deep or shallow data structures +* Prevents reassignment of Readonly variables + +%prep +%setup -q -n Readonly-%{version} + +# Fix script interpreter for test suite since we're packaging it +%patch0 + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +%{_fixperms} %{buildroot} + +# We're having this as %%doc +mv %{buildroot}%{perl_vendorlib}/benchmark.pl . + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README benchmark.pl t/ +%{perl_vendorlib}/Readonly.pm +%{_mandir}/man3/Readonly.3pm* + +%changelog +* Fri Dec 27 2013 Daniel Mach - 1.03-22 +- Mass rebuild 2013-12-27 + +* Thu Aug 16 2012 Petr Pisar - 1.03-21 +- Specify all dependencies + +* Wed Aug 15 2012 Daniel Mach - 1.03-20.1 +- Rebuild for perl 5.16 + +* Fri Jul 20 2012 Fedora Release Engineering - 1.03-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 11 2012 Petr Pisar - 1.03-19 +- Perl 5.16 rebuild + +* Thu Mar 1 2012 Paul Howarth - 1.03-18 +- Drop -tests subpackage (general lack of interest in this), but include + them as documentation for the main package +- No need to remove empty directories from buildroot +- Add buildreqs for Perl core modules that might be dual-lived +- Fix script interpreter for test suite since we're packaging it +- Drop redundant %%{?perl_default_filter} +- Don't use macros for commands +- Make %%files list more explicit +- Use tabs + +* Fri Jan 13 2012 Fedora Release Engineering - 1.03-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Jun 17 2011 Marcela Mašláňová - 1.03-16 +- Perl mass rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 1.03-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 21 2010 Marcela Maslanova - 1.03-14 +- Rebuild to fix problems with vendorarch/lib (#661697) + +* Thu May 06 2010 Marcela Maslanova - 1.03-13 +- Mass rebuild with perl-5.12.0 + +* Sun Feb 21 2010 Chris Weyl - 1.03-12 +- Add perl_default_filter, etc +- Minor spec updates + +* Mon Dec 7 2009 Stepan Kasal - 1.03-11 +- Rebuild against perl 5.10.1 + +* Sun Jul 26 2009 Fedora Release Engineering - 1.03-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 1.03-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 27 2008 Tom "spot" Callaway - 1.03-8 +- Rebuild for perl 5.10 (again) + +* Mon Jan 14 2008 Tom "spot" Callaway - 1.03-7 +- Rebuild for new perl + +* Tue Oct 16 2007 Tom "spot" Callaway - 1.03-6.2 +- Add BR: perl(Test::More) + +* Tue Oct 16 2007 Tom "spot" Callaway - 1.03-6.1 +- Correct license tag +- Add BR: perl(ExtUtils::MakeMaker) + +* Wed Oct 04 2006 Chris Weyl - 1.03-6 +- Add explict requires on perl(Readonly::XS); perl(Readonly::XS) is available + for all architectures Fedora supports, so there's no good reason to not + require it +- Spec file rework + +* Tue Sep 19 2006 Chris Weyl - 1.03-5 +- Bump for mass rebuild + +* Thu Dec 08 2005 Michael A. Peters - 1.03-4 +- Remove requires on perl-Readonly-XS + +* Thu Dec 08 2005 Michael A. Peters - 1.03-3 +- Fix license and BuildRequires, use %%{?_smp_mflags} with make + +* Sat Nov 12 2005 Michael A. Peters - 1.03-2 +- Separate out perl-Readonly-XS into its own package +- Package benchmark.pl as a doc + +* Mon Nov 7 2005 Michael A. Peters - 1.03-1 +- Initial spec file