!1 Init package

From: @misaka00251 
Reviewed-by: @myeuler 
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2022-09-15 14:46:09 +00:00 committed by Gitee
commit 705de2dbc7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 93 additions and 0 deletions

BIN
Devel-LexAlias-0.05.tar.gz Normal file

Binary file not shown.

93
perl-Devel-LexAlias.spec Normal file
View File

@ -0,0 +1,93 @@
%global _empty_manifest_terminate_build 0
Name: perl-Devel-LexAlias
Version: 0.05
Release: 1
Summary: Alias lexical variables
License: GPL+ or Artistic
URL: https://metacpan.org/release/Devel-LexAlias
Source0: https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/Devel-LexAlias-%{version}.tar.gz
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(strict)
BuildRequires: perl(Devel::Caller) >= 0.03
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%{?perl_default_filter}
%description
Devel::LexAlias provides the ability to alias a lexical variable in a
subroutines scope to one of your choosing.
%package help
Summary: Alias lexical variables
Provides: perl-Devel-LexAlias-doc
%description help
Devel::LexAlias provides the ability to alias a lexical variable in a
subroutines scope to one of your choosing.
%prep
%setup -q -n Devel-LexAlias-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
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 -type f -name '*.bs' -size 0 -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
# Test will fail for now
# make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Devel*
%files help
%{_mandir}/*
%changelog
* Wed Jun 29 2022 misaka00251 <misaka00251@misakanet.cn> - 0.05-1
- Init package