add Crypt

This commit is contained in:
yeah_wang 2019-12-06 17:38:16 +08:00
commit 6b36b73a8a
2 changed files with 105 additions and 0 deletions

Binary file not shown.

105
perl-Crypt-OpenSSL-RSA.spec Normal file
View File

@ -0,0 +1,105 @@
Name: perl-Crypt-OpenSSL-RSA
Version: 0.30
Release: 4
Summary: Perl interface to OpenSSL for RSA
License: GPL+ or Artistic
Group: Development/Libraries
URL: https://metacpan.org/release/Crypt-OpenSSL-RSA
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/Crypt-OpenSSL-RSA-%{version}.tar.gz
BuildRequires: findutils make openssl openssl-devel perl-devel perl-generators perl-interpreter
BuildRequires: perl(:VERSION) >= 5.6 perl(Crypt::OpenSSL::Guess) >= 0.11
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 perl(strict) perl(warnings) perl(Carp)
BuildRequires: perl(AutoLoader) perl(Crypt::OpenSSL::Bignum) perl(XSLoader)
BuildRequires: perl(Crypt::OpenSSL::Random) perl(base) perl(Test) perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Crypt::OpenSSL::Random) perl(Crypt::OpenSSL::Bignum)
%description
encoding and decoding according to using the openSSL libraries
%package help
Summary:help for perl-Crypt-OpenSSL-RSA
%description help
The help package conatins man manual for perl-Crypt-OpenSSL-RSA
%prep
%autosetup -n Crypt-OpenSSL-RSA-%{version} -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/*
%check
make test
%files
%license LICENSE
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Crypt/
%files help
%{_mandir}/man3/*
%doc Changes README
%changelog
* Thu Nov 21 2019 wangye<wangye54@huawei.com> - 0.30-4
- Package init