mirror of
https://github.com/YellowJacketLinux/LFS.git
synced 2025-01-23 14:32:15 +08:00
more perl modules
This commit is contained in:
parent
3575e9bbea
commit
eb5797bcfb
75
SPECS/perl-Business-ISBN-Data.spec
Normal file
75
SPECS/perl-Business-ISBN-Data.spec
Normal file
@ -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 <anymouseprophet@gmail.com> - 20230426.001-0.rc1
|
||||
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
75
SPECS/perl-Business-ISBN.spec
Normal file
75
SPECS/perl-Business-ISBN.spec
Normal file
@ -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 <anymouseprophet@gmail.com> - 3.008-0.rc1
|
||||
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
80
SPECS/perl-Test-Fatal.spec
Normal file
80
SPECS/perl-Test-Fatal.spec
Normal file
@ -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 <anymouseprophet@gmail.com> - 0.017-0.rc1
|
||||
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
67
SPECS/perl-Test-Needs.spec
Normal file
67
SPECS/perl-Test-Needs.spec
Normal file
@ -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 <anymouseprophet@gmail.com> - 0.002010-0.rc1
|
||||
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
70
SPECS/perl-Test-RequiresInternet.spec
Normal file
70
SPECS/perl-Test-RequiresInternet.spec
Normal file
@ -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 <anymouseprophet@gmail.com> - 0.05-0.rc1
|
||||
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
Loading…
Reference in New Issue
Block a user