adea1ed
# Run optional test
ef792d0
%if ! (0%{?rhel})
adea1ed
%bcond_without perl_Ref_Util_enables_optional_test
ef792d0
%else
ef792d0
%bcond_with perl_Ref_Util_enables_optional_test
ef792d0
%endif
adea1ed
1f44731
Name:		perl-Ref-Util
8fb48ed
Version:	0.204
d463228
Release:	12%{?dist}
1f44731
Summary:	Utility functions for checking references
1f44731
License:	MIT
6dd560a
URL:		https://metacpan.org/release/Ref-Util
6dd560a
Source0:	https://cpan.metacpan.org/authors/id/A/AR/ARC/Ref-Util-%{version}.tar.gz
eb41fb8
BuildArch:	noarch
1f44731
# Build
1f44731
BuildRequires:	coreutils
1f44731
BuildRequires:	findutils
1f44731
BuildRequires:	make
1f44731
BuildRequires:	perl-generators
8fb48ed
BuildRequires:	perl-interpreter
1f44731
BuildRequires:	perl(ExtUtils::MakeMaker)
eb41fb8
BuildRequires:	perl(lib)
eb41fb8
BuildRequires:	perl(Text::ParseWords)
eb41fb8
# Dependencies of bundled ExtUtils::HasCompiler
eb41fb8
BuildRequires:	gcc
eb41fb8
BuildRequires:	perl-devel
eb41fb8
BuildRequires:	perl(base)
eb41fb8
BuildRequires:	perl(Config)
eb41fb8
BuildRequires:	perl(DynaLoader)
eb41fb8
BuildRequires:	perl(File::Basename)
eb41fb8
BuildRequires:	perl(File::Spec::Functions)
eb41fb8
BuildRequires:	perl(File::Temp)
1f44731
# Module
eb41fb8
BuildRequires:	perl(Carp)
fd1e2be
BuildRequires:	perl(constant)
1f44731
BuildRequires:	perl(Exporter) >= 5.57
eb41fb8
BuildRequires:	perl(Scalar::Util)
1f44731
BuildRequires:	perl(strict)
1f44731
BuildRequires:	perl(warnings)
1f44731
# Test Suite
fd1e2be
BuildRequires:	perl(File::Find)
c8e2db4
BuildRequires:	perl(File::Spec)
fd1e2be
BuildRequires:	perl(IPC::Open2)
eb41fb8
BuildRequires:	perl(Ref::Util::XS)
fd1e2be
BuildRequires:	perl(Test::More) >= 0.96
adea1ed
%if %{with perl_Ref_Util_enables_optional_test}
8dc0fdd
# Optional Tests
c8e2db4
BuildRequires:	perl(B::Concise)
c8e2db4
BuildRequires:	perl(CPAN::Meta) >= 2.120900
8dc0fdd
BuildRequires:	perl(Readonly)
adea1ed
%endif
1f44731
# Runtime
1f44731
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
eb41fb8
Requires:	perl(Ref::Util::XS)
1f44731
1f44731
%description
1f44731
Ref::Util introduces several functions to help identify references in a faster
1f44731
and smarter way.
1f44731
1f44731
%prep
1f44731
%setup -q -n Ref-Util-%{version}
1f44731
1f44731
%build
1f44731
perl Makefile.PL INSTALLDIRS=vendor
1f44731
make %{?_smp_mflags}
1f44731
1f44731
%install
1f44731
make pure_install DESTDIR=%{buildroot}
1f44731
find %{buildroot} -type f -name .packlist -delete
8aff749
%{_fixperms} -c %{buildroot}
1f44731
1f44731
%check
1f44731
make test
1f44731
1f44731
%files
1f44731
%if 0%{?_licensedir:1}
1f44731
%license LICENSE
1f44731
%else
1f44731
%doc LICENSE
1f44731
%endif
1f44731
%doc Changes README
eb41fb8
%{perl_vendorlib}/Ref/
1f44731
%{_mandir}/man3/Ref::Util.3*
eb41fb8
%{_mandir}/man3/Ref::Util::PP.3*
1f44731
1f44731
%changelog
d463228
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.204-12
d463228
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d463228
a837614
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.204-11
a837614
- Perl 5.34 rebuild
a837614
4d876d1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.204-10
4d876d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4d876d1
268a496
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.204-9
268a496
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
268a496
86fc468
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.204-8
86fc468
- Perl 5.32 rebuild
86fc468
b42d518
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.204-7
b42d518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b42d518
72b0b95
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.204-6
72b0b95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
72b0b95
fbe0b94
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.204-5
fbe0b94
- Perl 5.30 rebuild
fbe0b94
73ebb25
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.204-4
73ebb25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
73ebb25
45ffd41
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.204-3
45ffd41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
45ffd41
bad187c
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.204-2
bad187c
- Perl 5.28 rebuild
bad187c
8fb48ed
* Thu Apr 19 2018 Paul Howarth <paul@city-fan.org> - 0.204-1
8fb48ed
- Update to 0.204
8fb48ed
  - Fix Makefile.PL so that the 'install' sub is patched before WriteMakefile()
