diff --git a/CryptX-0.076.tar.gz b/CryptX-0.076.tar.gz new file mode 100644 index 0000000..1a5ad06 --- /dev/null +++ b/CryptX-0.076.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb84ac012438c7cecdb51a5a6fffb4f1fee3b0eae0022e96cebc2e167522621c +size 1647443 diff --git a/perl-CryptX.spec b/perl-CryptX.spec new file mode 100644 index 0000000..2bd8a73 --- /dev/null +++ b/perl-CryptX.spec @@ -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 0.076-1 +- Specfile autogenerated by cpanspec 1.78.