!3 添加mod_name宏
From: @hongjinghao Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
32be0ff068
@ -1,10 +1,12 @@
|
|||||||
Name: perl-Digest-MD5
|
%define mod_name Digest-MD5
|
||||||
|
|
||||||
|
Name: perl-%{mod_name}
|
||||||
Version: 2.58
|
Version: 2.58
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Perl interface to the MD5 algorithm
|
Summary: Perl interface to the MD5 algorithm
|
||||||
License: (GPL+ or Artistic) and BSD
|
License: (GPL+ or Artistic) and BSD
|
||||||
URL: https://metacpan.org/release/Digest-MD5
|
URL: https://metacpan.org/release/%{mod_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/Digest-MD5-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/%{mod_name}-%{version}.tar.gz
|
||||||
BuildRequires: gcc make perl-devel perl-generators perl-interpreter perl(strict) perl(Config) perl(ExtUtils::MakeMaker)
|
BuildRequires: gcc make perl-devel perl-generators perl-interpreter perl(strict) perl(Config) perl(ExtUtils::MakeMaker)
|
||||||
BuildRequires: perl(Digest::base) perl(Exporter) perl(vars) perl(XSLoader)
|
BuildRequires: perl(Digest::base) perl(Exporter) perl(vars) perl(XSLoader)
|
||||||
BuildRequires: perl(Encode) perl(Test) perl(Test::More) perl(warnings) perl(MIME::Base64) perl(threads)
|
BuildRequires: perl(Encode) perl(Test) perl(Test::More) perl(warnings) perl(MIME::Base64) perl(threads)
|
||||||
@ -21,7 +23,7 @@ input a message of arbitrary length and produces as output a 128-bit
|
|||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Digest-MD5-%{version}
|
%setup -q -n %{mod_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
||||||
@ -43,6 +45,9 @@ make test
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 24 2022 hongjinghao <hongjinghao@huawei.com> - 2.58-2
|
||||||
|
- use %{mod_name} marco
|
||||||
|
|
||||||
* Wed Jan 27 2021 liudabo <liudabo1@huawei.com> - 2.58-1
|
* Wed Jan 27 2021 liudabo <liudabo1@huawei.com> - 2.58-1
|
||||||
- upgrade version to 2.58
|
- upgrade version to 2.58
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user