!1 package init

Merge pull request !1 from daidai_is_here/dqw_test
This commit is contained in:
openeuler-ci-bot 2020-03-12 15:01:42 +08:00 committed by Gitee
commit cfece93e1e
2 changed files with 53 additions and 0 deletions

BIN
Crypt-CBC-2.33.tar.gz Normal file

Binary file not shown.

53
perl-Crypt-CBC.spec Normal file
View File

@ -0,0 +1,53 @@
Name: perl-Crypt-CBC
Version: 2.33
Release: 21
Summary: Encrypt Data with Cipher Block Chaining Mode
License: GPL+ or Artistic
URL: https://metacpan.org/release/Crypt-CBC
Source0: https://cpan.metacpan.org/authors/id/L/LD/LDS/Crypt-CBC-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-generators perl(bytes) perl(constant) perl(Digest::MD5) >= 2.00
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(Crypt::DES)
%description
This is Crypt::CBC, a Perl-only implementation of the cryptographic
cipher block chaining mode (CBC). In combination with a block cipher
such as Crypt::DES or Crypt::IDEA, you can encrypt and decrypt
messages of arbitrarily long length. The encrypted messages are
compatible with the encryption format used by SSLeay.
%package help
Summary: Help documentation of %{name} package
%description help
Help documentation of %{name} package.
%prep
%autosetup -n Crypt-CBC-%{version} -p1
chmod 644 eg/*.pl
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build
%install
rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -delete
%{_fixperms} $RPM_BUILD_ROOT
%check
make test
%files
%doc Changes README eg/
%{perl_vendorlib}/Crypt/
%files help
%{_mandir}/man3/*
%changelog
* Thu Mar 12 2020 daiqianwen <daiqianwen@huawei.com> - 2.33-21
- Package init