File perl-CryptX.spec of Package perl-CryptX
Name: perl-CryptX
Version: 0.025
Release: 1%{?dist}
Summary: Crypto toolkit (self-contained no external libraries needed)
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(Exporter) >= 5.59
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(JSON) >= 2.01
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More) >= 0.88
Requires: perl(Exporter) >= 5.59
Requires: perl(JSON) >= 2.01
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Cryptography in CryptX is based on https://github.com/libtom/libtomcrypt
%prep
%setup -q -n CryptX-%{version}
%build
%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
./Build
%install
rm -rf %{buildroot}
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
%check
./Build test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes LICENSE META.json README src
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Crypt*
%{_mandir}/man3/*