commit 69cf81fc7b3b411c367781011da0a007f4f640c4 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Tue Oct 14 14:21:02 2014 +0200 Import .gitignore | 1 + perl-String-Compare-ConstantTime.spec | 50 +++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 52 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..35e7ecb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/String-Compare-ConstantTime-0.310.tar.gz diff --git a/perl-String-Compare-ConstantTime.spec b/perl-String-Compare-ConstantTime.spec new file mode 100644 index 0000000..28b061c --- /dev/null +++ b/perl-String-Compare-ConstantTime.spec @@ -0,0 +1,50 @@ +Name: perl-String-Compare-ConstantTime +Version: 0.310 +Release: 1%{?dist} +Summary: Timing side-channel protected string compare +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/String-Compare-ConstantTime/ +Source0: http://www.cpan.org/authors/id/F/FR/FRACTAL/String-Compare-ConstantTime-%{version}.tar.gz +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Exporter) +BuildRequires: perl(XSLoader) +# Tests: +BuildRequires: perl(Test::More) +BuildRequires: perl(utf8) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This module provides one function "equals" which works like perl's "eq", but +which does not provide a timing side-channel. Such comparison is useful when +matching against a secret string. + +%prep +%setup -q -n String-Compare-ConstantTime-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes COPYING README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/String* +%{_mandir}/man3/* + +%changelog +* Fri Oct 10 2014 Petr Pisar <ppisar@xxxxxxxxxx> 0.310-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..287a176 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +33d7cf50d3f348fd900a0eca671bd208 String-Compare-ConstantTime-0.310.tar.gz -- 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