|
|
@@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# spec file for package perl-Digest-CRC
|
|
|
|
# spec file for package perl-Digest-CRC
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2022 SUSE LLC
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
@@ -18,16 +18,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
%define cpan_name Digest-CRC
|
|
|
|
%define cpan_name Digest-CRC
|
|
|
|
Name: perl-Digest-CRC
|
|
|
|
Name: perl-Digest-CRC
|
|
|
|
Version: 0.24
|
|
|
|
Version: 0.240.0
|
|
|
|
Release: 0
|
|
|
|
Release: 0
|
|
|
|
|
|
|
|
# 0.24 -> normalize -> 0.240.0
|
|
|
|
|
|
|
|
%define cpan_version 0.24
|
|
|
|
#Upstream: CRC algorithm code taken from "A PAINLESS GUIDE TO CRC ERROR DETECTION ALGORITHMS". the public domain.
|
|
|
|
#Upstream: CRC algorithm code taken from "A PAINLESS GUIDE TO CRC ERROR DETECTION ALGORITHMS". the public domain.
|
|
|
|
License: SUSE-Public-Domain
|
|
|
|
License: SUSE-Public-Domain
|
|
|
|
Summary: Generic CRC functions
|
|
|
|
Summary: Generic CRC functions
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/O/OL/OLIMAUL/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/O/OL/OLIMAUL/%{cpan_name}-%{cpan_version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
|
|
|
|
Provides: perl(Digest::CRC) = %{version}
|
|
|
|
|
|
|
|
%undefine __perllib_provides
|
|
|
|
%{perl_requires}
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
@@ -36,7 +40,7 @@ wrapper functions with the correct parameters for CRC-CCITT, CRC-16, CRC-32
|
|
|
|
and CRC-64, as well as the CRC used in OpenPGP's ASCII-armored checksum.
|
|
|
|
and CRC-64, as well as the CRC used in OpenPGP's ASCII-armored checksum.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|