perl-Test-Inter/perl-Test-Inter.spec

95 lines
2.7 KiB
RPMSpec
Raw Normal View History

2020-08-01 10:05:23 +08:00
%global _empty_manifest_terminate_build 0
Name: perl-Test-Inter
2023-07-21 09:26:15 +08:00
Version: 1.10
Release: 1
2020-08-01 10:05:23 +08:00
Summary: Framework for more readable interactive test scripts
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Test-Inter/
2023-07-21 09:26:15 +08:00
Source0: https://cpan.metacpan.org/authors/id/S/SB/SBECK/Test-Inter-%{version}.tar.gz
2020-08-01 10:05:23 +08:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 0:5.006
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find::Rule)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
BuildRequires: perl-generators
Requires: perl(Cwd)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
2023-07-21 09:26:15 +08:00
2020-02-28 15:10:02 +08:00
%description
2020-08-01 10:05:23 +08:00
This is another framework for writing test scripts. Much of the syntax is
loosely inspired by Test::More, and Test::Inter has most of it's
functionality, but it is not a drop-in replacement.
2023-07-21 09:26:15 +08:00
2020-08-01 10:05:23 +08:00
%package help
Summary : Framework for more readable interactive test scripts
Provides: perl-Test-Inter-doc
2023-07-21 09:26:15 +08:00
2020-08-01 10:05:23 +08:00
%description help
This is another framework for writing test scripts. Much of the syntax is
loosely inspired by Test::More, and Test::Inter has most of it's
functionality, but it is not a drop-in replacement.
2023-07-21 09:26:15 +08:00
2020-02-28 15:10:02 +08:00
%prep
2023-07-21 09:26:15 +08:00
%autosetup -n Test-Inter-%{version} -p1
2020-02-28 15:10:02 +08:00
%build
2020-08-01 10:05:23 +08:00
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
2020-02-28 15:10:02 +08:00
%install
2020-08-01 10:05:23 +08:00
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 \;
2020-02-28 15:10:02 +08:00
%{_fixperms} $RPM_BUILD_ROOT/*
2020-08-01 10:05:23 +08:00
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 .
2023-07-21 09:26:15 +08:00
2020-02-28 15:10:02 +08:00
%check
2020-08-01 10:05:23 +08:00
make test
2020-02-28 15:10:02 +08:00
2020-08-01 10:05:23 +08:00
%clean
rm -rf $RPM_BUILD_ROOT
2020-02-28 15:10:02 +08:00
2020-08-01 10:05:23 +08:00
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes LICENSE META.json README
%{perl_vendorlib}/*
2020-02-28 15:10:02 +08:00
%files help
2020-08-01 10:05:23 +08:00
%{_mandir}/*
2020-02-28 15:10:02 +08:00
%changelog
2023-07-21 09:26:15 +08:00
* Tue Jul 25 2023 yaoxin <yao_xin001@hoperun.com> - 1.10-1
- Update to 1.10
2020-08-01 10:05:23 +08:00
* Sat Aug 1 2020 shixuantong <shixuantong@huawei.com> - 1.09-2
- Remove %{?dist} in release tag
* Tue Jun 16 2020 Perl_Bot <Perl_Bot@openeuler.org> 1.09-1
- Specfile autogenerated by Perl_Bot