cd4f99
Name:		perl-Readonly
cd4f99
Version:	2.05
cd4f99
Release:	5%{?dist}
cd4f99
Summary:	Facility for creating read-only scalars, arrays, hashes
cd4f99
Group:		Development/Libraries
cd4f99
License:	GPL+ or Artistic
cd4f99
URL:		http://search.cpan.org/dist/Readonly/
cd4f99
Source0:	http://search.cpan.org/CPAN/authors/id/S/SA/SANKO/Readonly-%{version}.tar.gz
cd4f99
Patch0:		Readonly-2.05-interpreter.patch
cd4f99
BuildArch:	noarch
cd4f99
# Module Build
cd4f99
BuildRequires:	coreutils
cd4f99
BuildRequires:	perl-interpreter
cd4f99
%if 0%{?fedora} > 20 || 0%{?rhel} > 7
cd4f99
BuildRequires:	perl-generators
cd4f99
%endif
cd4f99
BuildRequires:	perl(Module::Build::Tiny) >= 0.035
cd4f99
# Module Runtime
cd4f99
BuildRequires:	perl(Carp)
cd4f99
BuildRequires:	perl(Exporter)
cd4f99
BuildRequires:	perl(Storable)
cd4f99
BuildRequires:	perl(strict)
cd4f99
BuildRequires:	perl(vars)
cd4f99
# Test Suite
cd4f99
BuildRequires:	perl(lib)
cd4f99
BuildRequires:	perl(Test::More) >= 0.88
cd4f99
BuildRequires:	perl(warnings)
cd4f99
# Runtime
cd4f99
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
cd4f99
Requires:	perl(Carp)
cd4f99
Requires:	perl(Storable)
cd4f99
cd4f99
%description
cd4f99
Readonly provides a facility for creating non-modifiable scalars,
cd4f99
arrays, and hashes. Any attempt to modify a Readonly variable throws
cd4f99
an exception.
cd4f99
cd4f99
Readonly:
cd4f99
* Creates scalars, arrays (not lists), and hashes
cd4f99
* Creates variables that look and work like native perl variables
cd4f99
* Creates global or lexical variables
cd4f99
* Works at run-time or compile-time
cd4f99
* Works with deep or shallow data structures
cd4f99
* Prevents reassignment of Readonly variables
cd4f99
cd4f99
%prep
cd4f99
%setup -q -n Readonly-%{version}
cd4f99
cd4f99
# Fix script interpreter for test suite since we're packaging it
cd4f99
%patch0
cd4f99
cd4f99
%build
cd4f99
perl Build.PL --installdirs=vendor
cd4f99
./Build
cd4f99
cd4f99
%install
cd4f99
./Build install --destdir=%{buildroot} --create_packlist=0
cd4f99
cd4f99
%check
cd4f99
./Build test
cd4f99
cd4f99
%files
cd4f99
%license LICENSE
cd4f99
%doc Changes README.md eg/benchmark.pl t/
cd4f99
%{perl_vendorlib}/Readonly.pm
cd4f99
%{_mandir}/man3/Readonly.3*
cd4f99
cd4f99
%changelog
cd4f99
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.05-5
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cd4f99
cd4f99
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.05-4
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cd4f99
cd4f99
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.05-3
cd4f99
- Perl 5.26 rebuild
cd4f99
cd4f99
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.05-2
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cd4f99
cd4f99
* Mon Jun 13 2016 Paul Howarth <paul@city-fan.org> - 2.05-1
cd4f99
- Update to 2.05
cd4f99
  - Fix deref when using the stupid and utterly unnecessary Readonly::Clone
