2020-08-05 17:16:16 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
Name: perl-Term-Table
|
|
|
|
|
Version: 0.015
|
2020-09-04 10:35:24 +08:00
|
|
|
Release: 2
|
2020-08-05 17:16:16 +08:00
|
|
|
Summary: Term::Table Perl module
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: https://metacpan.org/release/Term-Table
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Term-Table-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0: Term-Table-0.015-Use-system-Object-HashBase.patch
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(:VERSION) >= 5.8.1
|
|
|
|
|
BuildRequires: perl(Importer) >= 0.024
|
|
|
|
|
BuildRequires: perl(Object::HashBase) >= 0.008
|
|
|
|
|
BuildRequires: perl(Test2::API)
|
|
|
|
|
BuildRequires: perl(Test2::Tools::Tiny) >= 1.302097
|
|
|
|
|
Requires: perl(Importer) >= 0.024
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This Perl module is able to format rows of data into tables.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary : Term::Table Perl module
|
|
|
|
|
Provides: perl-Term-Table-doc
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
This Perl module is able to format rows of data into tables.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Term-Table-%{version}
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export PERL_MM_OPT=""
|
2020-09-04 10:35:24 +08:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
2020-08-05 17:16:16 +08:00
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
export PERL_MM_OPT=""
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%{make_install}
|
|
|
|
|
|
|
|
|
|
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
|
2020-09-04 10:35:24 +08:00
|
|
|
* Fri Sep 4 2020 dingyue <dingyue5@huawei.com> -0.015 -2
|
|
|
|
|
- Fix install conflict.
|
|
|
|
|
|
2020-08-05 17:16:16 +08:00
|
|
|
* Mon Aug 3 2020 dingyue <dingyue5@huawei.com> -0.015 -1
|
|
|
|
|
- Package init
|