上传perl-Digest-MD4 源代码

This commit is contained in:
rongjing88 2021-07-14 01:11:24 +00:00 committed by Gitee
parent 341a014dc5
commit 460229b5c5
2 changed files with 79 additions and 0 deletions

BIN
Digest-MD4-1.9.tar.gz Normal file

Binary file not shown.

79
perl-Digest-MD4.spec Normal file
View File

@ -0,0 +1,79 @@
%global _empty_manifest_terminate_build 0
Name: perl-Digest-MD4
Version: 1.9
Release: 1
Summary: Perl interface to the MD4 Algorithm
License: CHECK(Distributable)
Group: Development/Libraries
URL: http://search.cpan.org/dist/Digest-MD4/
Source0: http://www.cpan.org/authors/id/M/MI/MIKEM/DigestMD4/Digest-MD4-%{version}.tar.gz
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
Requires: perl(File::Spec)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
The Digest::MD4 module allows you to use the RSA Data Security Inc. MD4
Message Digest algorithm from within Perl programs. The algorithm takes as
input a message of arbitrary length and produces as output a 128-bit
"fingerprint" or "message digest" of the input.
%package help
Summary : Perl interface to the MD4 Algorithm
Provides: perl-Digest-MD4-doc
%description help
The Digest::MD4 module allows you to use the RSA Data Security Inc. MD4
Message Digest algorithm from within Perl programs. The algorithm takes as
input a message of arbitrary length and produces as output a 128-bit
"fingerprint" or "message digest" of the input.
%prep
%setup -q -n Digest-MD4-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
pushd %{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ];then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib ];then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes META.json README rfc1320.txt
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Digest*
%files help
%{_mandir}/*
%changelog
* Mon Jul 12 2021 Perl_Bot <Perl_Bot@openeuler.org> 1.9-1
- Specfile autogenerated by Perl_Bot