94 lines
2.3 KiB
RPMSpec
94 lines
2.3 KiB
RPMSpec
%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
|