8c83a2
# Run optional test
8c83a2
%if ! (0%{?rhel})
8c83a2
%bcond_without perl_Devel_Size_enables_optional_test
8c83a2
%else
8c83a2
%bcond_with perl_Devel_Size_enables_optional_test
8c83a2
%endif
8c83a2
8c83a2
Name:           perl-Devel-Size
8c83a2
Version:        0.83
8c83a2
Release:        10%{?dist}
8c83a2
Summary:        Perl extension for finding the memory usage of Perl variables
8c83a2
License:        GPL+ or Artistic
8c83a2
URL:            https://metacpan.org/release/Devel-Size
8c83a2
Source0:        https://cpan.metacpan.org/modules/by-module/Devel/Devel-Size-%{version}.tar.gz
8c83a2
BuildRequires:  findutils
8c83a2
BuildRequires:  gcc
8c83a2
BuildRequires:  make
8c83a2
BuildRequires:  perl-devel
8c83a2
BuildRequires:  perl-generators
8c83a2
BuildRequires:  perl-interpreter
8c83a2
BuildRequires:  perl(:VERSION) >= 5.5
8c83a2
BuildRequires:  perl(Config)
8c83a2
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
8c83a2
BuildRequires:  perl(strict)
8c83a2
# Run-time:
8c83a2
BuildRequires:  perl(Exporter)
8c83a2
BuildRequires:  perl(vars)
8c83a2
BuildRequires:  perl(XSLoader)
8c83a2
# Tests:
8c83a2
BuildRequires:  perl(constant)
8c83a2
BuildRequires:  perl(feature)
8c83a2
BuildRequires:  perl(lib)
8c83a2
BuildRequires:  perl(Scalar::Util)
8c83a2
BuildRequires:  perl(Test::More)
8c83a2
BuildRequires:  perl(Tie::Scalar)
8c83a2
%if %{with perl_Devel_Size_enables_optional_test}
8c83a2
# Optional tests:
8c83a2
BuildRequires:  perl(Test::Pod)
8c83a2
BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
8c83a2
# Required by t/warnings.t, but not on CPAN
8c83a2
#BuildRequires:  perl(Test::PerlRun)
8c83a2
%endif
8c83a2
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
8c83a2
8c83a2
%?perl_default_filter
8c83a2
8c83a2
%description
8c83a2
This module figures out the real sizes of Perl variables in bytes. Call
8c83a2
functions with a reference to the variable you want the size of. If the
8c83a2
variable is a plain scalar it returns the size of the scalar. If the
8c83a2
variable is a hash or an array, use a reference when calling.
8c83a2
8c83a2
%prep
8c83a2
%setup -q -n Devel-Size-%{version}
8c83a2
8c83a2
%build
8c83a2
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}"
8c83a2
%{make_build}
8c83a2
8c83a2
%install
8c83a2
%{make_install}
8c83a2
find %{buildroot} -type f -name '*.bs' -size 0 -delete
8c83a2
%{_fixperms} %{buildroot}/*
8c83a2
8c83a2
%check
8c83a2
make test
8c83a2
8c83a2
%files
8c83a2
%doc CHANGES
8c83a2
%{perl_vendorarch}/auto/*
8c83a2
%{perl_vendorarch}/Devel*
8c83a2
%{_mandir}/man3/*
8c83a2
8c83a2
%changelog
8c83a2
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.83-10
8c83a2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
8c83a2
  Related: rhbz#1991688
8c83a2
8c83a2
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.83-9
8c83a2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
8c83a2
8c83a2
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.83-8
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8c83a2
8c83a2
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.83-7
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8c83a2
8c83a2
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.83-6
8c83a2
- Perl 5.32 rebuild
8c83a2
8c83a2
* Tue Feb 04 2020 Tom Stellard <tstellar@redhat.com> - 0.83-5
8c83a2
- Spec file cleanups: Use make_build and make_install macros
8c83a2
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
8c83a2
- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake
8c83a2
8c83a2
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.83-4
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8c83a2
8c83a2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.83-3
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8c83a2
8c83a2
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.83-2
8c83a2
- Perl 5.30 rebuild
8c83a2
8c83a2
* Wed May 22 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.83-1
8c83a2
- 0.83 bump
8c83a2
8c83a2
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.82-4
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8c83a2
8c83a2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.82-3
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8c83a2
8c83a2
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.82-2
8c83a2
- Perl 5.28 rebuild
8c83a2
8c83a2
* Sat Jun 23 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.82-1
8c83a2
- 0.82 bump
8c83a2
8c83a2
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.81-2
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8c83a2
8c83a2
* Thu Aug 10 2017 Petr Pisar <ppisar@redhat.com> - 0.81-1
8c83a2
- 0.81 bump
8c83a2
8c83a2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.80-9
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8c83a2
8c83a2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.80-8
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8c83a2
8c83a2
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.80-7
8c83a2
- Perl 5.26 rebuild
8c83a2
8c83a2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.80-6
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8c83a2
8c83a2
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.80-5
8c83a2
- Perl 5.24 rebuild
8c83a2
8c83a2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.80-4
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8c83a2
8c83a2
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.80-3
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8c83a2
8c83a2
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.80-2
8c83a2
- Perl 5.22 rebuild
8c83a2
8c83a2
* Tue Apr 28 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.80-1
8c83a2
- 0.80 bump
8c83a2
8c83a2
* Fri Jan 09 2015 Petr Pisar <ppisar@redhat.com> - 0.79-7
8c83a2
- Specify all dependencies
8c83a2
8c83a2
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.79-6
8c83a2
- Perl 5.20 rebuild
8c83a2
- Added patches provided by upstream
8c83a2
8c83a2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.79-5
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8c83a2
8c83a2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.79-4
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8c83a2
8c83a2
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.79-3
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8c83a2
8c83a2
* Sat Jul 20 2013 Petr Pisar <ppisar@redhat.com> - 0.79-2
8c83a2
- Perl 5.18 rebuild
8c83a2
8c83a2
* Tue May 28 2013 Robin Lee <cheeselee@fedoraproject.org> - 0.79-1
8c83a2
- Update to 0.79
8c83a2
- BR: perl(XSLoader)
8c83a2
8c83a2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.78-2
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8c83a2
8c83a2
* Wed Aug 22 2012 Robin Lee <cheeselee@fedoraproject.org> 0.78-1
8c83a2
- Update to 0.78
8c83a2
8c83a2
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.77-4
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8c83a2
8c83a2
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 0.77-3
8c83a2
- Perl 5.16 rebuild
8c83a2
8c83a2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.77-2
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8c83a2
8c83a2
* Sat Oct 08 2011 Iain Arnell <iarnell@gmail.com> 0.77-1
8c83a2
- update to latest upstream version
8c83a2
- clean up spec for modern rpmbuild
8c83a2
- use perl_default_filter
8c83a2
8c83a2
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.71-8
8c83a2
- Perl mass rebuild
8c83a2
8c83a2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.71-7
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8c83a2
8c83a2
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.71-6
8c83a2
- 661697 rebuild for fixing problems with vendorach/lib
8c83a2
8c83a2
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.71-5
8c83a2
- Mass rebuild with perl-5.12.0
8c83a2
8c83a2
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.71-4
8c83a2
- Mass rebuild with perl-5.12.0
8c83a2
8c83a2
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.71-3
8c83a2
- rebuild against perl 5.10.1
8c83a2
8c83a2
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.71-2
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8c83a2
8c83a2
* Thu Apr 02 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.71-1
8c83a2
- update to 0.71
8c83a2
8c83a2
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.69-2
8c83a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8c83a2
8c83a2
* Tue Mar  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.69-1
8c83a2
- update to 0.69
8c83a2
8c83a2
* Tue Mar  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.68-4
8c83a2
- rebuild for new perl
8c83a2
8c83a2
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.68-3
8c83a2
- Autorebuild for GCC 4.3
8c83a2
8c83a2
* Tue Aug 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.68-2
8c83a2
- bump
8c83a2
8c83a2
* Thu Aug 09 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.68-1
8c83a2
- update to 0.68
8c83a2
- refactor perl BR's
8c83a2
8c83a2
* Thu Mar 29 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.67-1
8c83a2
- update to 0.67
8c83a2
8c83a2
* Sat Mar 10 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.66-1
8c83a2
- update to 0.66 (0.65 update never pushed due to various issues)
8c83a2
- misc spec cleanups
8c83a2
- add br on perl(ExtUtils::MakeMaker) to satisfy any perl/perl-devel split
8c83a2
8c83a2
* Sun Feb 25 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.65-1
8c83a2
- update to 0.65
8c83a2
8c83a2
* Sun Sep 17 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.64-2
8c83a2
- bump
8c83a2
8c83a2
* Wed Aug 16 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.64-1
8c83a2
- Specfile autogenerated by cpanspec 1.68.