Name: perl-Class-Measure Version: 0.10 Release: 4%{?dist} Summary: Create, compare and convert units of measurement License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Class-Measure Source0: https://cpan.metacpan.org/authors/id/B/BL/BLUEFEET/Class-Measure-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.8.1 BuildRequires: perl(Config) BuildRequires: perl(Module::Build::Tiny) >= 0.035 BuildRequires: perl(strict) # Run-time: BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(overload) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Sub::Exporter) >= 0.982 BuildRequires: perl(warnings) # Tests: BuildRequires: perl(Test2::V0) >= 0.000094 Requires: perl(Sub::Exporter) >= 0.982 # Remove under-specified dependencies %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Sub::Exporter|Test2::V0)\\) %description This Perl module allows you to create, compare and convert units of measurement. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Requires: perl(base) Requires: perl(Test2::V0) >= 0.000094 %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Class-Measure-%{version} # Normalize shebangs 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 Build.PL --installdirs=vendor ./Build %install ./Build install --destdir=%{buildroot} --create_packlist=0 %{_fixperms} %{buildroot}/* # 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 %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') ./Build test %files %license LICENSE %doc Changes README.md %dir %{perl_vendorlib}/Class %{perl_vendorlib}/Class/Measure %{perl_vendorlib}/Class/Measure.pm %{_mandir}/man3/Class::Measure.* %{_mandir}/man3/Class::Measure::* %files tests %{_libexecdir}/%{name} %changelog * Thu Jan 25 2024 Fedora Release Engineering - 0.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 08 2023 Petr Pisar - 0.10-1 - 0.10 bump - Package the tests * Fri Jan 20 2023 Fedora Release Engineering - 0.09-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.09-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.09-5 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.09-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.09-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.09-2 - Perl 5.34 rebuild * Mon Feb 01 2021 Petr Pisar - 0.09-1 - 0.09 bump * Wed Jan 27 2021 Fedora Release Engineering - 0.08-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Aug 18 2020 Petr Pisar - 0.08-1 - 0.08 bump * Tue Jul 28 2020 Fedora Release Engineering - 0.07-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.07-5 - Perl 5.32 rebuild * Wed Jan 29 2020 Fedora Release Engineering - 0.07-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.07-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.07-2 - Perl 5.30 rebuild * Thu Mar 14 2019 Petr Pisar - 0.07-1 - 0.07 bump * Fri Mar 08 2019 Petr Pisar 0.06-1 - Specfile autogenerated by cpanspec 1.78.