forked from pool/perl-Digest-CRC
59 lines
1.3 KiB
RPMSpec
59 lines
1.3 KiB
RPMSpec
|
|
#
|
||
|
|
# spec file for package perl-Digest-CRC
|
||
|
|
#
|
||
|
|
# This file and all modifications and additions to the pristine
|
||
|
|
# package are under the same license as the package itself.
|
||
|
|
#
|
||
|
|
|
||
|
|
Name: perl-Digest-CRC
|
||
|
|
Version: 0.14
|
||
|
|
Release: 1
|
||
|
|
Requires: perl = %{perl_version}
|
||
|
|
AutoReqProv: on
|
||
|
|
Group: Development/Libraries/Perl
|
||
|
|
License: Public domain
|
||
|
|
URL: http://search.cpan.org/dist/Digest-CRC/
|
||
|
|
Packager: Dirk Stöcker <opensuse@dstoecker.de>
|
||
|
|
Summary: Generic CRC functions for Perl
|
||
|
|
Source: Digest-CRC-%{version}.tar.gz
|
||
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
|
||
|
|
%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.
|
||
|
|
|
||
|
|
%if 0%{?mandriva_version} < 2007
|
||
|
|
%if 0%{?fedora_version} < 8
|
||
|
|
%debug_package
|
||
|
|
%endif
|
||
|
|
%endif
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n Digest-CRC-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||
|
|
make
|
||
|
|
make test
|
||
|
|
|
||
|
|
%install
|
||
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||
|
|
%perl_process_packlist
|
||
|
|
|
||
|
|
%clean
|
||
|
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
|
||
|
|
%files
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%doc %{_mandir}/man3/*
|
||
|
|
%{perl_vendorarch}/Digest/CRC.pm
|
||
|
|
%{perl_vendorarch}/auto/Digest/CRC
|
||
|
|
/var/adm/perl-modules/%{name}
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Fri Feb 8 2008 Dirk Stöcker <opensuse@dstoecker.de> 0.14
|
||
|
|
- updated
|
||
|
|
* Thu Oct 25 2007 Peter Eisentraut 0.10
|
||
|
|
- initial package release
|