perl-CryptX/perl-CryptX.spec

66 lines
1.9 KiB
RPMSpec

Name: perl-CryptX
Version: 0.076
Release: 4%{?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-generators
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.pm
%{perl_vendorarch}/Crypt/*
%{perl_vendorarch}/Math/BigInt/LTM.pm
%{_mandir}/man3/*
%changelog
* Fri Feb 11 2022 Daniel Berteaud <dbd@ehtrace.com> 0.076-4
- BuildReq perl-generators (dbd@ehtrace.com)
* Fri Feb 11 2022 Daniel Berteaud <dbd@ehtrace.com> 0.076-3
- Provides perl(CryptX) (dbd@ehtrace.com)
* Fri Feb 11 2022 Daniel Berteaud <dbd@ehtrace.com> 0.076-2
- new package built with tito
* Fri Feb 11 2022 Daniel Berteaud <dbd@ehtrace.com> 0.076-1
- Specfile autogenerated by cpanspec 1.78.