Package init
This commit is contained in:
commit
af3f89e91b
BIN
autodie-2.29.tar.gz
Normal file
BIN
autodie-2.29.tar.gz
Normal file
Binary file not shown.
54
perl-autodie.spec
Normal file
54
perl-autodie.spec
Normal file
@ -0,0 +1,54 @@
|
||||
Name: perl-autodie
|
||||
Version: 2.29
|
||||
Release: 397
|
||||
Summary: Replace functions with ones that succeed or die with lexical scope
|
||||
License: GPL or Artistic
|
||||
URL: https://metacpan.org/release/autodie
|
||||
Source0: https://github.com/pjf/autodie/archive/v%{version}.tar.gz#/autodie-%{version}.tar.gz
|
||||
|
||||
#prereqs
|
||||
BuildRequires: gcc perl(ExtUtils::MakeMaker) perl-interpreter perl-generators
|
||||
#for test
|
||||
BuildRequires: perl(Test::More) perl(BSD::Resource) perl(IPC::System::Simple) >= 0.12 perl(Import::Into) >= 1.002004 perl(Sub::Identify)
|
||||
|
||||
Requires: perl(B) perl(Fcntl) perl(POSIX) perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2)) perl(IPC::System::Simple) >= 0.12
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%global __requires_exclude ^perl\\(lib\\)$
|
||||
|
||||
%description
|
||||
The autodie pragma provides a convenient way to replace functions that normally return
|
||||
false on failure with equivalents that throw an exception on failure.
|
||||
|
||||
The autodie pragma has lexical scope, meaning that functions and subroutines altered with
|
||||
autodie will only change their behaviour until the end of the enclosing block, file, or eval.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n autodie-%{version} -p1
|
||||
find -type f -exec chmod -x {} \;
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test TEST_VERBOSE=1
|
||||
|
||||
%files
|
||||
%license LICENSE AUTHORS README.md
|
||||
%{perl_vendorlib}/*
|
||||
|
||||
%files help
|
||||
%doc Changes
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Tue Aug 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.29-397
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user