92 lines
2.3 KiB
RPMSpec
92 lines
2.3 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: perl-Term-Table
|
|
Version: 0.016
|
|
Release: 1
|
|
Summary: Term::Table Perl module
|
|
License: GPL-1.0-or-later or Artistic-1.0
|
|
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.016-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
|
|
%autosetup -n Term-Table-%{version} -p1
|
|
|
|
%build
|
|
export PERL_MM_OPT=""
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
%{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
|
|
* Tue Jun 21 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.016-1
|
|
- Upgrade to version 0.016
|
|
|
|
* Fri Sep 4 2020 dingyue <dingyue5@huawei.com> -0.015 -2
|
|
- Fix install conflict.
|
|
|
|
* Mon Aug 3 2020 dingyue <dingyue5@huawei.com> -0.015 -1
|
|
- Package init
|