!6 【轻量级 PR】:define mod_name to opitomize the specfile
From: @yangmingtaip Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
151bc2119e
@ -1,12 +1,12 @@
|
|||||||
%global base_version 1.26
|
%global base_version 1.26
|
||||||
|
%define mod_name Unicode-Normalize
|
||||||
Name: perl-Unicode-Normalize
|
Name: perl-%{mod_name}
|
||||||
Version: 1.28
|
Version: 1.28
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Unicode Normalization Forms
|
Summary: Unicode Normalization Forms
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/Unicode-Normalize
|
URL: https://metacpan.org/release/%{mod_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/K/KH/KHW/Unicode-Normalize-%{base_version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/K/KH/KHW/%{mod_name}-%{base_version}.tar.gz
|
||||||
|
|
||||||
Patch6000: backport-Update-1.27.patch
|
Patch6000: backport-Update-1.27.patch
|
||||||
Patch6001: backport-Update-1.28.patch
|
Patch6001: backport-Update-1.28.patch
|
||||||
@ -24,7 +24,7 @@ representation(Unicode Standard Annex #15).
|
|||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n Unicode-Normalize-%{base_version} -p1
|
%autosetup -n %{mod_name}-%{base_version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}"
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}"
|
||||||
@ -55,6 +55,9 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 24 2022 yangmingtai <yangmingtai@huawei.com> - 1.28-2
|
||||||
|
- define mod_name to opitomize the specfile
|
||||||
|
|
||||||
* Mon Dec 27 2021 guozhaorui<guozhaorui1@huawei.com> - 1.28-1
|
* Mon Dec 27 2021 guozhaorui<guozhaorui1@huawei.com> - 1.28-1
|
||||||
- update version to 1.28
|
- update version to 1.28
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user