92 lines
2.6 KiB
RPMSpec
92 lines
2.6 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
|
|
Name: perl-Digest-MD4
|
|
Version: 1.9
|
|
Release: 2
|
|
Summary: Perl interface to the MD4 Algorithm
|
|
License: perl License
|
|
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-devel
|
|
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 Oct 10 2022 misaka00251 <misaka00251@misakanet.cn> - 1.9-2
|
|
- Cleanup spec file & Fix build issues
|
|
|
|
* Mon Jul 12 2021 Perl_Bot <Perl_Bot@openeuler.org> 1.9-1
|
|
- Specfile autogenerated by Perl_Bot
|