Name: perl-Class-Prototyped Version: 1.16 Release: 1%{?dist} Summary: Fast prototype-based OO programming in Perl License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Class-Prototyped Source0: https://cpan.metacpan.org/authors/id/T/TE/TEVERETT/Class-Prototyped-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Module::Build) # Run-time: BuildRequires: perl(Carp) # GraphViz not used for tests # IO::File not used for tests BuildRequires: perl(overload) BuildRequires: perl(strict) # Tests: BuildRequires: perl(Data::Dumper) BuildRequires: perl(IO::File) BuildRequires: perl(lib) BuildRequires: perl(Test) %{?perl_default_filter} %description This package provides for efficient and simple prototype-based programming in Perl. You can provide different subroutines for each object, and also have objects inherit their behavior and state from another object. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %autosetup -p1 -n Class-Prototyped-%{version} # Documentation and libraries should not be executable chmod -x perf/* examples/* Changes lib/Class/*.pm lib/Class/Prototyped/* %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 %doc Changes README perf/ examples/ %dir %{perl_vendorlib}/Class %{perl_vendorlib}/Class/Prototyped %{perl_vendorlib}/Class/Prototyped.pm %{_mandir}/man3/Class::Prototyped.* %{_mandir}/man3/Class::Prototyped::* %files tests %{_libexecdir}/%{name} %changelog * Wed Sep 25 2024 Petr Pisar - 1.16-1 - 1.16 bump * Mon Sep 23 2024 Petr Pisar - 1.15-1 - 1.15 bump * Tue Sep 03 2024 Petr Pisar - 1.13-32 - Modernize a spec file - Package the tests * Thu Jul 18 2024 Fedora Release Engineering - 1.13-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 1.13-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.13-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.13-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 1.13-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.13-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 1.13-25 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.13-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.13-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 1.13-22 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.13-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.13-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 1.13-19 - Perl 5.32 rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.13-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.13-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 1.13-16 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.13-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.13-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 1.13-13 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 1.13-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.13-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 1.13-10 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.13-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sat May 14 2016 Jitka Plesnikova - 1.13-8 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.13-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Oct 23 2015 Petr Pisar - 1.13-6 - Remove useless filter - Specify all dependencies * Thu Jun 18 2015 Fedora Release Engineering - 1.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 05 2015 Jitka Plesnikova - 1.13-4 - Perl 5.22 rebuild * Wed Aug 27 2014 Jitka Plesnikova - 1.13-3 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Sep 02 2013 Petr Pisar - 1.13-1 - 1.13 bump * Sat Aug 03 2013 Fedora Release Engineering - 1.11-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 1.11-16 - Perl 5.18 rebuild - Work around hash randomization (CPAN RT#84317) - Modernize spec file * Thu Feb 14 2013 Fedora Release Engineering - 1.11-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 1.11-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jun 08 2012 Petr Pisar - 1.11-13 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1.11-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jul 22 2011 Petr Pisar - 1.11-11 - RPM 4.9 dependency filtering added * Fri Jun 17 2011 Marcela Mašláňová - 1.11-10 - Perl mass rebuild * Mon Feb 14 2011 Marcela Mašláňová - 1.11-9 - fix broken filter * Tue Feb 08 2011 Fedora Release Engineering - 1.11-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 15 2010 Marcela Maslanova - 1.11-7 - 661697 rebuild for fixing problems with vendorach/lib * Fri Apr 30 2010 Marcela Maslanova - 1.11-6 - Mass rebuild with perl-5.12.0 * Fri Dec 4 2009 Stepan Kasal - 1.11-5 - rebuild against perl 5.10.1 * Sat Jul 25 2009 Fedora Release Engineering - 1.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun Mar 8 2009 Lubomir Rintel 1.11-3 - Fix permissions - Fix requires/provides * Thu Feb 26 2009 Fedora Release Engineering - 1.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Mar 5 2008 Tom "spot" Callaway 1.11-1 - 1.11 * Wed Mar 5 2008 Tom "spot" Callaway 1.10-3 - rebuild for new perl * Mon Apr 30 2007 Chris Weyl 1.10-2 - bump * Mon Apr 09 2007 Chris Weyl 1.10-1 - Specfile autogenerated by cpanspec 1.70.