]> git.pld-linux.org Git - packages/perl-Crypt-Curve25519.git/blob - perl-Crypt-Curve25519.spec
perl 5.36.0 rebuild
[packages/perl-Crypt-Curve25519.git] / perl-Crypt-Curve25519.spec
1 %define         pdir    Crypt
2 %define         pnam    Curve25519
3 Summary:        Crypt::Curve25519 Perl module - Generate shared secret using elliptic-curve Diffie-Hellman function
4 Name:           perl-Crypt-Curve25519
5 Version:        0.06
6 Release:        4
7 # same as perl
8 License:        GPL v1+ or Artistic
9 Group:          Development/Languages/Perl
10 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
11 # Source0-md5:  631c7a0e799994712e3d802317615a4c
12 Patch0:         %{name}-fmul.patch
13 URL:            http://search.cpan.org/dist/Crypt-Curve25519/
14 BuildRequires:  perl-ExtUtils-MakeMaker >= 6.56
15 BuildRequires:  perl-devel >= 1:5.8.0
16 BuildRequires:  rpm-perlprov >= 4.1-13
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Curve25519 is a state-of-the-art Diffie-Hellman function suitable for
21 a wide variety of applications.
22
23 Given a user's 32-byte secret key, Curve25519 computes the user's
24 32-byte public key. Given the user's 32-byte secret key and another
25 user's 32-byte public key, Curve25519 computes a 32-byte secret shared
26 by the two users. This secret can then be used to authenticate and
27 encrypt messages between the two users.
28
29 %prep
30 %setup -q -n %{pdir}-%{pnam}-%{version}
31 %patch0 -p1
32
33 %build
34 %{__perl} Makefile.PL \
35         INSTALLDIRS=vendor
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
41 %{__make} install \
42         DESTDIR=$RPM_BUILD_ROOT
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc Changes README
50 %dir %{perl_vendorarch}/auto/Crypt/Curve25519
51 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Curve25519/Curve25519.so
52 %{perl_vendorarch}/Crypt/Curve25519.pm
53 %{_mandir}/man3/*
This page took 0.141605 seconds and 4 git commands to generate.