# Enable JSON support %bcond_without perl_CryptX_enables_json # Run optional test %bcond_without perl_CryptX_enables_optional_test Name: perl-CryptX Version: 0.076 Release: 1.n0i.7%{?dist} Summary: Cryptographic toolkit # Other file: GPL+ or Artistic ## Unbundled # src/ltc/hashes/blake2s.c: CC0 or OpenSSL or ASL 2.0 # src/ltc/stream/rc4/rc4.c: Public Domain # src/ltm/bncore.c: Public Domain License: GPL+ or Artistic URL: https://metacpan.org/release/CryptX Source0: https://cpan.metacpan.org/authors/id/M/MI/MIK/CryptX-%{version}.tar.gz BuildRequires: findutils BuildRequires: gcc BuildRequires: libtomcrypt-devel BuildRequires: libtommath-devel BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) %if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 %else BuildRequires: perl(ExtUtils::MakeMaker) %endif BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(overload) BuildRequires: perl(Scalar::Util) BuildRequires: perl(XSLoader) # Optional run-time: %if %{with perl_CryptX_enables_json} # Cpanel::JSON::XS or JSON::XS or JSON::PP BuildRequires: perl(Cpanel::JSON::XS) %endif # Tests: BuildRequires: perl(Data::Dumper) BuildRequires: perl(Test) BuildRequires: perl(Test::More) %if %{with perl_CryptX_enables_optional_test} # Optional tests: BuildRequires: perl(File::Find) BuildRequires: perl(Math::BigFloat) >= 1.999715 BuildRequires: perl(Math::BigInt) BuildRequires: perl(Storable) >= 2.0 BuildRequires: perl(Test::Pod) %endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %if 0%{?fedora} || 0%{?rhel} > 7 %if %{with perl_CryptX_enables_json} # Cpanel::JSON::XS or JSON::XS or JSON::PP Recommends: perl(Cpanel::JSON::XS) %endif %endif %description This Perl library provides a cryptography based on LibTomCrypt library. ECC support is disabled because it's not yet fully supported by LibTomCrypt. %prep %setup -q -n CryptX-%{version} %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete %if 0%{?rhel:1} && 0%{?rhel} <= 7 find %{buildroot} -type f -name .packlist -delete find %{buildroot} -type f -name perllocal.pod -delete %endif %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files %license LICENSE %doc Changes README.md %{perl_vendorarch}/auto/* %{perl_vendorarch}/Crypt %{perl_vendorarch}/CryptX.pm %{perl_vendorarch}/Math %{_mandir}/man3/* %changelog * Thu May 05 2022 Marius FERARU - 0.076-1.n0i.7 - version 0.076 * Sun May 02 2021 Marius FERARU - 0.072-1.n0i.6 - version 0.072 * Tue Oct 06 2020 Marius FERARU - 0.069-1.n0i.5 - version 0.069 * Wed Mar 18 2020 Marius FERARU - 0.068-1.n0i.4 - version 0.068 * Thu Nov 01 2018 Marius FERARU - 0.062-1.n0i.3 - version 0.062 * Thu Jul 12 2018 Marius FERARU - 0.061-1.n0i.2 - version 0.061 - drop Fedora patches * Thu Jul 12 2018 Marius FERARU - 0.053-5.n0i.1 - build fedora version * Thu Jun 28 2018 Jitka Plesnikova - 0.053-5 - Perl 5.28 rebuild * Thu May 03 2018 Petr Pisar - 0.053-4 - Adapt tests to changes in Math::BigInt 1.999813 * Thu Mar 1 2018 Florian Weimer - 0.053-3 - Rebuild with new redhat-rpm-config/perl build flags * Wed Feb 28 2018 Petr Pisar - 0.053-2 - Validate decode_b58b input properly * Thu Feb 15 2018 Petr Pisar 0.053-1 - Specfile autogenerated by cpanspec 1.78.