define mod_name to opitomize the specfile
This commit is contained in:
parent
9104e36f28
commit
13a542c2b8
@ -1,11 +1,12 @@
|
||||
Name: perl-Test-Simple
|
||||
%define mod_name Test-Simple
|
||||
Name: perl-%{mod_name}
|
||||
Summary: Basic utilities for writing tests
|
||||
Epoch: 2
|
||||
Version: 1.302188
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: (GPL+ or Artistic) and CC0 and Public Domain
|
||||
URL: https://metacpan.org/release/Test-Simple
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Simple-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{mod_name}
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Test/%{mod_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: coreutils, make
|
||||
@ -28,10 +29,10 @@ Provides: perl-Test2 = %{version}-%{release}
|
||||
This package provides the bulk of the core testing facilities. For more
|
||||
information, see perldoc for Test::Simple, Test::More, etc.
|
||||
|
||||
This package is the CPAN component of the dual-lifed core package Test-Simple.
|
||||
This package is the CPAN component of the dual-lifed core package %{mod_name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n Test-Simple-%{version}
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
||||
@ -65,6 +66,9 @@ make test AUTHOR_TESTING=1
|
||||
%{_mandir}/man3/Test*
|
||||
|
||||
%changelog
|
||||
* Tue Oct 25 2022 zhoushuiqing <zhoushuiqing2@huawei.com> - 1.302188-2
|
||||
- define mod_name to opitomize the specfile
|
||||
|
||||
* Mon Nov 22 2021 liudabo <liudabo1@huawei.com> - 1.302188-1
|
||||
- upgrade version to 1.302188
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user