From 68fbca819e9afedc51c3e5c3560a18c85da5eac2 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 09:11:33 -0400 Subject: [PATCH] import perl-Class-Tiny-1.006-6.el8 --- .gitignore | 1 + .perl-Class-Tiny.metadata | 1 + SPECS/perl-Class-Tiny.spec | 153 +++++++++++++++++++++++++++++++++++++ 3 files changed, 155 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-Class-Tiny.metadata create mode 100644 SPECS/perl-Class-Tiny.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c46294 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Class-Tiny-1.006.tar.gz diff --git a/.perl-Class-Tiny.metadata b/.perl-Class-Tiny.metadata new file mode 100644 index 0000000..bdf2237 --- /dev/null +++ b/.perl-Class-Tiny.metadata @@ -0,0 +1 @@ +28b1568276b9799b4a5f5536e812f3d7b6ccd2a5 SOURCES/Class-Tiny-1.006.tar.gz diff --git a/SPECS/perl-Class-Tiny.spec b/SPECS/perl-Class-Tiny.spec new file mode 100644 index 0000000..0b61a66 --- /dev/null +++ b/SPECS/perl-Class-Tiny.spec @@ -0,0 +1,153 @@ +# Run optional test +%if ! (0%{?rhel}) +%bcond_without perl_Class_Tiny_enables_optional_test +%else +%bcond_with perl_Class_Tiny_enables_optional_test +%endif + +Name: perl-Class-Tiny +Version: 1.006 +Release: 6%{?dist} +Summary: Minimalist class construction +License: ASL 2.0 +URL: http://search.cpan.org/dist/Class-Tiny/ +Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Class-Tiny-%{version}.tar.gz +BuildArch: noarch +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.6 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time +BuildRequires: perl(Carp) +# Devel::GlobalDestruction not needed on Perl >= 5.14 +# mro on Perl >= 5.10 +BuildRequires: perl(mro) +# Tests +BuildRequires: perl(base) +# CPAN::Meta 2.120900 not helpful +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Spec) +BuildRequires: perl(lib) +BuildRequires: perl(subs) +BuildRequires: perl(Test::More) >= 0.96 +%if %{with perl_Class_Tiny_enables_optional_test} +# Optional test +BuildRequires: perl(Test::FailWarnings) +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +# Devel::GlobalDestruction not needed on Perl >= 5.14 +# mro on Perl >= 5.10 +Requires: perl(mro) + +# Filter from requires +# Devel::GlobalDestruction not needed on Perl >= 5.14 +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Devel::GlobalDestruction\\) + +%description +This module offers a minimalist class construction kit in around 120 lines +of code. Here is a list of features: + +* defines attributes via import arguments +* generates read-write accessors +* supports lazy attribute defaults +* supports custom accessors +* superclass provides a standard new constructor +* new takes a hash reference or list of key/value pairs +* new has heuristics to catch constructor attribute typos +* new calls BUILD for each class from parent to child +* superclass provides a DESTROY method +* DESTROY calls DEMOLISH for each class from child to parent + + +%prep +%setup -q -n Class-Tiny-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc Changes CONTRIBUTING.mkdn README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Feb 08 2018 Fedora Release Engineering - 1.006-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Dec 07 2017 Petr Pisar - 1.006-5 +- Modernize spec file + +* Thu Jul 27 2017 Fedora Release Engineering - 1.006-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 1.006-3 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.006-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Sep 12 2016 Jitka Plesnikova - 1.006-1 +- 1.006 bump + +* Sun May 15 2016 Jitka Plesnikova - 1.004-3 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.004-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Nov 02 2015 Jitka Plesnikova - 1.004-1 +- 1.004 bump + +* Thu Jun 18 2015 Fedora Release Engineering - 1.001-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jun 04 2015 Jitka Plesnikova - 1.001-2 +- Perl 5.22 rebuild + +* Tue Feb 10 2015 Jitka Plesnikova - 1.001-1 +- 1.001 bump + +* Wed Aug 27 2014 Jitka Plesnikova - 1.000-2 +- Perl 5.20 rebuild + +* Tue Jul 29 2014 Jitka Plesnikova - 1.000-1 +- 1.000 bump + +* Wed Jul 16 2014 Jitka Plesnikova - 0.015-1 +- 0.015 bump + +* Sat Jun 07 2014 Fedora Release Engineering - 0.014-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Nov 29 2013 Jitka Plesnikova - 0.014-1 +- 0.014 bump + +* Thu Nov 28 2013 Jitka Plesnikova - 0.013-1 +- 0.013 bump + +* Sun Nov 03 2013 Jitka Plesnikova - 0.012-1 +- 0.012 bump + +* Thu Sep 26 2013 Jitka Plesnikova - 0.011-1 +- 0.011 bump + +* Thu Sep 19 2013 Jitka Plesnikova - 0.010-1 +- 0.010 bump + +* Tue Sep 17 2013 Jitka Plesnikova - 0.009-1 +- 0.009 bump + +* Mon Sep 16 2013 Jitka Plesnikova - 0.008-1 +- Specfile autogenerated by cpanspec 1.78.