# # spec file for package perl-Digest-SHA # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cpan_name Digest-SHA Name: perl-Digest-SHA Version: 6.40.0 Release: 0 # 6.04 -> normalize -> 6.40.0 %define cpan_version 6.04 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Perl extension for SHA-1/224/256/384/512 URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/M/MS/MSHELOR/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildRequires: perl BuildRequires: perl-macros %{perl_requires} %description Digest::SHA is written in C for speed. If your platform lacks a C compiler, you can install the functionally equivalent (but much slower) Digest::SHA::PurePerl module. The programming interface is easy to use: it's the same one found in CPAN's Digest module. So, if your applications currently use Digest::MD5 and you'd prefer the stronger security of SHA, it's a simple matter to convert them. %prep %autosetup -n %{cpan_name}-%{cpan_version} # MANUAL BEGIN find . -type f -print0 | xargs -0 -n1 sed -e 's,^#!perl,#!/usr/bin/perl,' -i # MANUAL END %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %make_build %check make test %install %perl_make_install %perl_process_packlist # MANUAL BEGIN mv %{buildroot}%{_mandir}/man1/shasum.1{,.cpan} mv %{buildroot}%{_bindir}/shasum{,.cpan} # MANUAL END %perl_gen_filelist %files -f %{name}.files %doc Changes examples README shasum %changelog