perl-Term-Table/perl-Term-Table.spec

92 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-05 17:16:16 +08:00
%global _empty_manifest_terminate_build 0
Name: perl-Term-Table
2022-06-21 18:16:56 +08:00
Version: 0.016
Release: 1
2020-08-05 17:16:16 +08:00
Summary: Term::Table Perl module
2022-06-21 18:16:56 +08:00
License: GPL-1.0-or-later or Artistic-1.0
2020-08-05 17:16:16 +08:00
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
2022-06-21 18:16:56 +08:00
Patch0: Term-Table-0.016-Use-system-Object-HashBase.patch
2020-08-05 17:16:16 +08:00
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
2022-06-21 18:16:56 +08:00
%autosetup -n Term-Table-%{version} -p1
2020-08-05 17:16:16 +08:00
%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
2022-06-21 18:16:56 +08:00
* Tue Jun 21 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.016-1
- Upgrade to version 0.016
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