cd4f99
- BR: perl-generators where available
cd4f99
- Bump Test::More version requirement to 0.88 due to use of done_testing
cd4f99
- Update interpreter patch
cd4f99
cd4f99
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.04-2
cd4f99
- Perl 5.24 rebuild
cd4f99
cd4f99
* Sat May  7 2016 Paul Howarth <paul@city-fan.org> - 2.04-1
cd4f99
- Update to 2.04
cd4f99
  - Create mutable clones of readonly structures with Readonly::Clone (GH#13)
cd4f99
  - Minor typo fix (GH#21)
cd4f99
  - Rewording some documentation
cd4f99
  - No longer require an explicit version of perl in META.json or cpanfile
cd4f99
  - Quiet compile time warnings about function prototypes and vars being used
cd4f99
    only once
cd4f99
- Update interpreter patch
cd4f99
cd4f99
* Thu Feb 25 2016 Paul Howarth <paul@city-fan.org> - 2.01-1
cd4f99
- Update to 2.01
cd4f99
  - Disallow initialization of Readonly variables by assignment, allowed by
cd4f99
    Perl prototype changes in v5.16; assignment initialization of scalars sets
cd4f99
    scalar variables to undef and lists and hashes initialized by assignment
cd4f99
    are not read only
cd4f99
- Use %%license
cd4f99
- Upstream switched to Module::Build::Tiny flow
cd4f99
- Update interpreter patch
cd4f99
cd4f99
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.00-5
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cd4f99
cd4f99
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.00-4
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cd4f99
cd4f99
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.00-3
cd4f99
- Perl 5.22 rebuild
cd4f99
cd4f99
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.00-2
cd4f99
- Perl 5.20 rebuild
cd4f99
cd4f99
* Thu Jul  3 2014 Paul Howarth <paul@city-fan.org> - 2.00-1
cd4f99
- Update to 2.00
cd4f99
  - Deprecation of Readonly::XS as a requirement for fast, readonly scalars is
cd4f99
    complete
cd4f99
- Upstream dropped TODO file
cd4f99
cd4f99
* Mon Jun 30 2014 Paul Howarth <paul@city-fan.org> - 1.610-1
cd4f99
- Update to 1.61
cd4f99
  - Fix array and hash tie() while in XS mode (exposed by Params::Validate
cd4f99
    tests)
cd4f99
  - Fix implicit undef value regression
cd4f99
    (https://github.com/sanko/readonly/issues/8)
cd4f99
  - Normal constants (strings, numbers) do not appear to be read-only to
cd4f99
    Internals::SvREADONLY($) but perl itself doesn't miss a beat when you
cd4f99
    attempt to assign a value to them; fixing test regression in
cd4f99
    t/general/reassign.t
cd4f99
  - Minor documentation fixes (spell check, etc.)
cd4f99
    (https://github.com/sanko/readonly/issues/7)
cd4f99
- Update shellbang patch
cd4f99
cd4f99
* Thu Jun 26 2014 Paul Howarth <paul@city-fan.org> - 1.500.0-1
cd4f99
- Update to v1.500.0
cd4f99
  - Re-release with new version number
cd4f99
cd4f99
* Wed Jun 25 2014 Paul Howarth <paul@city-fan.org> - 1.5.0-1
cd4f99
- Update to v1.5.0
cd4f99
  - Readonly::XS is no longer needed
cd4f99
  - Typo fix (CPAN RT#86350)
cd4f99
  - Array and Hash scalar references were not made deeply readonly
cd4f99
    (CPAN RT#37864)
cd4f99
  - Upstream magic related bugs were reported to p5p and fixed in perl itself
cd4f99
    so we can resolve the following local issues:
cd4f99
    - CPAN RT#24216 ('looks_like_number' doesn't handle Readonly properly)
cd4f99
    - CPAN RT#29487 (magical variable bug in perl 5.8.5)
cd4f99
    - CPAN RT#36653 (Readonly scalar as class name sometimes undefined)
cd4f99
    - CPAN RT#57382 (tie-related bug in perl's core)
cd4f99
    - CPAN RT#70167 (unaccessed read-only variables are undef in select calls)
cd4f99
  - Reported Perl RT#120122 (tie + smartmatch bug) upstream to p5p; will
cd4f99
    eventually resolve local (CPAN RT#59256)
cd4f99
  - Use readonly support exposed in Internals on perl ≥ 5.8.0
cd4f99
  - Checking Readonly::XS::Okay is no longer suggested... never should have
cd4f99
    been
cd4f99
- Update shellbang patch
cd4f99
cd4f99
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-2
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cd4f99
cd4f99
* Tue Nov 26 2013 Paul Howarth <paul@city-fan.org> - 1.04-1
cd4f99
- Update to 1.04
cd4f99
  - Module now maintained by Sanko Robinson; please see TODO for a possible set
cd4f99
    of changes to this module that may affect code written for old, pre-perl
cd4f99
    5.14.0 platforms!
cd4f99
  - Don't install benchmark.pl (CPAN RT#16167)
cd4f99
- This release by SANKO -> update source URL
cd4f99
- Switch to Module::Build flow
cd4f99
- Update shellbang patch
cd4f99
- Modernize spec since EPEL < 7 will never have buildreq CPAN::Meta
cd4f99
- Drop obsoletes/provides for old -tests subpackage
cd4f99
cd4f99
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-24
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cd4f99
cd4f99
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.03-23
cd4f99
- Perl 5.18 rebuild
cd4f99
cd4f99
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-22
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cd4f99
cd4f99
* Thu Aug 16 2012 Petr Pisar <ppisar@redhat.com> - 1.03-21
cd4f99
- Specify all dependencies
cd4f99
cd4f99
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-20
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cd4f99
cd4f99
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.03-19
cd4f99
- Perl 5.16 rebuild
cd4f99
cd4f99
* Thu Mar  1 2012 Paul Howarth <paul@city-fan.org> - 1.03-18
cd4f99
- Drop -tests subpackage (general lack of interest in this), but include
cd4f99
  them as documentation for the main package
cd4f99
- No need to remove empty directories from buildroot
cd4f99
- Add buildreqs for Perl core modules that might be dual-lived
cd4f99
- Fix script interpreter for test suite since we're packaging it
cd4f99
- Drop redundant %%{?perl_default_filter}
cd4f99
- Don't use macros for commands
cd4f99
- Make %%files list more explicit
cd4f99
- Use tabs
cd4f99
cd4f99
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-17
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cd4f99
cd4f99
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-16
cd4f99
- Perl mass rebuild
cd4f99
cd4f99
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-15
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cd4f99
cd4f99
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-14
cd4f99
- Rebuild to fix problems with vendorarch/lib (#661697)
cd4f99
cd4f99
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-13
cd4f99
- Mass rebuild with perl-5.12.0
cd4f99
cd4f99
* Sun Feb 21 2010 Chris Weyl <cweyl@alumni.drew.edu> - 1.03-12
cd4f99
- Add perl_default_filter, etc
cd4f99
- Minor spec updates
cd4f99
cd4f99
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.03-11
cd4f99
- Rebuild against perl 5.10.1
cd4f99
cd4f99
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-10
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cd4f99
cd4f99
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-9
cd4f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
cd4f99
cd4f99
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.03-8
cd4f99
- Rebuild for perl 5.10 (again)
cd4f99
cd4f99
* Mon Jan 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.03-7
cd4f99
- Rebuild for new perl
cd4f99
cd4f99
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.03-6.2
cd4f99
- Add BR: perl(Test::More)
cd4f99
cd4f99
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.03-6.1
cd4f99
- Correct license tag
cd4f99
- Add BR: perl(ExtUtils::MakeMaker)
cd4f99
cd4f99
* Wed Oct 04 2006 Chris Weyl <cweyl@alumni.drew.edu> - 1.03-6
cd4f99
- Add explict requires on perl(Readonly::XS); perl(Readonly::XS) is available
cd4f99
  for all architectures Fedora supports, so there's no good reason to not
cd4f99
  require it
cd4f99
- Spec file rework
cd4f99
cd4f99
* Tue Sep 19 2006 Chris Weyl <cweyl@alumni.drew.edu> - 1.03-5
cd4f99
- Bump for mass rebuild
cd4f99
cd4f99
* Thu Dec 08 2005 Michael A. Peters <mpeters@mac.com> - 1.03-4
cd4f99
- Remove requires on perl-Readonly-XS
cd4f99
cd4f99
* Thu Dec 08 2005 Michael A. Peters <mpeters@mac.com> - 1.03-3
cd4f99
- Fix license and BuildRequires, use %%{?_smp_mflags} with make
cd4f99
cd4f99
* Sat Nov 12 2005 Michael A. Peters <mpeters@mac.com> - 1.03-2
cd4f99
- Separate out perl-Readonly-XS into its own package
cd4f99
- Package benchmark.pl as a doc
cd4f99
cd4f99
* Mon Nov 7 2005 Michael A. Peters <mpeters@mac.com> - 1.03-1
cd4f99
- Initial spec file