8fb48ed
    is called (GH#41)
8fb48ed
ded2de5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.203-4
ded2de5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ded2de5
031b184
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.203-3
031b184
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
031b184
47a8454
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.203-2
47a8454
- Perl 5.26 rebuild
47a8454
fd1e2be
* Mon May 15 2017 Paul Howarth <paul@city-fan.org> - 0.203-1
fd1e2be
- Update to 0.203
fd1e2be
  - Fix space/tab issue in Makefile
fd1e2be
  - Don't use DynamicPrereqs for unrelated Makefile.PL snippet
fd1e2be
  - Use of the Pure-Perl implementation can now be forced at runtime by setting
fd1e2be
    either $Ref::Util::IMPLEMENTATION or $ENV{PERL_REF_UTIL_IMPLEMENTATION} to
fd1e2be
    "XS"
fd1e2be
  - Fix is_*_formatref() error messages (GH#38)
fd1e2be
  - Speed enhancements for is_*_formatref() on 5.8+
fd1e2be
  - Restore 5.6 and 5.8 compatibility
fd1e2be
  - PP behaviour now matches XS for \v1.2.3 and \sub {}
fd1e2be
  - Updated documentation to reflect the PP/XS split
fd1e2be
eb41fb8
* Fri May 12 2017 Paul Howarth <paul@city-fan.org> - 0.200-1
eb41fb8
- Update to 0.200
eb41fb8
  - Reimplement in pure Perl, with a dynamic dependency on a new Ref::Util::XS
eb41fb8
    module that contains the fast XS implementation
eb41fb8
- This release by ARC → update source URL
eb41fb8
- Package is now noarch
eb41fb8
2691b31
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.113-2
2691b31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2691b31
a5d7d6f
* Tue Jan 17 2017 Paul Howarth <paul@city-fan.org> - 0.113-1
a5d7d6f
- Update to 0.113
a5d7d6f
  - Fix bugtracker link
a5d7d6f
60f714b
* Sun Jan 15 2017 Paul Howarth <paul@city-fan.org> - 0.112-1
60f714b
- Update to 0.112
60f714b
  - Fix compilation on Sun (Oracle) and some MSVC compilers (GH#35)
60f714b
c8e2db4
* Fri Dec 30 2016 Paul Howarth <paul@city-fan.org> - 0.111-1
c8e2db4
- Update to 0.111
c8e2db4
  - Fix test failure on 5.8.5 and under
c8e2db4
  - Moved to Dist::Zilla
c8e2db4
8aff749
* Thu Dec 29 2016 Paul Howarth <paul@city-fan.org> - 0.110-1
8aff749
- Update to 0.110
8aff749
  - Fix support of 5.8 (GH#29, GH#34)
8aff749
  - Additional optimizations
8aff749
  - More extensive test suite
8aff749
8dc0fdd
* Mon Aug 29 2016 Paul Howarth <paul@city-fan.org> - 0.101-1
8dc0fdd
- Update to 0.101
8dc0fdd
  - A test accidentally added a dependency on Readonly.pm - fixed! (GH#30)
8dc0fdd
  - Update README
8dc0fdd
d9acc03
* Sat Aug 27 2016 Paul Howarth <paul@city-fan.org> - 0.100-1
d9acc03
- Update to 0.100
d9acc03
  - Support situations in op-code implementation where the parameters do not
d9acc03
    come as a list
d9acc03
  - Fix memory leak in dangling op
d9acc03
  - Support magic (tied variables)
d9acc03
  - Rework op implementation
d9acc03
  - Speed up by changing the top of the stack instead of POPing and PUSHing
d9acc03
  - Update ppport.h file from Devel::PPPort and remove the copy of SVRXOK since
d9acc03
    it's now available
d9acc03
  - Add license in Pod
d9acc03
  - Specify minimum version of perl (5.6.2)
d9acc03
1f44731
* Thu Jul 28 2016 Paul Howarth <paul@city-fan.org> - 0.020-2
1f44731
- Sanitize for Fedora submission
1f44731
1f44731
* Thu Jul 28 2016 Paul Howarth <paul@city-fan.org> - 0.020-1
1f44731
- Initial RPM version