diff --git a/Crypt-RC4-2.02.tar.gz b/Crypt-RC4-2.02.tar.gz new file mode 100644 index 0000000..610a308 Binary files /dev/null and b/Crypt-RC4-2.02.tar.gz differ diff --git a/perl-Crypt-RC4.spec b/perl-Crypt-RC4.spec new file mode 100644 index 0000000..f0e7b7a --- /dev/null +++ b/perl-Crypt-RC4.spec @@ -0,0 +1,73 @@ +Name: perl-Crypt-RC4 +Version: 2.02 +Release: 1 +Summary: Perl implementation of the RC4 encryption algorithm +License: GPL+ or Artistic +URL: https://metacpan.org/release/Crypt-RC4 +Source0: https://cpan.metacpan.org/authors/id/S/SI/SIFUKURT/Crypt-RC4-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Run-time: +BuildRequires: perl(Exporter) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +A simple implementation of the RC4 algorithm, developed by RSA Security, +Inc. Here is the description from RSA's website: + +RC4 is a stream cipher designed by Rivest for RSA Data Security (now RSA +Security). It is a variable key-size stream cipher with byte-oriented +operations. The algorithm is based on the use of a random permutation. Analysis +shows that the period of the cipher is overwhelmingly likely to be greater than +10100. Eight to sixteen machine operations are required per output byte, and +the cipher can be expected to run very quickly in software. Independent analysts +have scrutinized the algorithm and it is considered secure. + +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + +%prep +%setup -q -n Crypt-RC4-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} %{buildroot}/* +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a test.pl %{buildroot}%{_libexecdir}/%{name} +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . test.pl +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test + +%check +make test + +%files +%doc Changes +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Wed Jul 06 2022 misaka00251 - 2.02-1 +- Init package (Thanks to fedora team)