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