forked from pool/perl-Crypt-RC4
0bba3d2176
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Crypt-RC4?expand=0&rev=3
55 lines
1.6 KiB
RPMSpec
55 lines
1.6 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# norootforbuild
|
|
|
|
Name: perl-Crypt-RC4
|
|
Version: 2.02
|
|
Release: 0
|
|
Summary: Perl implementation of the RC4 encryption algorithm
|
|
Source: http://search.cpan.org/CPAN/authors/id/S/SI/SIFUKURT/Crypt-RC4-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/Crypt-RC4/
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
%{perl_requires}
|
|
BuildRequires: make perl
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n "Crypt-RC4-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Changes
|
|
%dir %{perl_vendorlib}/Crypt
|
|
%{perl_vendorlib}/Crypt/RC4.pm
|
|
%dir %{perl_vendorarch}/auto/Crypt
|
|
%{perl_vendorarch}/auto/Crypt/RC4
|
|
%doc %{perl_man3dir}/Crypt::RC4.%{perl_man3ext}%{ext_man}
|
|
|