Compare commits
10 Commits
a221cbd039
...
a1191e56b9
Author | SHA256 | Date | |
---|---|---|---|
a1191e56b9 | |||
b5f83ec9c2 | |||
46b3d5043d | |||
9cfdb9a9a5 | |||
|
b3b42a6dc5 | ||
|
cf0429c627 | ||
|
007de6779a | ||
|
097bc00fef | ||
|
34dcccedce | ||
|
f30afea582 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1f00037fee1c221955c241c05e9879202554ed6b8799fd377cfa033eeba01c17
|
||||
size 120071
|
3
Crypt-Primes-0.52.tar.gz
Normal file
3
Crypt-Primes-0.52.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8d32c7f810c755359a96812cf916d42e2bb4450b5d1ea2044b7bf19077d7081f
|
||||
size 151272
|
27
cpanspec.yml
Normal file
27
cpanspec.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#description: |-
|
||||
# override description from CPAN
|
||||
#summary: override summary from CPAN
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
patches:
|
||||
math-pariinit.patch: -p1
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_build: |-
|
||||
# rm unused.files
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
27
math-pariinit.patch
Normal file
27
math-pariinit.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
index 3a11e85..c382c8c 100755
|
||||
--- a/t/genprime.t
|
||||
+++ b/t/genprime.t
|
||||
@@ -8,8 +8,8 @@
|
||||
##
|
||||
## $Id$
|
||||
|
||||
+use Math::PariInit qw( floor stack=16000000 );
|
||||
use Crypt::Primes qw(maurer);
|
||||
-use Math::Pari qw(floor);
|
||||
|
||||
print "1..10\n";
|
||||
|
||||
diff --git a/t/genprime_elgamal.t b/t/genprime_elgamal.t
|
||||
index 4437650..ce98380 100755
|
||||
--- a/t/genprime_elgamal.t
|
||||
+++ b/t/genprime_elgamal.t
|
||||
@@ -8,8 +8,8 @@
|
||||
##
|
||||
## $Id$
|
||||
|
||||
+use Math::PariInit qw( floor stack=16000000 );
|
||||
use Crypt::Primes;
|
||||
-use Math::Pari qw(floor);
|
||||
|
||||
print "1..10\n";
|
||||
|
50
perl-Crypt-Primes.changes
Normal file
50
perl-Crypt-Primes.changes
Normal file
@@ -0,0 +1,50 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 10 20:41:46 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Update math-pariinit.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 26 05:30:03 UTC 2025 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 0.520.0 (0.52)
|
||||
see /usr/share/doc/packages/perl-Crypt-Primes/Changes
|
||||
|
||||
Revision history for Perl module Crypt::RSA
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 7 23:25:21 UTC 2024 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Use %autosetup instead of deprecated %patchN
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 28 09:56:03 UTC 2020 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||
|
||||
- updated to 0.50
|
||||
see /usr/share/doc/packages/perl-Crypt-Primes/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 28 09:45:06 UTC 2020 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||
|
||||
- refresh package, regen spec file with cpanspec
|
||||
- add math-pariinit.patch to fix build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 1 13:27:05 UTC 2010 - coolo@novell.com
|
||||
|
||||
- switch to perl_requires macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 29 18:29:36 UTC 2010 - coolo@novell.com
|
||||
|
||||
- remove /var/adm/perl-modules
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 29 18:00:09 UTC 2010 - coolo@novell.com
|
||||
|
||||
- called spec2changelog
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 12 00:00:00 UTC 2006 - jfunk@funktronics.ca
|
||||
|
||||
- Initial release
|
||||
|
@@ -1,57 +1,77 @@
|
||||
%define modname Crypt-Primes
|
||||
Name: perl-%{modname}
|
||||
Version: 0.50
|
||||
Release: 1
|
||||
#
|
||||
# spec file for package perl-Crypt-Primes
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define cpan_name Crypt-Primes
|
||||
Name: perl-Crypt-Primes
|
||||
Version: 0.520.0
|
||||
Release: 0
|
||||
# 0.52 -> normalize -> 0.520.0
|
||||
%define cpan_version 0.52
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Provable Prime Number Generator suitable for Cryptographic Applications
|
||||
Requires: perl = %{perl_version} perl-Math-Pari perl-Crypt-Random
|
||||
BuildRequires: perl perl-Math-Pari perl-Crypt-Random
|
||||
License: GPL/Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Source: %{modname}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
Patch0: math-pariinit.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Crypt::Random)
|
||||
BuildRequires: perl(Math::Pari)
|
||||
Requires: perl(Crypt::Random)
|
||||
Requires: perl(Math::Pari)
|
||||
Provides: perl(Crypt::Primes) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This module implements Ueli Maurer's algorithm for generating large provable
|
||||
primes and secure parameters for public-key cryptosystems. The generated primes
|
||||
are almost uniformly distributed over the set of primes of the specified
|
||||
bitsize and expected time for generation is less than the time required for
|
||||
generating a pseudo-prime of the same size with Miller-Rabin tests
|
||||
This module implements Ueli Maurer's algorithm for generating large
|
||||
_provable_ primes and secure parameters for public-key cryptosystems. The
|
||||
generated primes are almost uniformly distributed over the set of primes of
|
||||
the specified bitsize and expected time for generation is less than the
|
||||
time required for generating a pseudo-prime of the same size with
|
||||
Miller-Rabin tests. Detailed description and running time analysis of the
|
||||
algorithm can be found in Maurer's paper[1].
|
||||
|
||||
Crypt::Primes is a pure perl implementation. It uses Math::Pari for multiple
|
||||
precision integer arithmetic and number theoretic functions. Random numbers are
|
||||
gathered with Crypt::Random, a perl interface to /dev/u?random devices found on
|
||||
most modern Unix operating systems.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Vipul Ved Prakash <mail@vipul.net>
|
||||
Crypt::Primes is a pure perl implementation. It uses Math::Pari for
|
||||
multiple precision integer arithmetic and number theoretic functions.
|
||||
Random numbers are gathered with Crypt::Random, a perl interface to
|
||||
/dev/u?random devices found on most modern Unix operating systems.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
make
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc README Changes docs
|
||||
%doc %{_mandir}/man?/*
|
||||
/usr/bin/largeprimes
|
||||
%{perl_vendorlib}/Crypt/Primes.pm
|
||||
%{perl_vendorarch}/auto/Crypt/Primes
|
||||
/var/adm/perl-modules/%{name}
|
||||
%files -f %{name}.files
|
||||
%doc Changes docs README SECURITY.md
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
||||
* Tue Sep 12 2006 - James Oakley <jfunk@funktronics.ca> - 0.50-1
|
||||
- Initial release
|
||||
|
Reference in New Issue
Block a user