use %{mod_name} marco
This commit is contained in:
parent
5f5bfcc88b
commit
d72d24dcdc
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user