添加%{mod_name}宏
添加%{mod_name}宏
Signed-off-by: hongjinghao <hongjinghao@huawei.com>
This commit is contained in:
parent
27ccd8fda1
commit
e2e72dfc67
@ -1,12 +1,13 @@
|
|||||||
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}/
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}/
|
||||||
|
%define mod_name Try-Tiny
|
||||||
|
|
||||||
Name: perl-Try-Tiny
|
Name: perl-Try-Tiny
|
||||||
Summary: Minimal try/catch with proper preservation of $@
|
Summary: Minimal try/catch with proper preservation of $@
|
||||||
Version: 0.31
|
Version: 0.31
|
||||||
Release: 1
|
Release: 2
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://metacpan.org/release/Try-Tiny
|
URL: https://metacpan.org/release/%{mod_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Try-Tiny-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{mod_name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -21,7 +22,7 @@ This module provides bare bones try/catch statements that are designed to minimi
|
|||||||
eval blocks, and NOTHING else.
|
eval blocks, and NOTHING else.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n Try-Tiny-%{version} -p1
|
%autosetup -n %{mod_name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
@ -41,6 +42,9 @@ make test
|
|||||||
%{_mandir}/man3/Try::Tiny.3*
|
%{_mandir}/man3/Try::Tiny.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 31 2022 hongjinghao <hongjinghao@huawei.com> - 0.31-2
|
||||||
|
- use %{mod_name} marco
|
||||||
|
|
||||||
* Tue Dec 7 2021 guozhaorui <guozhaorui1@huawei.com> - 0.31-1
|
* Tue Dec 7 2021 guozhaorui <guozhaorui1@huawei.com> - 0.31-1
|
||||||
- update version to 0.31
|
- update version to 0.31
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user