|
|
8ab7dbd |
Name: perl-Crypt-Twofish
|
|
|
8ab7dbd |
Version: 2.13
|
|
|
8ab7dbd |
Release: 1%{?dist}
|
|
|
8ab7dbd |
Summary: Twofish Encryption Algorithm
|
|
|
8ab7dbd |
License: GPL+ or Artistic
|
|
|
8ab7dbd |
Group: Development/Libraries
|
|
|
8ab7dbd |
URL: http://search.cpan.org/dist/Crypt-Twofish/
|
|
|
8ab7dbd |
Source0: http://www.cpan.org/authors/id/A/AM/AMS/Crypt-Twofish-%{version}.tar.gz
|
|
|
8ab7dbd |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
8ab7dbd |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
8ab7dbd |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
%description
|
|
|
8ab7dbd |
Twofish is a 128-bit symmetric block cipher with a variable length (128,
|
|
|
8ab7dbd |
192, or 256-bit) key, developed by Counterpane Labs. It is unpatented and
|
|
|
8ab7dbd |
free for all uses, as described at http://www.counterpane.com/twofish.html.
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
# don't "provide" private Perl libs
|
|
|
8ab7dbd |
%global _use_internal_dependency_generator 0
|
|
|
8ab7dbd |
%global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u
|
|
|
8ab7dbd |
%global __find_provides /bin/sh -c "%{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P}"
|
|
|
8ab7dbd |
%global __find_requires /bin/sh -c "%{__deploop R}"
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
%prep
|
|
|
8ab7dbd |
%setup -q -n Crypt-Twofish-%{version}
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
%build
|
|
|
8ab7dbd |
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
8ab7dbd |
make %{?_smp_mflags}
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
%install
|
|
|
8ab7dbd |
rm -rf $RPM_BUILD_ROOT
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
8ab7dbd |
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
8ab7dbd |
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
%check
|
|
|
8ab7dbd |
make test
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
%clean
|
|
|
8ab7dbd |
rm -rf $RPM_BUILD_ROOT
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
%files
|
|
|
8ab7dbd |
%defattr(-,root,root,-)
|
|
|
8ab7dbd |
%doc Changes README
|
|
|
8ab7dbd |
%{perl_vendorarch}/auto/*
|
|
|
8ab7dbd |
%{perl_vendorarch}/Crypt*
|
|
|
8ab7dbd |
%{_mandir}/man3/*
|
|
|
8ab7dbd |
|
|
|
8ab7dbd |
%changelog
|
|
|
8ab7dbd |
* Mon May 11 2009 Iain Arnell 2.13-1
|
|
|
8ab7dbd |
- Specfile autogenerated by cpanspec 1.77.
|