86 lines
2.4 KiB
RPMSpec
86 lines
2.4 KiB
RPMSpec
Name: perl-Digest-CRC
|
|
Version: 0.14
|
|
Release: 6%{?dist}
|
|
Summary: Generic CRC functions
|
|
|
|
Group: Development/Libraries
|
|
License: Public Domain
|
|
URL: http://search.cpan.org/dist/Digest-CRC
|
|
Source0: http://search.cpan.org/CPAN/authors/id/O/OL/OLIMAUL/Digest-CRC-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description
|
|
The Digest::CRC module calculates CRC sums of all sorts. It contains wrapper
|
|
functions with the correct parameters for CRC-CCITT, CRC-16 and CRC-32.
|
|
|
|
|
|
%prep
|
|
%setup -qn Digest-CRC-%{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 -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
# remove zero-length files
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
|
|
|
%check
|
|
make test
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes META.yml README t
|
|
%{perl_vendorarch}/auto/*
|
|
%{perl_vendorarch}/Digest
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
%changelog
|
|
* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.14-6
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.14-5
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.14-4
|
|
- rebuild against perl 5.10.1
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Thu May 22 2008 Christopher Stone <chris.stone@gmail.com> 0.14-1
|
|
- Upstream sync
|
|
|
|
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.10-4
|
|
- Rebuild for new perl
|
|
|
|
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> 0.10-3
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Tue Oct 16 2007 Christopher Stone <chris.stone@gmail.com> 0.10-2
|
|
- Remove zero length files.
|
|
|
|
* Tue Oct 16 2007 Christopher Stone <chris.stone@gmail.com> 0.10-1
|
|
- Initial Release.
|