!14 【轻量级 PR】:define mod_name to opitomize the specfile
From: @yangmingtaip Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
3323ee9e2c
@ -1,12 +1,13 @@
|
|||||||
%global base_version 2.21
|
%global base_version 2.21
|
||||||
Name: perl-threads
|
%define mod_name threads
|
||||||
|
Name: perl-%{mod_name}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Version: 2.26
|
Version: 2.26
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Perl interpreter-based threads
|
Summary: Perl interpreter-based threads
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/threads
|
URL: https://metacpan.org/release/%{mod_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/J/JD/JDHEDDEN/threads-%{version}.tar.gz#/threads-2.21.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/J/JD/JDHEDDEN/%{mod_name}-%{version}.tar.gz#/%{mod_name}-2.21.tar.gz
|
||||||
|
|
||||||
Patch6000: backport-Upgrade-2.22.patch
|
Patch6000: backport-Upgrade-2.22.patch
|
||||||
Patch6001: backport-Upgrade-2.25.patch
|
Patch6001: backport-Upgrade-2.25.patch
|
||||||
@ -35,7 +36,7 @@ Requires: man
|
|||||||
The %{name}-help package contains doc files for %{name}.
|
The %{name}-help package contains doc files for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n threads-%{base_version} -p1
|
%autosetup -n %{mod_name}-%{base_version} -p1
|
||||||
|
|
||||||
chmod -x examples/*
|
chmod -x examples/*
|
||||||
|
|
||||||
@ -60,6 +61,9 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 24 2022 yangmingtai <yangmingtai@huawei.com> - 2:2.26-2
|
||||||
|
- define mod_name to opitomize the specfile
|
||||||
|
|
||||||
* Sun Dec 26 2021 guozhaorui <guozhaorui1@huawei.com> - 2:2.26-1
|
* Sun Dec 26 2021 guozhaorui <guozhaorui1@huawei.com> - 2:2.26-1
|
||||||
- update version to 2.26
|
- update version to 2.26
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user