Name: perl-Sys-MemInfo Version: 0.99 Release: 23%{?dist} Summary: Memory information as Perl module License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Sys-MemInfo Source0: https://cpan.metacpan.org/authors/id/S/SC/SCRESTO/Sys-MemInfo-%{version}.tar.gz BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.6 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(File::Copy) # Run-time: BuildRequires: perl(DynaLoader) BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Tests: BuildRequires: perl(Data::Dumper) BuildRequires: perl(Test::More) %{?perl_default_filter} %description Sys::MemInfo returns the total amount of free and used physical memory in bytes in totalmem and freemem variables. %package tests Summary: Tests for %{name} BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Sys-MemInfo-%{version} # Help generators to recognize Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" %{make_build} %install %{make_install} # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %{_fixperms} %{buildroot}/* %check make test %files %license LICENSE %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Sys* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Fri Jan 20 2023 Fedora Release Engineering - 0.99-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Dec 10 2022 Michal Josef Špaček - 0.99-22 - Package tests - Simplify install phase - Update license to SPDX format * Fri Jul 22 2022 Fedora Release Engineering - 0.99-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.99-20 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.99-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.99-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.99-17 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.99-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Oct 29 2020 Petr Pisar - 0.99-15 - Modernize a spec file * Tue Jul 28 2020 Fedora Release Engineering - 0.99-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 0.99-13 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.99-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.99-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 0.99-10 - Perl 5.30 rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.99-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.99-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 0.99-7 - Perl 5.28 rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.99-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.99-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.99-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.99-3 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.99-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Oct 17 2016 Jan Synáček - 0.99-1 - Update to 0.99 (#1385279) * Sun May 15 2016 Jitka Plesnikova - 0.98-3 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.98-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Jitka Plesnikova - 0.98-1 - 0.98 bump * Thu Jun 18 2015 Fedora Release Engineering - 0.91-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 03 2015 Jitka Plesnikova - 0.91-12 - Perl 5.22 rebuild * Wed Aug 27 2014 Jitka Plesnikova - 0.91-11 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.91-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.91-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.91-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 0.91-7 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.91-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Nov 05 2012 Petr Pisar - 0.91-5 - Change license from (LGPLv2+) to ((GPLv1+ or Artistic) and LGPLv2+) (CPAN RT #80636) * Mon Nov 05 2012 Petr Pisar - 0.91-4 - Improve description - Specify all dependencies * Fri Jul 20 2012 Fedora Release Engineering - 0.91-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 11 2012 Petr Pisar - 0.91-2 - Perl 5.16 rebuild * Fri May 04 2012 jsynacek@redhat.com 0.91-1 - Initial release