!3 添加mod_name宏

From: @hongjinghao 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
This commit is contained in:
openeuler-ci-bot 2022-10-25 02:32:17 +00:00 committed by Gitee
commit 32be0ff068
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,10 +1,12 @@
Name: perl-Digest-MD5
%define mod_name Digest-MD5
Name: perl-%{mod_name}
Version: 2.58
Release: 1
Release: 2
Summary: Perl interface to the MD5 algorithm
License: (GPL+ or Artistic) and BSD
URL: https://metacpan.org/release/Digest-MD5
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/Digest-MD5-%{version}.tar.gz
URL: https://metacpan.org/release/%{mod_name}
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: perl(Digest::base) perl(Exporter) perl(vars) perl(XSLoader)
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
%prep
%setup -q -n Digest-MD5-%{version}
%setup -q -n %{mod_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
@ -43,6 +45,9 @@ make test
%{_mandir}/*/*
%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
- upgrade version to 2.58