diff --git a/.cvsignore b/.cvsignore index e69de29..8b723aa 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +String-CRC32-1.3.tar.gz diff --git a/perl-String-CRC32.spec b/perl-String-CRC32.spec new file mode 100644 index 0000000..2240347 --- /dev/null +++ b/perl-String-CRC32.spec @@ -0,0 +1,61 @@ +Name: perl-String-CRC32 +Version: 1.3 +Release: 1 + +Summary: Perl interface for cyclic redundency check generation + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/String-CRC32/ +Source0: http://search.cpan.org/CPAN/authors/id/S/SO/SOENKE/String-CRC32-1.3.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: perl >= 1:5.6.1 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This packages provides a perl module to generate checksums from strings +and from files. + +The checksums are the same as those calculated by ZMODEM, PKZIP, +PICCHECK and many others. +There's another perl module called String::CRC which allows to calculate +not only 32 bit CRC numbers, but the generated sums differ from those of +the programs mentioned above. + +%prep +%setup -q -n String-CRC32-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +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' -empty -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 README +%{perl_vendorarch}/String/ +%{perl_vendorarch}/auto/String +%{_mandir}/man3/*.3* + +%changelog +* Fri Dec 16 2005 Jason Vas Dias - 0:1.03-1 +- Initial build. +- Required by lftp-3.3.x+ +- Imported to fix bug 176175 + + diff --git a/sources b/sources index e69de29..43a639c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7683cd1b183a6af807f20ee5fd076d0b String-CRC32-1.3.tar.gz