diff --git a/.cvsignore b/.cvsignore index e69de29..0ad2ff4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Crypt-Blowfish-2.09.tar.gz diff --git a/perl-Crypt-Blowfish.spec b/perl-Crypt-Blowfish.spec new file mode 100644 index 0000000..1abb4b3 --- /dev/null +++ b/perl-Crypt-Blowfish.spec @@ -0,0 +1,51 @@ +Summary: XS Blowfish implementation for Perl +Name: perl-Crypt-Blowfish +Version: 2.09 +Release: 1%{?dist} +License: Distributable +Group: Development/Libraries +URL: http://search.cpan.org/dist/Crypt-Blowfish/ +Source0: http://search.cpan.org/CPAN/authors/id/D/DP/DPARIS/Crypt-Blowfish-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl-Crypt-CBC +BuildRequires: perl-Crypt-CBC + +%description +Crypt::Blowfish is an XS-based implementation of the Blowfish +cryptography algorithm designed by Bruce Schneier. It's designed to +take full advantage of Crypt::CBC when desired. Blowfish keys may be +up to 448 bits (56 bytes) long. + +%prep +%setup -q -n Crypt-Blowfish-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name *.bs -a -size 0 -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc COPYRIGHT Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Crypt/ +%{_mandir}/man3/*.3* + +%changelog +* Thu Jul 14 2005 Andreas Thienemann - 2.09-1 +- Initial package + diff --git a/sources b/sources index e69de29..d3866a0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bbd037e1eb20778f3d636dff345ed02f Crypt-Blowfish-2.09.tar.gz