Package init
This commit is contained in:
parent
f0fe0143da
commit
8437bc14c6
BIN
UNIVERSAL-require-0.19.tar.gz
Normal file
BIN
UNIVERSAL-require-0.19.tar.gz
Normal file
Binary file not shown.
80
perl-UNIVERSAL-require.spec
Normal file
80
perl-UNIVERSAL-require.spec
Normal file
@ -0,0 +1,80 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: perl-UNIVERSAL-require
|
||||
Version: 0.19
|
||||
Release: 1
|
||||
Summary: Require() modules from a variable [deprecated]
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/UNIVERSAL-require/
|
||||
Source0: http://www.cpan.org/authors/id/N/NE/NEILB/UNIVERSAL-require-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl >= 0:5.006
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(Test::More) >= 0.47
|
||||
BuildRequires: perl(warnings)
|
||||
Requires: perl(Carp)
|
||||
Requires: perl(strict)
|
||||
Requires: perl(Test::More) >= 0.47
|
||||
Requires: perl(warnings)
|
||||
%description
|
||||
Before using this module, you should look at the alternatives, some of
|
||||
which are listed in SEE ALSO below.
|
||||
%package help
|
||||
Summary : Require() modules from a variable [deprecated]
|
||||
Provides: perl-UNIVERSAL-require-doc
|
||||
%description help
|
||||
Before using this module, you should look at the alternatives, some of
|
||||
which are listed in SEE ALSO below.
|
||||
%prep
|
||||
%setup -q -n UNIVERSAL-require-%{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 -f filelist.lst
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes META.json README
|
||||
%{perl_vendorlib}/*
|
||||
%files help
|
||||
%{_mandir}/*
|
||||
|
||||
%changelog
|
||||
* Sun May 23 2021 Perl_Bot <Perl_Bot@openeuler.org> 0.19-1
|
||||
- Specfile autogenerated by Perl_Bot
|
||||
Loading…
x
Reference in New Issue
Block a user