Import CryptX
This commit is contained in:
parent
9a803ec878
commit
fb27523b09
Binary file not shown.
|
@ -0,0 +1,53 @@
|
|||
Name: perl-CryptX
|
||||
Version: 0.076
|
||||
Release: 1%{?dist}
|
||||
Summary: Cryptographic toolkit
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/CryptX/
|
||||
Source0: http://www.cpan.org/authors/id/M/MI/MIK/CryptX-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: perl >= 0:5.006
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Math::BigInt)
|
||||
BuildRequires: perl(Test::More)
|
||||
Requires: perl(Math::BigInt)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
Perl modules providing a cryptography based on LibTomCrypt library.
|
||||
|
||||
%prep
|
||||
%setup -q -n CryptX-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make pure_install PERL_INSTALL_ROOT=$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 {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes LICENSE META.json README.md
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/CryptX*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri Feb 11 2022 Daniel Berteaud <dbd@ehtrace.com> 0.076-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
Loading…
Reference in New Issue