|
|
596ff5d |
Name: perl-autovivification
|
|
|
e972c15 |
Version: 0.18
|
|
|
0a69917 |
Release: 2%{?dist}
|
|
|
596ff5d |
Summary: Lexically disable autovivification
|
|
|
596ff5d |
License: GPL+ or Artistic
|
|
|
596ff5d |
URL: http://search.cpan.org/dist/autovivification/
|
|
|
596ff5d |
Source0: http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/autovivification-%{version}.tar.gz
|
|
Petr Šabata |
f38c7d0 |
# Build
|
|
Petr Šabata |
93845a3 |
BuildRequires: coreutils
|
|
Petr Šabata |
93845a3 |
BuildRequires: findutils
|
|
|
a932ecc |
BuildRequires: gcc
|
|
Petr Šabata |
93845a3 |
BuildRequires: make
|
|
|
a932ecc |
BuildRequires: perl-devel
|
|
|
3deb2ec |
BuildRequires: perl-generators
|
|
|
c422e31 |
BuildRequires: perl-interpreter
|
|
Petr Šabata |
f38c7d0 |
BuildRequires: perl(Config)
|
|
Petr Šabata |
93845a3 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
Petr Šabata |
f38c7d0 |
BuildRequires: perl(strict)
|
|
Petr Šabata |
f38c7d0 |
BuildRequires: perl(warnings)
|
|
Petr Šabata |
f38c7d0 |
# Runtime
|
|
|
596ff5d |
BuildRequires: perl(XSLoader)
|
|
Petr Šabata |
f38c7d0 |
# Tests only
|
|
Petr Šabata |
93845a3 |
# Scalar::Util is preferred over B
|
|
Petr Šabata |
93845a3 |
# XXX: BuildRequires: perl(B)
|
|
Petr Šabata |
93845a3 |
BuildRequires: perl(Exporter)
|
|
|
e972c15 |
BuildRequires: perl(File::Spec)
|
|
Petr Šabata |
f38c7d0 |
BuildRequires: perl(lib)
|
|
|
778ce11 |
BuildRequires: perl(POSIX)
|
|
Petr Šabata |
93845a3 |
BuildRequires: perl(Scalar::Util)
|
|
Petr Šabata |
f38c7d0 |
BuildRequires: perl(Test::More)
|
|
|
778ce11 |
BuildRequires: perl(threads)
|
|
Petr Šabata |
93845a3 |
BuildRequires: perl(threads::shared)
|
|
|
778ce11 |
BuildRequires: perl(Time::HiRes)
|
|
|
a932ecc |
# Runtime dependencies
|
|
Petr Šabata |
f38c7d0 |
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
|
596ff5d |
Requires: perl(XSLoader)
|
|
|
596ff5d |
|
|
|
596ff5d |
%{?perl_default_filter}
|
|
|
596ff5d |
|
|
|
596ff5d |
%description
|
|
|
596ff5d |
When an undefined variable is dereferenced, it gets silently upgraded to an
|
|
|
596ff5d |
array or hash reference (depending of the type of the dereferencing). This
|
|
|
596ff5d |
behavior is called autovivification and usually does what you mean (e.g.
|
|
|
596ff5d |
when you store a value) but it's sometimes unnatural or surprising because
|
|
|
596ff5d |
your variables gets populated behind your back. This is especially true
|
|
|
596ff5d |
when several levels of dereferencing are involved, in which case all levels
|
|
|
596ff5d |
are vivified up to the last, or when it happens in intuitively read-only
|
|
|
596ff5d |
constructs like exists.
|
|
|
596ff5d |
|
|
|
596ff5d |
%prep
|
|
|
596ff5d |
%setup -q -n autovivification-%{version}
|
|
|
596ff5d |
|
|
|
596ff5d |
%build
|
|
|
c422e31 |
perl Makefile.PL \
|
|
|
c422e31 |
INSTALLDIRS=vendor \
|
|
|
c422e31 |
OPTIMIZE="%{optflags}" \
|
|
|
c422e31 |
NO_PACKLIST=1 \
|
|
|
c422e31 |
NO_PERLLOCAL=1
|
|
|
596ff5d |
make %{?_smp_mflags}
|
|
|
596ff5d |
|
|
|
596ff5d |
%install
|
|
|
c422e31 |
make install DESTDIR=%{buildroot}
|
|
|
a932ecc |
find %{buildroot} -type f -name '*.bs' -empty -delete
|
|
|
c422e31 |
%{_fixperms} -c %{buildroot}
|
|
|
596ff5d |
|
|
|
596ff5d |
%check
|
|
|
596ff5d |
make test
|
|
|
596ff5d |
|
|
|
596ff5d |
%files
|
|
|
596ff5d |
%doc Changes README
|
|
|
a932ecc |
%{perl_vendorarch}/autovivification.pm
|
|
|
a932ecc |
%{perl_vendorarch}/auto/autovivification/
|
|
|
a932ecc |
%{_mandir}/man3/autovivification.3*
|
|
|
596ff5d |
|
|
|
596ff5d |
%changelog
|
|
|
0a69917 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-2
|
|
|
0a69917 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
0a69917 |
|
|
|
e972c15 |
* Mon Nov 6 2017 Paul Howarth <paul@city-fan.org> - 0.18-1
|
|
|
e972c15 |
- Update to 0.18
|
|
|
e972c15 |
- Fix compatibility with CV-in-stash optimization (CPAN RT#123411)
|
|
|
e972c15 |
- Fix strict/warn flags seeming to do nothing (CPAN RT#122956); the
|
|
|
e972c15 |
documentation has been amended to clarify how these two options are
|
|
|
e972c15 |
supposed to be used
|
|
|
e972c15 |
|
|
|
c422e31 |
* Tue Aug 1 2017 Paul Howarth <paul@city-fan.org> - 0.17-1
|
|
|
c422e31 |
- Update to 0.17
|
|
|
c422e31 |
- A large chunk of boilerplate XS code, which is also used in other XS
|
|
|
c422e31 |
modules, has been factored out of the main .xs file to a collection of .h
|
|
|
c422e31 |
files in the xsh subdirectory
|
|
|
c422e31 |
- The new optimization in perl 5.27.3 for scalar(keys(%%$hashref)) is now
|
|
|
c422e31 |
correctly supported
|
|
|
c422e31 |
|
|
|
317162f |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-7
|
|
|
317162f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
317162f |
|
|
|
99394f4 |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.16-6
|
|
|
99394f4 |
- Perl 5.26 rebuild
|
|
|
99394f4 |
|
|
|
d6de4b6 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-5
|
|
|
d6de4b6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
d6de4b6 |
|
|
|
bc7c204 |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.16-4
|
|
|
bc7c204 |
- Perl 5.24 rebuild
|
|
|
bc7c204 |
|
|
|
a932ecc |
* Thu Apr 21 2016 Paul Howarth <paul@city-fan.org> - 0.16-3
|
|
|
a932ecc |
- Fix FTBFS due to missing buildreq perl-devel
|
|
|
a932ecc |
- Simplify find command using -empty and -delete
|
|
|
a932ecc |
- Drop redundant Group: tag
|
|
|
a932ecc |
- Make %%files list more explicit
|
|
|
a932ecc |
|
|
|
bb5640a |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-2
|
|
|
bb5640a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
bb5640a |
|
|
Petr Šabata |
93845a3 |
* Thu Jul 09 2015 Petr Šabata <contyk@redhat.com> - 0.16-1
|
|
Petr Šabata |
93845a3 |
- 0.16 bump
|
|
Petr Šabata |
93845a3 |
|
|
|
7b723d5 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-3
|
|
|
7b723d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
7b723d5 |
|
|
|
2d17e1b |
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-2
|
|
|
2d17e1b |
- Perl 5.22 rebuild
|
|
|
2d17e1b |
|
|
|
778ce11 |
* Fri May 15 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-1
|
|
|
778ce11 |
- 0.15 bump
|
|
|
778ce11 |
|
|
Petr Šabata |
f38c7d0 |
* Wed Nov 12 2014 Petr Šabata <contyk@redhat.com> - 0.14-1
|
|
Petr Šabata |
f38c7d0 |
- 0.14 bump
|
|
Petr Šabata |
f38c7d0 |
|
|
|
2142787 |
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-6
|
|
|
2142787 |
- Perl 5.20 rebuild
|
|
|
2142787 |
|
|
|
fc8f80a |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
|
|
|
fc8f80a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
fc8f80a |
|
|
|
77c0ad9 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
|
|
|
77c0ad9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
77c0ad9 |
|
|
|
a374211 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
|
|
|
a374211 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
a374211 |
|
|
|
74bef91 |
* Tue Jul 30 2013 Petr Pisar <ppisar@redhat.com> - 0.11-2
|
|
|
74bef91 |
- Perl 5.18 rebuild
|
|
|
74bef91 |
|
|
|
e8ddca5 |
* Fri Feb 15 2013 Iain Arnell <iarnell@gmail.com> 0.11-1
|
|
|
e8ddca5 |
- update to latest upstream version
|
|
|
e8ddca5 |
|
|
|
936efd1 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-5
|
|
|
936efd1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
936efd1 |
|
|
|
6bde670 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4
|
|
|
6bde670 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
6bde670 |
|
|
|
298fed7 |
* Sat Jun 23 2012 Petr Pisar <ppisar@redhat.com> - 0.10-3
|
|
|
298fed7 |
- Perl 5.16 rebuild
|
|
|
298fed7 |
|
|
|
a830f9d |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-2
|
|
|
a830f9d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
a830f9d |
|
|
|
2980d22 |
* Sun Aug 28 2011 Iain Arnell <iarnell@gmail.com> 0.10-1
|
|
|
2980d22 |
- update to latest upstream version
|
|
|
2980d22 |
|
|
|
596ff5d |
* Thu Aug 11 2011 Iain Arnell <iarnell@gmail.com> 0.09-1
|
|
|
596ff5d |
- Specfile autogenerated by cpanspec 1.78.
|