!16 define mod_name to optimize the specfile
From: @wangyuhang27 Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
89cbaa9f81
@ -1,11 +1,13 @@
|
||||
Name: perl-Mozilla-CA
|
||||
%define mod_name Mozilla-CA
|
||||
|
||||
Name: perl-%{mod_name}
|
||||
Epoch: 1
|
||||
Version: 20211001
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Mozilla's CA cert bundle in PEM format
|
||||
License: MPLv2.0
|
||||
URL: https://metacpan.org/release/Mozilla-CA
|
||||
Source0: https://cpan.metacpan.org/authors/id/A/AB/ABH/Mozilla-CA-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{mod_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/A/AB/ABH/%{mod_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
# For check failure
|
||||
@ -27,7 +29,7 @@ BuildArch: noarch
|
||||
This package provide %{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n Mozilla-CA-%{version} -p1
|
||||
%autosetup -n %{mod_name}-%{version} -p1
|
||||
rm -vf lib/Mozilla/CA/cacert.pem mk-ca-bundle.pl
|
||||
sed -i '/^mk-ca-bundle.pl$/d' MANIFEST
|
||||
|
||||
@ -50,7 +52,10 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Thu Dec 2 2021 shangyibin <shangyibin1@huawei.com> - 1:20211001-1
|
||||
* Wed Oct 26 2022 wangyuhang <wangyuhang27@huawei.com> - 1:20211001-2
|
||||
- define mod_name to opitomize the specfile
|
||||
|
||||
* Tue Dec 21 2021 shangyibin <shangyibin1@huawei.com> - 1:20211001-1
|
||||
- update to 20211001-1
|
||||
|
||||
* Wed Jul 29 2020 shixuantong <shixuantong@huawei.com> - 1:20200520-1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user