commit 8c9abf8bad84c02233c365b7533600106dd47c5c Author: Mathieu Bridon <bochecha@xxxxxxxxxxxxxxxxx> Date: Fri Nov 11 11:31:15 2011 +0800 Initial packaging for Fedora This package was submitted for review on Fri Nov 11 2011: https://bugzilla.redhat.com/show_bug.cgi?id=753019#c0 perl-Crypt-RC4-XS.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) --- diff --git a/perl-Crypt-RC4-XS.spec b/perl-Crypt-RC4-XS.spec new file mode 100644 index 0000000..6ea522b --- /dev/null +++ b/perl-Crypt-RC4-XS.spec @@ -0,0 +1,64 @@ +Name: perl-Crypt-RC4-XS +Version: 0.02 +Release: 1%{?dist} +Summary: Perl implementation of the RC4 encryption algorithm +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Crypt-RC4-XS/ +Source0: http://www.cpan.org/authors/id/O/OY/OYAMA/Crypt-RC4-XS-%{version}.tar.gz + +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# Required for the unit tests +BuildRequires: perl(Test::More) + +# Don't provide private shared objects +%{?perl_default_filter} + +%description +This module XS implementation of the RC4 algorithm, developed by RSA +Security, Inc. Here is the description from Wikipedia website: + +In cryptography, RC4 (also known as ARC4 or ARCFOUR meaning Alleged RC4, see +below) is the most widely-used software stream cipher and is used in popular +protocols such as Secure Sockets Layer (SSL) (to protect Internet traffic) +and WEP (to secure wireless networks). While remarkable for its simplicity +and speed in software, RC4 is vulnerable to attacks when the beginning of the +output keystream is not discarded, or a single keystream is used twice; some +ways of using RC4 can lead to very insecure cryptosystems such as WEP. + + +%prep +%setup -q -n Crypt-RC4-XS-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} + + +%install +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + + +%check +make test + + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorarch}/Crypt +%{perl_vendorarch}/auto/Crypt +%{_mandir}/man3/Crypt::RC4::XS.3pm.gz + +%changelog +* Fri Nov 11 2011 Mathieu Bridon <bochecha@xxxxxxxxxxxxxxxxx> 0.02-1 +- Specfile autogenerated by cpanspec 1.78. +- Couple of tweaks to the spec file. -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel