Init package
This commit is contained in:
parent
ea61a81a04
commit
cab6de2657
BIN
Exception-Class-1.45.tar.gz
Normal file
BIN
Exception-Class-1.45.tar.gz
Normal file
Binary file not shown.
95
perl-Exception-Class.spec
Normal file
95
perl-Exception-Class.spec
Normal file
@ -0,0 +1,95 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
|
||||
Name: perl-Exception-Class
|
||||
Version: 1.45
|
||||
Release: 1
|
||||
Summary: Module that allows you to declare real exception classes in Perl
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Exception-Class
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Exception/Exception-Class-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Class::Data::Inheritable) >= 0.02
|
||||
BuildRequires: perl(Devel::StackTrace) >= 2.00
|
||||
BuildRequires: perl(overload)
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
||||
BuildRequires: perl(CPAN::Meta::Prereqs)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
Exception::Class allows you to declare exception hierarchies in your
|
||||
modules in a "Java-esque" manner.
|
||||
|
||||
%package help
|
||||
Summary: Module that allows you to declare real exception classes in Perl
|
||||
Provides: perl-Exception-Class-doc
|
||||
|
||||
%description help
|
||||
Exception::Class allows you to declare exception hierarchies in your
|
||||
modules in a "Java-esque" manner.
|
||||
|
||||
%prep
|
||||
%setup -q -n Exception-Class-%{version}
|
||||
|
||||
%build
|
||||
export PERL_MM_OPT=""
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
export PERL_MM_OPT=""
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
pushd %{buildroot}
|
||||
touch filelist.lst
|
||||
if [ -d usr/bin ];then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ];then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ];then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib ];then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc azure-pipelines.yml Changes CODE_OF_CONDUCT.md CONTRIBUTING.md cpanfile dist.ini LICENSE META.json perlcriticrc perltidyrc precious.toml README.md
|
||||
%{perl_vendorlib}/*
|
||||
|
||||
%files help
|
||||
%{_mandir}/*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 1.45-1
|
||||
- Init package
|
||||
Loading…
x
Reference in New Issue
Block a user