diff --git a/SPECS/perl-Business-ISBN-Data.spec b/SPECS/perl-Business-ISBN-Data.spec new file mode 100644 index 0000000..3eb96f0 --- /dev/null +++ b/SPECS/perl-Business-ISBN-Data.spec @@ -0,0 +1,75 @@ +%global cpanname Business-ISBN-Data + +Name: perl-%{cpanname} +Version: 20230426.001 +Release: %{?repo}0.rc1%{?dist} +Summary: Data pack for Business-ISBN +BuildArch: noarch + +Group: Development/Libraries +License: Artistic-2.0 +URL: https://metacpan.org/pod/Business::ISBN::Data +Source0: https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Business-ISBN-Data-%{version}.tar.gz + +BuildRequires: perl-devel +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(File::Spec::Functions) +# for test +%if 0%{?runtests:1} == 1 +BuildRequires: perl(Test::More) +BuildRequires: perl(Carp) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Spec::Functions) +%endif +# runtime +Requires: perl(Carp) +Requires: perl(File::Basename) +Requires: perl(File::Spec::Functions) +# /end runtime +# Change both perl5_API below to perl5_ABI for binary packages +%if 0%{?perl5_API:1} == 1 +Requires: %{perl5_API} +%endif + +%description +Business::ISBN::Data - data pack for Business::ISBN + +%prep +%setup -n %{cpanname}-%{version} + + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%check +%if 0%{?runtests:1} == 1 +make test > %{name}-make.test.log 2>&1 +%else +echo "make test not run during package build." > %{name}-make.test.log +%endif + +%install +make install DESTDIR=%{buildroot} + +# if binary +#%{_fixperms} %{buildroot}%{perl5_vendorarch} + + +%files +%defattr(-,root,root,-) +%license LICENSE +%dir %{perl5_vendorlib}/Business +%dir %{perl5_vendorlib}/Business/ISBN +%attr(0444,root,root) %{perl5_vendorlib}/Business/ISBN/Data.pm +%attr(0444,root,root) %{perl5_vendorlib}/Business/ISBN/RangeMessage.url +%attr(0444,root,root) %{perl5_vendorlib}/Business/ISBN/RangeMessage.xml +%attr(0644,root,root) %{_mandir}/man3/Business::ISBN::Data.3* +%doc Changes LICENSE examples +%doc %{name}-make.test.log + + + +%changelog +* Fri Apr 28 Michael A. Peters - 20230426.001-0.rc1 +- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3) diff --git a/SPECS/perl-Business-ISBN.spec b/SPECS/perl-Business-ISBN.spec new file mode 100644 index 0000000..3f9d0fd --- /dev/null +++ b/SPECS/perl-Business-ISBN.spec @@ -0,0 +1,75 @@ +%global cpanname Business-ISBN + +Name: perl-%{cpanname} +Version: 3.008 +Release: %{?repo}0.rc1%{?dist} +Summary: work with International Standard Book Numbers +BuildArch: noarch + +Group: Development/Libraries +License: Artistic-2.0 +URL: https://metacpan.org/dist/Business-ISBN +Source0: https://cpan.metacpan.org/authors/id/B/BD/BDFOY/%{cpanname}-%{version}.tar.gz + +BuildRequires: perl-devel +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(File::Spec::Functions) +# for test +%if 0%{?runtests:1} == 1 +BuildRequires: perl(Test::More) +BuildRequires: perl(Business::ISBN::Data) >= 20230322.001 +%endif +# runtime +Requires: perl(Business::ISBN::Data) >= 20230322.001 +# /end runtime +# Change both perl5_API below to perl5_ABI for binary packages +%if 0%{?perl5_API:1} == 1 +Requires: %{perl5_API} +%endif + +%description +This modules handles International Standard Book Numbers, including +ISBN-10 and ISBN-13. + +The data come from Business::ISBN::Data, which means you can update the +data separately from the code. Also, you can use Business::ISBN::Data +with whatever RangeMessage.xml you like if you have updated data. See +that module for details. + +%prep +%setup -n %{cpanname}-%{version} + + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%check +%if 0%{?runtests:1} == 1 +make test > %{name}-make.test.log 2>&1 +%else +echo "make test not run during package build." > %{name}-make.test.log +%endif + +%install +make install DESTDIR=%{buildroot} + + +%files +%defattr(-,root,root,-) +%dir %{perl5_vendorlib}/Business +%attr(0444,root,root) %{perl5_vendorlib}/Business/ISBN.pm +%attr(0444,root,root) %{perl5_vendorlib}/Business/ISBN10.pm +%attr(0444,root,root) %{perl5_vendorlib}/Business/ISBN13.pm +%attr(0644,root,root) %{_mandir}/man3/Business::ISBN.3* +%attr(0644,root,root) %{_mandir}/man3/Business::ISBN10.3* +%attr(0644,root,root) %{_mandir}/man3/Business::ISBN13.3* +%license LICENSE +%doc Changes LICENSE examples +%doc %{name}-make.test.log + + + +%changelog +* Fri Apr 28 Michael A. Peters - 3.008-0.rc1 +- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3) diff --git a/SPECS/perl-Test-Fatal.spec b/SPECS/perl-Test-Fatal.spec new file mode 100644 index 0000000..e2fa2d4 --- /dev/null +++ b/SPECS/perl-Test-Fatal.spec @@ -0,0 +1,80 @@ +%global cpanname Test-Fatal + +Name: perl-%{cpanname} +Version: 0.017 +Release: %{?repo}0.rc1%{?dist} +Summary: incredibly simple helpers for testing code with exceptions +BuildArch: noarch + +Group: Development/Libraries +License: GPL-1.0-or-later or Artistic-1.0-Perl +URL: https://metacpan.org/dist/Test-Fatal +Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpanname}-%{version}.tar.gz + +BuildRequires: perl-devel +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78 +# for test +%if 0%{?runtests:1} == 1 +BuildRequires: perl(Test::More) >= 0.65 +BuildRequires: perl(CPAN::Meta) >= 2.120900 +BuildRequires: perl(File::Spec) +BuildRequires: perl(Test::Builder::Tester) +BuildRequires: perl(overload) +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) >= 5.57 +BuildRequires: perl(Test::Builder) +BuildRequires: perl(Try::Tiny) >= 0.07 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +%endif +# runtime +Requires: perl(Carp) +Requires: perl(Exporter) >= 5.57 +Requires: perl(Test::Builder) +Requires: perl(Try::Tiny) >= 0.07 +Requires: perl(strict) +Requires: perl(warnings) +# /end runtime +# Change both perl5_API below to perl5_ABI for binary packages +%if 0%{?perl5_API:1} == 1 +Requires: %{perl5_API} +%endif + +%description +Test::Fatal is an alternative to the popular Test::Exception. It does +much less, but should allow greater flexibility in testing exception- +throwing code with about the same amount of typing. + +%prep +%setup -n %{cpanname}-%{version} + + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%check +%if 0%{?runtests:1} == 1 +make test > %{name}-make.test.log 2>&1 +%else +echo "make test not run during package build." > %{name}-make.test.log +%endif + +%install +make install DESTDIR=%{buildroot} + + +%files +%defattr(-,root,root,-) +%dir %{perl5_vendorlib}/Test +%attr(0444,root,root) %{perl5_vendorlib}/Test/Fatal.pm +%attr(0644,root,root) %{_mandir}/man3/Test::Fatal.3* +%license LICENSE +%doc Changes LICENSE README examples +%doc %{name}-make.test.log + + + +%changelog +* Fri Apr 28 2023 Michael A. Peters - 0.017-0.rc1 +- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3) diff --git a/SPECS/perl-Test-Needs.spec b/SPECS/perl-Test-Needs.spec new file mode 100644 index 0000000..6fdb214 --- /dev/null +++ b/SPECS/perl-Test-Needs.spec @@ -0,0 +1,67 @@ +%global cpanname Test-Needs + +Name: perl-%{cpanname} +Version: 0.002010 +Release: %{?repo}0.rc1%{?dist} +Summary: Skip tests when modules not available +BuildArch: noarch + +Group: Development/Libraries +License: GPL-1.0-or-later or Artistic-1.0-Perl +URL: https://metacpan.org/dist/Test-Needs +Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/Test-Needs-%{version}.tar.gz + +BuildRequires: perl-devel +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# for test +%if 0%{?runtests:1} == 1 +BuildRequires: perl(Test::More) +%endif +# runtime +# /end runtime +# Change both perl5_API below to perl5_ABI for binary packages +%if 0%{?perl5_API:1} == 1 +Requires: %{perl5_API} +%endif + +%description +Skip test scripts if modules are not available. The requested modules +will be loaded, and optionally have their versions checked. If the +module is missing, the test script will be skipped. Modules that are +found but fail to compile will exit with an error rather than skip. + + + +%prep +%setup -n %{cpanname}-%{version} + + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%check +%if 0%{?runtests:1} == 1 +make test > %{name}-make.test.log 2>&1 +%else +echo "make test not run during package build." > %{name}-make.test.log +%endif + +%install +make install DESTDIR=%{buildroot} + + +%files +%defattr(-,root,root,-) +%dir %{perl5_vendorlib}/Test +%attr(0444,root,root) %{perl5_vendorlib}/Test/Needs.pm +%attr(0644,root,root) %{_mandir}/man3/Test::Needs.3* +%license LICENSE +%doc Changes LICENSE README +%doc %{name}-make.test.log + + + +%changelog +* Fri Apr 28 2023 Michael A. Peters - 0.002010-0.rc1 +- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3) diff --git a/SPECS/perl-Test-RequiresInternet.spec b/SPECS/perl-Test-RequiresInternet.spec new file mode 100644 index 0000000..8697504 --- /dev/null +++ b/SPECS/perl-Test-RequiresInternet.spec @@ -0,0 +1,70 @@ +%global cpanname Test-RequiresInternet + +Name: perl-%{cpanname} +Version: 0.05 +Release: %{?repo}0.rc1%{?dist} +Summary: Easily test network connectivity +BuildArch: noarch + +Group: Development/Libraries +License: GPL-1.0-or-later or Artistic-1.0-Perl +URL: https://metacpan.org/dist/Test-RequiresInternet +Source0: https://cpan.metacpan.org/authors/id/M/MA/MALLEN/%{cpanname}-%{version}.tar.gz + +BuildRequires: perl-devel +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# for test +%if 0%{?runtests:1} == 1 +BuildRequires: perl(Test::More) +BuildRequires: perl(Socket) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +%endif +# runtime +Requires: perl(Socket) +Requires: perl(strict) +Requires: perl(warnings) +# /end runtime +# Change both perl5_API below to perl5_ABI for binary packages +%if 0%{?perl5_API:1} == 1 +Requires: %{perl5_API} +%endif + +%description +This module is intended to easily test network connectivity before +functional tests begin to non-local Internet resources. It does not +require any modules beyond those supplied in core Perl. + +%prep +%setup -n %{cpanname}-%{version} + + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%check +%if 0%{?runtests:1} == 1 +make test > %{name}-make.test.log 2>&1 +%else +echo "make test not run during package build." > %{name}-make.test.log +%endif + +%install +make install DESTDIR=%{buildroot} + + +%files +%defattr(-,root,root,-) +%dir %{perl5_vendorlib}/Test +%attr(0444,root,root) %{perl5_vendorlib}/Test/RequiresInternet.pm +%attr(0644,root,root) %{_mandir}/man3/Test::RequiresInternet.3* +%license LICENSE +%doc Changes LICENSE README +%doc %{name}-make.test.log + + + +%changelog +* Fri Apr 28 2023 Michael A. Peters - 0.05-0.rc1 +- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)