package init

This commit is contained in:
yeah_wang 2020-03-06 18:41:00 +08:00
parent a318a39a7a
commit 9957474576
2 changed files with 67 additions and 0 deletions

BIN
Digest-SHA3-1.04.tar.gz Normal file

Binary file not shown.

67
perl-Digest-SHA3.spec Normal file
View File

@ -0,0 +1,67 @@
Name: perl-Digest-SHA3
Version: 1.04
Release: 4
Summary: Perl extension for SHA-3
License: GPL+ or Artistic
URL: https://metacpan.org/release/Digest-SHA3
Source0: https://cpan.metacpan.org/modules/by-module/Digest/Digest-SHA3-%{version}.tar.gz
BuildRequires: coreutils findutils make perl-devel perl-generators perl-interpreter perl(Carp) perl(Config) perl(Digest::base) perl(Exporter) perl(ExtUtils::MakeMaker)
BuildRequires: perl(Fcntl) perl(Getopt::Std) perl(integer) perl(strict) perl(Test::More) perl(Test::Pod) >= 1.00 perl(Test::Pod::Coverage) >= 0.08 perl(vars) perl(warnings)
BuildRequires: perl(XSLoader) sed
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) perl(Carp) perl(Digest::base) perl(XSLoader)
%description
C compiler for specific processors.
%package -n sha3sum
Summary: Compute and check SHA3 message digest
BuildArch: noarch
Requires: perl(Digest::SHA3)
%description -n sha3sum
This script will compute and check the SHA3 message digest of a file
package help
Summary: some doc for perl-Digest-SHA3
%description help
This help package contain some docs.
%prep
%autosetup -n Digest-SHA3-%{version} -p1
sed -i 's|#!.*perl|#!/usr/bin/perl|' examples/dups3
chmod -c -x examples/dups3
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist |xargs -I {} rm {}
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 |xargs -I {} rm {}
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Digest*
%files -n sha3sum
%{_bindir}/*
%files help
%{_mandir}/man1/*
%{_mandir}/man3/*
%doc README Changes examples
%changelog
* Thu Mar 5 2020 wangye <wangye54@huawei.com> - 1.04-4
- Package init